Fix route constraint for Credits dashboards
What does this MR do and why?
Related to https://gitlab.com/gitlab-org/customers-gitlab-com/-/work_items/15567
This MR fixes a bug in the route definition for GitLab Credits Dashboards for both group and instance settings where username was not properly
parsed into params for usernames containing a period (e.g. ralph.wiggum). This addresses the bug by setting constraints for username matching as well as ignoring the format option.
References
https://gitlab.com/gitlab-org/customers-gitlab-com/-/work_items/15567+
Screenshots or screen recordings
| Before | After |
|---|---|
|
|
How to set up and validate locally
- Make sure you have at least one group member that has a username containing a period. If not, create one before continuing.
- Visit the GitLab Credits page for the group: e.g.
http://localhost:3000/groups/clickhouse/-/settings/gitlab_credits_dashboard - Click the user with the username containing a period.
- While on this branch, the resulting user page should load. Without this branch, the page will show a loading spinner indefinitely.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

