-
Notifications
You must be signed in to change notification settings - Fork 6
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
Change to shortened, typed v2 URLs #3504
Conversation
You can access the deployment of this PR at https://renku-ci-ui-3504.dev.renku.ch |
6fb7d7c
to
51ed7d0
Compare
51ed7d0
to
00f8d5b
Compare
00f8d5b
to
b5228f2
Compare
b5228f2
to
777be3e
Compare
777be3e
to
e7a2907
Compare
e7a2907
to
10d3e35
Compare
10d3e35
to
b522811
Compare
b522811
to
9acd5ca
Compare
75b525d
to
9b32170
Compare
9acd5ca
to
8727938
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.
Looks good for the most part, see comments below:
client/src/features/groupsV2/settings/GroupSettingsMetadata.tsx
Outdated
Show resolved
Hide resolved
show: "/v2/users/:username", | ||
}, | ||
root: "/", | ||
connectedServices: "/connected-services", |
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.
Maybe this should be /integrations
now. Can you ask the product team?
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.
Still waiting for a response from the product team on this. It can be fixed in a follow-up if desired.
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.
Fixed in af33b92
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.
Last comments 😅
const domain = params?.BASE_URL | ||
? new URL(params.BASE_URL).hostname | ||
: "renkulab.io"; | ||
const baseUrl = `${domain}/g/`; |
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.
- Why strip the scheme from the URL? This is not a valid URL (as a URL MUST start with a scheme).
- Why is the code falling back to
renkulab.io
?window.location.origin
provides a sane fall back. - It would be good to avoid hard-coding
/g/
. The route constants could be used to avoid having to remember routing leaks here too.
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.
Fixed in 2f9fb33
a489f19
to
2f9fb33
Compare
7bc282a
to
af33b92
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.
LGTM
Tearing down the temporary RenkuLab deplyoment for this PR. |
* /v2/help -> /help * /v2/connected-services -> /integrations * /v2/groups -> /g * /v2/projects -> /p * /v2/search -> /search * /v2/secrets -> /secrets * /v2/user -> /user * /v2/users -> /u
Move V2 URLs to new locations
/v2/help
->/help
/v2/connected-services
->/connected-services
/v2/groups
->/g
/v2/projects
->/p
/v2/search
->/search
/v2/secrets
->/secrets
/v2/user
->/user
/v2/users
->/u
/deploy renku=ciyer/urls-v1-v2