-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
support unscoped routes in location targets on gitlab #12774
Conversation
Changed Packages
|
Instead of comments in the table test, use the features of jest that allow each test to give a specific error message. This change also reduces the total number of tests, but coverage should remain the same branch-wise. Signed-off-by: Jamie Klassen <jklassen@vmware.com>
This allows this suite to detect when an unexpected path is passed to the projects API. Signed-off-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
213ffe4
to
62ebc2e
Compare
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
Signed-off-by: Jamie Klassen <jklassen@vmware.com>
62ebc2e
to
1f27d83
Compare
I really want to get a few pairs of eyes on this, and tested by some other GitLab users too. Gonna ask about in Discord see if there's anyone that can help out. Is there any other GitLab users you know of @jamieklassen? |
@OpenSourceZombie @mateiidavid @dehamzah @ItzEdgar @adrianke77 - you've all contributed to this part of the codebase in the past. Any chance you might have bandwidth to test this out? |
@cregev also showed interest in the bug and might be able to help test? |
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If you are the author and the PR has been closed, feel free to re-open the PR and continue the contribution! |
Hey @jamieklassen - I'm pretty tempted just to merge this as is to be honest, and push it out for testing in 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.
Let's merge this, and see what happens and get some of the folks that use GitLab
to try it once the release goes out today! 🎉
Hey, I just made a Pull Request!
Resolves #12456 by removing the
buildRawUrl
function and makinggetProjectId
andbuildProjectUrl
flexible enough to support both scoped and unscoped routes. I also refactored the tests a bit to give better feedback, and covered some missing edge cases.I really tried to minimize the scope of the change to the app code, but the specific lines are not especially readable if you're not familiar with scoped and unscoped routes in GitLab. I can extract some helper functions with clearer names if desired.
✔️ Checklist
Added or updated documentationScreenshots attached (for UI changes)Signed-off-by
line in the message. (more info)