-
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
[RHOAIENG-11326] Creating new pipeline from Create Run Page redirects to the pipeline detail page #3262
[RHOAIENG-11326] Creating new pipeline from Create Run Page redirects to the pipeline detail page #3262
Conversation
d57ddee
to
eb41652
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.
This is a nice solution, but I do have another suggestion. I feel we could avoid inferring from the pathname, instead, we can pass isRedirectingToDetailsPage
or something like this into the modal, and only when it's set to true, navigate to the details page... And we can default it to true and set it only to false when importing on the create run/schedules page...
Matching with the pathname is not always secure because if we change the pathname in the future, it's hard to find the issue here. This is OK for now, but just a suggestion.
/retest |
eb41652
to
0c42869
Compare
That's fair, I don't mind either way, so I made the change to add a prop instead. |
… to the pipeline detail page
0c42869
to
0b7abcc
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3262 +/- ##
=======================================
Coverage 84.96% 84.97%
=======================================
Files 1302 1302
Lines 29101 29106 +5
Branches 7828 7829 +1
=======================================
+ Hits 24727 24733 +6
+ Misses 4374 4373 -1
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
Tested, works well
/lgtm
@jpuzz0 we also should prevent navigation when importing from the empty states bc it is pretty much the same page anyway |
@Gkrumbach07 So inside of |
/approve was mis reading what was changed |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DaoDaoNoCode, Gkrumbach07 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 |
https://issues.redhat.com/browse/RHOAIENG-11326
Description
Add condition to pipeline import modal to only redirect when not located in the
/create
path associated with runs/schedulesDemo:
https://github.com/user-attachments/assets/28f10956-9b84-465e-8db6-bf9fda2d5f6d
How Has This Been Tested?
Test Impact
No new tests added
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main