Increase the maximum allowed length for Namespace::Detail#description
What does this MR do and why?
This aligns the validation with Project#description to avoid invisible
errors that prevent project deletion or transfer.
References
- Related to Unable to delete project if description length ... (#556328 - closed) • Rémy Coutable • 18.3.
- Related to https://gitlab.com/gitlab-com/request-for-help/-/issues/3142+s
How to set up and validate locally
- Set a project's description to 501 characters (through the Rails console).
- Try to delete the project: you should get a
Project could not be updated!without the changes from this MR, and no error with the changes from this MR. - Try to transfer the project to another namespace: you should get a
422 The change you requested was rejectedwithout the changes from this MR, and no error with the changes from this MR.
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.
Edited by Rémy Coutable