Skip to content

Uniquify path slug creation from group name

What does this MR do?

Currently, if a user creates a group with a name that has already been taken they are hit with a large error. This is a disruptive experience to the user, if they update the group name, it does not update the URL which keeps the error active, the user must manually adjust the group URL to clear the error.

See issue #32458 (closed)

Note that backend already checks for namespace path slug uniqueness. This MR does frontend checks using the new suggests API.

  1. The very first group path suggestion is always unique by calling the suggests api
  2. If group path slug is already taken, give visual alert

Screenshots

header header header
screenshot-2019-11-04-10-54-34 screenshot-2019-11-04-10-54-57 screenshot-2019-11-04-10-55-30
The very first group path suggestion is always unique If group path slug is already taken, give visual alert If group path slug is available a text alert

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Closes #32458 (closed)

Edited by Mike Greiling

Merge request reports