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

Pluralize index routes #1900

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

williamjallen
Copy link
Collaborator

It is traditional for "index" routes which display a list of subitems which can be navigated to via unique IDs to be pluralized. For example, a page showing the questions available should be under the route /questions, while a specific question should be available at /questions/<id>. Examples of major websites which follow this convention:

CDash currently has an inconsistent mix of route styles. As we work to modernize the codebase, we should also modernize our routing structure while maintaining backwards compatibility wherever possible.

This PR standardizes the plurality of our routes which do not end with .php. Updating every link across the site is a major undertaking, and I plan to gradually update links as I refactor various pages as part of CDash 3.4.

Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

LGTM!

@josephsnyder josephsnyder added this pull request to the merge queue Jan 2, 2024
Merged via the queue into Kitware:master with commit 1da9c75 Jan 2, 2024
2 checks passed
@williamjallen williamjallen deleted the plural-index-routes branch January 2, 2024 16:07
github-merge-queue bot pushed a commit that referenced this pull request Feb 6, 2024
This change fixes to a typo in the pluralization rerouting logic
(introduced in #1900) that broke
all existing references to the url: `build/<buildid>/configure`.
github-merge-queue bot pushed a commit that referenced this pull request Feb 28, 2024
This PR adds a new Cypress end-to-end test for the
`builds/<buildid>/configure` page, as part of our efforts to increase
the test coverage. The changes also include a fix to a typo in the
pluralization rerouting logic (introduced in
#1900) that broke all existing
references to the url: `build/<buildid>/configure`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants