-
Notifications
You must be signed in to change notification settings - Fork 182
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
feat: modify behaviours for the enable button for NIM. #3558
feat: modify behaviours for the enable button for NIM. #3558
Conversation
Hi @yzhao583. Thanks for your PR. I'm waiting for a opendatahub-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
39448bd
to
97e4f94
Compare
1bed0fd
to
7043b7e
Compare
/ok-to-test |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3558 +/- ##
==========================================
- Coverage 85.82% 85.75% -0.08%
==========================================
Files 1419 1419
Lines 32644 32678 +34
Branches 9167 9192 +25
==========================================
+ Hits 28018 28022 +4
- Misses 4626 4656 +30
... and 4 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
… show success banner, if it is false, show error banner
…/github.com/yzhao583/odh-dashboard into NVPE-37-fix-the-enable-button-loading-issue
/lgtm |
frontend/src/pages/exploreApplication/useIntegratedAppStatus.ts
Outdated
Show resolved
Hide resolved
…account is changed, and remove the interval to check the enablement status of the app in useIntegratedAppStatus hook
It looks like there is a typescript error with the most recent rebasing to include Olga's pr in I think we may want to make the properties |
@emilys314 I changed variablesValidationTimestamp and variablesValidationStatus to optional |
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.
Also make sure to run the linter / formatter
Okay I just tested it again and everything seems to be working /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: emilys314 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…o#3558) * Fix the enable button issue for NIM * Fix lint issue * Fix lint issue * When enable NIM, check the APIKeyValidation condition, if it is True, show success banner, if it is false, show error banner * Fix lint issue * Add refreshRate * Fix grammar issue * Fix account and secret update issue * Change variablesValidationStatus to enum * modify the related logic to ensure the secret is modified before the account is changed, and remove the interval to check the enablement status of the app in useIntegratedAppStatus hook * Compare timestamps to see if backend updated conditions of the account CR * Make variablesValidationStatus and variablesValidationTimestamp optional * fix api key update issue and change the initial value of variablesValidationTimestamp to empty string
* feat: modify behaviours for the enable button for NIM. (#3558) * Fix the enable button issue for NIM * Fix lint issue * Fix lint issue * When enable NIM, check the APIKeyValidation condition, if it is True, show success banner, if it is false, show error banner * Fix lint issue * Add refreshRate * Fix grammar issue * Fix account and secret update issue * Change variablesValidationStatus to enum * modify the related logic to ensure the secret is modified before the account is changed, and remove the interval to check the enablement status of the app in useIntegratedAppStatus hook * Compare timestamps to see if backend updated conditions of the account CR * Make variablesValidationStatus and variablesValidationTimestamp optional * fix api key update issue and change the initial value of variablesValidationTimestamp to empty string * fix: add unit test for getNIMResourcesToDelete function (#3644) * fix: add unit test for getNIMResourcesToDelete function Signed-off-by: Olga Lavtar <[email protected]> * fix: remove unnecessary lines Signed-off-by: Olga Lavtar <[email protected]> * fix: reuse mockServingRuntimeK8sResource Signed-off-by: Olga Lavtar <[email protected]> * fix: remove jest.resetAllMocks(); Signed-off-by: Olga Lavtar <[email protected]> --------- Signed-off-by: Olga Lavtar <[email protected]> * feat: add ability to show error message for the tiles on the enabled applications page. (#3641) * Add ability to show error message for the tiles on the enabled applications page * fix lint issue * Add unit tests for hooks * Fix lint issue * Implemented visualizations for the NIM metrics (#3612) * added metrics graphs for the new NIM integration Signed-off-by: LinoyBitan1 <[email protected]> * added tests for the NIM integration tests Signed-off-by: LinoyBitan1 <[email protected]> * added default value to nim flag * apply lint fixes and additional tests * fix before nim tab issue * remove unuse line * fix the nim tab broblem * all but tests * Update mockProjectK8sResource.ts Tomer Olga PR * Update modelMetrics.ts Tomer Olga PR * Update modelMetrics.cy.ts Tomer Olga PR * Update NimTab.tsx Tomer Olga PR * tests updates * updated mocks for tests * deleted comments * added changes for thr PR * change nim flag * fixes for lint tests * fix: remove comments and setting disableNIMModelServing to true in the initIntercepts Signed-off-by: Olga Lavtar <[email protected]> --------- Signed-off-by: LinoyBitan1 <[email protected]> Signed-off-by: Olga Lavtar <[email protected]> Co-authored-by: mtalvi <[email protected]> Co-authored-by: Olga Lavtar <[email protected]> --------- Signed-off-by: Olga Lavtar <[email protected]> Signed-off-by: LinoyBitan1 <[email protected]> Co-authored-by: yu zhao <[email protected]> Co-authored-by: olavtar <[email protected]> Co-authored-by: Linoy Bitan <[email protected]> Co-authored-by: mtalvi <[email protected]> Co-authored-by: Olga Lavtar <[email protected]>
Jira: https://issues.redhat.com/browse/NVPE-37
Jira: https://issues.redhat.com/browse/NVPE-72
Description
How Has This Been Tested?
Test Impact
Explore
page, select theNVIDIA NIM
tile, and should see the Skeletonwhen loading. If NIM is enabled, theEnable
button should be hidden, if NIM is disabled but can be enabled, theEnable
button should be displayed, if NIM cannot be enabled, theEnable
button should be displayed but the button should be disabled, hover the button, the tooltip should be displayed.Enable
button, and the modal to enable NIM should be displayed. If no API key is provided, theSubmit
button should be disabled, otherwise, it should be enabled.Submit
button. If validation success, the modal should be closed and theEnable
button on theExplore
page should be hidden.Enable
page -> click thedisable
on the top-right corner of the NIM tile, the link to remove NIM from this page should NOT be seen.Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main