-
Notifications
You must be signed in to change notification settings - Fork 0
Bug/nxt 4251 reveal in explorer after compon #33
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
Bug/nxt 4251 reveal in explorer after compon #33
Conversation
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.
Pull request overview
This PR enables the "Reveal in space explorer" functionality for linked components after they have been uploaded to a space. The main change involves migrating the getAncestorInfo API call from the desktop namespace to the space namespace, making it available in the browser context when explicitly requested.
Key changes:
- Added a "Reveal in space explorer" button to the success toast after component upload
- Migrated
getAncestorInfofromDesktopAPItoSpaceServicein the backend - Updated the frontend to call
API.space.getAncestorInfoinstead ofAPI.desktop.getAncestorInfo - Added a
fetchAncestorInfoparameter to control when ancestor information should be fetched from the backend
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| componentInteractions.ts | Added "Reveal in space explorer" button to component upload success toast |
| useRevealInSpaceExplorer.ts | Added fetchAncestorInfo parameter and migrated to use API.space.getAncestorInfo |
| RecentWorkflowContextMenu.test.ts | Updated test mocks to reference API.space.getAncestorInfo |
| AppHeaderContextMenu.test.ts | Updated test mocks to reference API.space.getAncestorInfo |
| generated-api.ts | Added AncestorInfo interface and getAncestorInfo method to SpaceService |
| desktop-api.ts | Removed deprecated getAncestorInfo function |
| custom-types.ts | Removed duplicate AncestorInfo type definition |
| SpaceAPI.java | Removed getAncestorInfo method (migrated to SpaceService) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fb6ff8d to
39718b8
Compare
org.knime.ui.js/src/components/spaces/useRevealInSpaceExplorer.ts
Outdated
Show resolved
Hide resolved
org.knime.ui.js/src/components/spaces/useRevealInSpaceExplorer.ts
Outdated
Show resolved
Hide resolved
org.knime.ui.js/src/components/spaces/useRevealInSpaceExplorer.ts
Outdated
Show resolved
Hide resolved
39718b8 to
bdc0650
Compare
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.
Pull request overview
Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
org.knime.ui.js/src/components/spaces/useRevealInSpaceExplorer.ts:1
- The
revealSingleItemfunction signature appears to have changed to accept a third boolean parameter (true), but the function definition shows it only accepts two parameters (origin and itemName). This mismatch will cause a runtime error. Remove the third argument or update the function signature accordingly.
import { watch } from "vue";
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
43359ff to
289f3fd
Compare
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.
Pull request overview
Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
org.knime.ui.js/src/components/spaces/useRevealInSpaceExplorer.ts:1
- Using non-null assertion operator (!) on
result.uploadedItemassumes it's always defined. Consider adding a conditional check or guard clause before callingrevealSingleItemto handle cases whereuploadedItemmight be undefined.
import { watch } from "vue";
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| useRevealInSpaceExplorer().revealSingleItem( | ||
| result.uploadedItem! | ||
| ); |
Copilot
AI
Jan 7, 2026
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.
Using the non-null assertion operator (!) can lead to runtime errors if result.uploadedItem is actually null or undefined. Consider adding an explicit null check before calling revealSingleItem to ensure the callback only executes when uploadedItem exists.
| useRevealInSpaceExplorer().revealSingleItem( | |
| result.uploadedItem! | |
| ); | |
| const uploadedItem = result.uploadedItem; | |
| if (!uploadedItem) { | |
| return; | |
| } | |
| useRevealInSpaceExplorer().revealSingleItem(uploadedItem); |
|
@hriverahdez this branch appears to have test failures related to |
xnhp
left a comment
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.
failing tests in WorkflowBreadcrumb.ts
|
The test caught a very interesting case, actually. Which is the presence of this option for jobviewer/playground mode. Because this option used to be completely excluded for browser, but now it's not anymore. I'll push a commit which adds a check (inside the |
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
92a73fe to
1580140
Compare
…xplorer ... after component sharing. * 'getAncestorInfo' endpoint moved from desktop to gateway API * fetch ancestor-item-ids on demand - but only in case of component sharing and not for other 'reveal'-actions NXT-4251 ('Reveal in explorer' after component sharing in browser does not work)
- depending on uiControl that determines whether the space explorer is accessible NXT-4251 ('Reveal in explorer' after component sharing in browser does not work)
1580140 to
3e0b921
Compare
|


No description provided.