Added edge case for re-enabling source on the MC settings page#2132
Added edge case for re-enabling source on the MC settings page#2132google-oss-prow[bot] merged 2 commits intokubeflow:mainfrom
Conversation
Signed-off-by: Yulia Krimerman <juliapiterova@hotmail.com>
manaswinidas
left a comment
There was a problem hiding this comment.
any cypress test that needs to be changed coz of this change - surprised no tests failed - maybe tests are missing entirely for this case 🤔
|
@YuliaKrimerman can we explore maybe adding some tests here? we could see if AI can generate a handful of cypress tests to check that we're showing the right thing in the status column for various cases of what's present in the configmap and in the API. if that takes too much of your time we could open an issue to improve testing coverage instead. |
Signed-off-by: Yulia Krimerman <juliapiterova@hotmail.com>
|
@mturley @manaswinidas the tests are there for other cases of the status updates, I added another test case that covers this scenario |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mturley The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fix catalog source status feedback when re-enabling after disable
Description
Fixed a UI feedback issue where re-enabling a catalog source after disabling it showed "-" instead of "Starting" status, providing no feedback that the source was loading.
Root Cause:
When a catalog source is re-enabled:
enabled: truestatus: DISABLED(until loading completes)Solution:
Updated
CatalogSourceStatus.tsxto handle the ConfigMap/API mismatch. The component now shows "Starting" status when:enabled: true(checked at line 24)status: DISABLED(caught in switch statement)Code Changes:
enabled: false(line 24-26)DISABLEDcase is reached in switch statement, we knowenabled: truedue to early returnUser Experience:
How Has This Been Tested?
Merge criteria:
All the commits have been signed-off (To pass the
DCOcheck)The commits have meaningful messages
Automated tests are provided as part of the PR for major new functionalities; testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
The developer has manually tested the changes and verified that the changes work.
Code changes follow the kubeflow contribution guidelines.
For first time contributors: Please reach out to the Reviewers to ensure all tests are being run, ensuring the label
ok-to-testhas been added to the PR.If you have UI changes