-
Notifications
You must be signed in to change notification settings - Fork 65
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
Conversation
This pr also contain the commit in #197. Once we merge it , i will rebase this one |
gentle ping @doupache , could you help fix the conflicts ? Thanks |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
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)'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @ryankert01
return '<strong>Memory:</strong> n/a'; | ||
} | ||
//Memory: 4%, CPU: 2% | ||
const memoryRegex = /Memory: ([0-9]|[1-9][0-9]|100)%/; |
There was a problem hiding this comment.
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)%/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@doupache Can you rebase? Also, would it be possible to remove / reduce the animation on resize? It's quite slow. |
@craigcondit I've merged the master branch and improved the resize animation speed. Could you please review these changes? Thank you for your time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 LGTM.
What is this PR for?
orientation.mov
What type of PR is it?
What is the Jira issue?
YUNIKORN-2349