Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YUNIKORN-2679] Add copy URL button on the allocations panel #193

Closed
wants to merge 4 commits into from

Conversation

dcoric
Copy link
Contributor

@dcoric dcoric commented Jun 18, 2024

What is this PR for?

This PR adds a copy button to the allocations panel. It is using the hotlinking feature that was implemented with YUNIKORN-2624

What type of PR is it?

  • - Improvement

What is the Jira issue?

YUNIKORN-2679 Add copy URL button on the allocations panel

How should this be tested?

Open the allocations tab, in the title bar there should be a clipboard icon. Clicking that icon it should copy the URL to that view.

Screenshots (if appropriate)

image

Note

The test is added for the feature, and alongside that I have added a minor fix to the licenses-modal test file that was outputting some errors due to a missing import.

dcoric added 2 commits June 18, 2024 09:46
Implemented copy button on allocations sidebar view that copies the hot-link to that view.
- Added copy link test
- Fixed linting in test file
- Fixed errors on test suite execution
@codecov-commenter
Copy link

codecov-commenter commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 38.77%. Comparing base (f5df16e) to head (467557a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #193   +/-   ##
=======================================
  Coverage   38.77%   38.77%           
=======================================
  Files           2        2           
  Lines          49       49           
=======================================
  Hits           19       19           
  Misses         27       27           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@chenyulin0719 chenyulin0719 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dcoric , thanks for the new commit.

Please update the test function too, I saw some error logs after run 'pnpm test'.
image

@chenyulin0719 chenyulin0719 self-requested a review June 24, 2024 15:53
Copy link
Contributor

@chenyulin0719 chenyulin0719 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants