-
Notifications
You must be signed in to change notification settings - Fork 214
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
EDSC-4031: Always route to saved Projects when selected. #1745
base: main
Are you sure you want to change the base?
Conversation
static/src/js/routes/SavedProjects/__tests__/SavedProjects.test.js
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1745 +/- ##
===========================================
- Coverage 91.93% 66.81% -25.12%
===========================================
Files 730 731 +1
Lines 19568 19528 -40
Branches 4647 4640 -7
===========================================
- Hits 17989 13048 -4941
- Misses 1441 5709 +4268
- Partials 138 771 +633 ☔ View full report in Codecov by Sentry. |
Instead of fixing the bug in the ticket you added a new feature and left the original buggy code abandoned in the codebase. The See CONTRIBUTING.md, all commits have to start with the ticket number. |
All feedback incorporated.
|
@@ -66,24 +65,10 @@ export class Project extends Component { | |||
const { search } = location | |||
const { edscHost } = this | |||
|
|||
// If there are no params in the URL, show the saved projects page | |||
// If there are no project params in the URL, re-route to the saved Projects page | |||
if (search === '') { |
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'm a bit confused I'll pull this down and test it myself but, if the conditional here if (search === '')
is failing to properly work i.e. its false
when it should be true, which is why we are getting routed to the other component wouldn't this still have the same issue even if it is on a difference page?
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.
So the issue I seem to be seeing is that something like http://localhost:8080/saved-projects?projectId=3519105921
is always going to strip out the projectId but, also that http://localhost:8080/projects?projectId=3519105921
is redirecting me (fill in any projectId) back into the saved-projects
page so I can't go back to my previous projects
Co-authored-by: Ed Olivares <34591886+eudoroolivares2016@users.noreply.github.com>
…into edsc-4031
Overview
What is the feature?
Created a SavedProjects page and route to avoid the accidental appending of route params to the project page.
What is the Solution?
What areas of the application does this impact?
Testing
Reproduction steps
This is confirmable by:
Attachments
Please include relevant screenshots or files that would be helpful in reviewing and verifying this change.
Checklist