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-2349] Allow changing the orientation of the queue graph #202

Closed
wants to merge 15 commits into from

Conversation

doupache
Copy link
Contributor

@doupache doupache commented Sep 6, 2024

What is this PR for?

orientation.mov

What type of PR is it?

  • - Feature

What is the Jira issue?

YUNIKORN-2349

@doupache
Copy link
Contributor Author

doupache commented Sep 6, 2024

This PR builds upon the changes introduced in #189 and should be reviewed or merged after #189 has been completed.

@craigcondit
Copy link
Contributor

@doupache please rebase on master, #189 has been merged.

@chenyulin0719 chenyulin0719 self-requested a review September 11, 2024 04:26
@doupache
Copy link
Contributor Author

This pr also contain the commit in #197. Once we merge it , i will rebase this one

@brandboat
Copy link
Member

gentle ping @doupache , could you help fix the conflicts ? Thanks

@codecov-commenter
Copy link

codecov-commenter commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 38.77%. Comparing base (20f66e5) to head (480d22f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #202   +/-   ##
=======================================
  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.

@doupache
Copy link
Contributor Author

Thank you @brandboat and @ryankert01 for the review. I've resolved the conflict in the master branch, addressed the incorrect resource format, and added test cases to ensure proper handling of the incorrect resource format.

expect(CommonUtil.absoluteUsedCPUColumnFormatter('CPU: 60%')).toBe('<strong>CPU:</strong> 60%');
});
it('should handle input without percentage sign', () => {
expect(CommonUtil.absoluteUsedCPUColumnFormatter('60')).toBe('<strong>CPU:</strong> n/a (wrong cpu format)');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

return '<strong>Memory:</strong> n/a';
}
//Memory: 4%, CPU: 2%
const memoryRegex = /Memory: ([0-9]|[1-9][0-9]|100)%/;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

return '<strong>CPU:</strong> n/a';
}
//Memory: 4%, CPU: 2%
const cpuRegex = /CPU: ([0-9]|[1-9][0-9]|100)%/;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@ryankert01 ryankert01 left a comment

Choose a reason for hiding this comment

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

lgtm

@craigcondit
Copy link
Contributor

craigcondit commented Sep 24, 2024

@doupache Can you rebase? Also, would it be possible to remove / reduce the animation on resize? It's quite slow.

@doupache
Copy link
Contributor Author

@craigcondit I've merged the master branch and improved the resize animation speed. Could you please review these changes? Thank you for your time.

Copy link
Contributor

@craigcondit craigcondit 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.

@craigcondit craigcondit changed the title [YUNIKORN-2349] Change the orientation of the queue [YUNIKORN-2349] Allow changing the orientation of the queue graph Oct 17, 2024
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.

5 participants