Skip to content
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

Merged
merged 12 commits into from
Feb 5, 2025
Merged

Conversation

ciyer
Copy link
Contributor

@ciyer ciyer commented Jan 23, 2025

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

@RenkuBot
Copy link
Contributor

You can access the deployment of this PR at https://renku-ci-ui-3504.dev.renku.ch

@ciyer ciyer force-pushed the ciyer/urls-v2-typed branch from 6fb7d7c to 51ed7d0 Compare January 23, 2025 16:50
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 23, 2025 16:51 — with GitHub Actions Inactive
@ciyer ciyer force-pushed the ciyer/urls-v2-typed branch from 51ed7d0 to 00f8d5b Compare January 23, 2025 17:00
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 23, 2025 17:00 — with GitHub Actions Inactive
@ciyer ciyer force-pushed the ciyer/urls-v2-typed branch from 00f8d5b to b5228f2 Compare January 24, 2025 13:17
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 24, 2025 13:17 — with GitHub Actions Inactive
@ciyer ciyer force-pushed the ciyer/urls-v2-typed branch from b5228f2 to 777be3e Compare January 24, 2025 14:09
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 24, 2025 14:09 — with GitHub Actions Inactive
@ciyer ciyer force-pushed the ciyer/urls-v2-typed branch from 777be3e to e7a2907 Compare January 30, 2025 12:06
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 30, 2025 12:06 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 30, 2025 12:20 — with GitHub Actions Inactive
@ciyer ciyer force-pushed the ciyer/urls-v2-typed branch from e7a2907 to 10d3e35 Compare January 30, 2025 13:00
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 30, 2025 13:00 — with GitHub Actions Inactive
@ciyer ciyer force-pushed the ciyer/urls-v2-typed branch from 10d3e35 to b522811 Compare January 30, 2025 16:33
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 30, 2025 16:33 — with GitHub Actions Inactive
@ciyer ciyer changed the base branch from build/urls-v1-v2 to ciyer/move-v1-urls January 31, 2025 09:31
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 31, 2025 09:31 — with GitHub Actions Inactive
Base automatically changed from ciyer/move-v1-urls to build/urls-v1-v2 January 31, 2025 10:44
@ciyer ciyer force-pushed the ciyer/urls-v2-typed branch from b522811 to 9acd5ca Compare January 31, 2025 10:51
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 31, 2025 10:52 — with GitHub Actions Inactive
@ciyer ciyer force-pushed the ciyer/urls-v2-typed branch from 9acd5ca to 8727938 Compare January 31, 2025 11:09
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 January 31, 2025 11:09 — with GitHub Actions Inactive
Copy link
Member

@leafty leafty left a 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/dashboardV2/DashboardV2.tsx Outdated Show resolved Hide resolved
client/src/features/dashboardV2/DashboardV2.tsx Outdated Show resolved Hide resolved
client/src/features/dashboardV2/DashboardV2.tsx Outdated Show resolved Hide resolved
client/src/features/groupsV2/new/GroupNew.tsx Outdated Show resolved Hide resolved
client/src/features/platform/components/StatusBanner.tsx Outdated Show resolved Hide resolved
client/src/features/rootV2/RootV2.tsx Outdated Show resolved Hide resolved
show: "/v2/users/:username",
},
root: "/",
connectedServices: "/connected-services",
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

@ciyer ciyer Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in af33b92

@ciyer ciyer temporarily deployed to renku-ci-ui-3504 February 3, 2025 08:48 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 February 3, 2025 09:05 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-3504 February 3, 2025 10:17 — with GitHub Actions Inactive
@ciyer ciyer linked an issue Feb 3, 2025 that may be closed by this pull request
Copy link
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last comments 😅

client/scripts/generate_sitemap.sh Show resolved Hide resolved
Comment on lines 164 to 167
const domain = params?.BASE_URL
? new URL(params.BASE_URL).hostname
: "renkulab.io";
const baseUrl = `${domain}/g/`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Why strip the scheme from the URL? This is not a valid URL (as a URL MUST start with a scheme).
  2. Why is the code falling back to renkulab.io? window.location.origin provides a sane fall back.
  3. It would be good to avoid hard-coding /g/. The route constants could be used to avoid having to remember routing leaks here too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 2f9fb33

client/src/features/rootV2/RootV2.tsx Outdated Show resolved Hide resolved
Copy link
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ciyer ciyer merged commit d5dd04b into build/urls-v1-v2 Feb 5, 2025
19 checks passed
@ciyer ciyer deleted the ciyer/urls-v2-typed branch February 5, 2025 10:18
@RenkuBot
Copy link
Contributor

RenkuBot commented Feb 5, 2025

Tearing down the temporary RenkuLab deplyoment for this PR.

ciyer added a commit that referenced this pull request Feb 5, 2025
* /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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The URL for new projects should not be hard-coded
3 participants