fix(ui): show disabled-source warning in model catalog preview - #3192
Conversation
8743519 to
18a03a6
Compare
|
/ok-to-test |
f0c4c75 to
f5f9e20
Compare
Philip-Carneiro
left a comment
There was a problem hiding this comment.
/lgtm
works fine, but will conflict with other PR to add warning msgs in the preview as well.
Signed-off-by: Conor O'Malley <conormomalley@gmail.com>
Signed-off-by: Conor O'Malley <conormomalley@gmail.com>
f5f9e20 to
b0063e8
Compare
|
@Philip-Carneiro thanks for reviewing, rebased and retested: |
Signed-off-by: Conor O'Malley <conormomalley@gmail.com>
|
/lgtm |
|
/approve |
Signed-off-by: Conor O'Malley <conormomalley@gmail.com>
|
/lgtm |
| const { isLoadingInitial, isLoadingMore, activeTab, summary, tabStates, error } = previewState; | ||
| const { items, hasMore } = tabStates[activeTab]; | ||
| const previewError = error; | ||
| const showSourceDisabledWarning = !isSourceEnabled && !!summary; |
There was a problem hiding this comment.
Can we also check on error state here - so that we won't show this when we get a error in preview response?
something like this? and a test case for this in ppreviewPanel.spec.tsx?
| const showSourceDisabledWarning = !isSourceEnabled && !!summary; | |
| const showSourceDisabledWarning = !isSourceEnabled && !!summary && !previewError; |
Signed-off-by: Conor O'Malley <conormomalley@gmail.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Philip-Carneiro, ppadti 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 |

Description
When a catalog source was disabled, the Model catalog preview still showed all models in the "Models included" tab. That made it look like disabling the source had no effect.
How Has This Been Tested?
Manual:
source enabled:

source disabled:

Merge criteria:
DCOcheck)ok-to-testhas been added to the PR.If you have UI changes