-
Notifications
You must be signed in to change notification settings - Fork 167
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
List connected notebooks for each connection table row #3256
List connected notebooks for each connection table row #3256
Conversation
f23a25c
to
04fc681
Compare
fyi @emilys314 |
04fc681
to
b3682d7
Compare
@@ -35,5 +48,30 @@ describe('ConnectionsTable', () => { | |||
expect(screen.getByText('desc1')).toBeTruthy(); | |||
expect(screen.queryByText('s3')).toBeFalsy(); | |||
expect(screen.getByText('S3 Buckets')).toBeTruthy(); | |||
expect(screen.getByText('S3 Buckets')).toBeTruthy(); |
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.
Duplicate line added. We can remove line 51
if (!connectedNotebooks.length) { | ||
return '-'; | ||
} | ||
|
||
if (!notebooksLoaded) { | ||
return <Spinner size="sm" />; | ||
} |
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.
I don't know if the <Spinner />
will ever return? If it's not loaded, the connectedNotbooks will always be [], so it would always return '-'
while loading?
So I think these 2 need to be switched around?
key={notebook.metadata.name} | ||
data-testid="connections-delete-notebooks-item" | ||
> | ||
{getDisplayNameFromK8sResource(notebook)} |
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.
Looking at the mocks, I believe we need to append " (Running)" to the display name, if notebook.running === true
b3682d7
to
ced3d3d
Compare
ced3d3d
to
033e04d
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt 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 |
Towards RHOAIENG-11558
Description
Adds connected notebooks to the connection table rows.
Lists connected notebooks when deleting a connection.
How Has This Been Tested?
Tested manually.
Added test scenarios
Test Impact
Test the connection table to verify the related notebooks show up in each row
Test the delete connection modal to verify the related notebooks are listed.
Screen shots
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
/cc @simrandhaliw