Entering a Issue Label Description longer than 101 characters throws an error. #189718
Replies: 2 comments 1 reply
-
|
Hi @YanikKendler, This definitely looks like a validation mismatch between the Frontend (UI) and the Backend (GraphQL API). While the name field has an input mask/limit, the description field is currently allowing users to over-type, leading to that UNPROCESSABLE error. Until the GitHub team implements a character counter or a maxlength attribute on that specific text area, here are a few things to keep in mind:
GraphQL error: UNPROCESSABLE: Description is too long (maximum is 100 characters) ...confirms that the database schema or the API validation layer is strictly capped at 100 characters. Any input at 101 or above will trigger a rollback of the update command.
Keep descriptions high-level: Use the 100 characters for the "What" and "When" of the label. Use a Documentation File: For complex labeling systems, link to a CONTRIBUTING.md or a LABELS.md file in your repository that explains the nuances of each tag in detail.
Add maxlength="100" to the or <textarea> element for the description. Provide a real-time character counter (e.g., 95/100) to prevent the "Save" click from ever failing. I’ve upvoted this! It’s a valid DX (Developer Experience) improvement. Hopefully, a maintainer can triaged this as a UI bug soon. |
Beta Was this translation helpful? Give feedback.
-
|
This looks like a UI and backend validation mismatch. The backend clearly enforces a 100-character limit, but the UI still allows users to type beyond that, which results in the error when saving. Ideally the description field should have a 100 character limit in the UI (like the label name field) and possibly show a character counter to prevent the request from failing. Thanks for reporting this — improving the validation feedback here would definitely make the editing experience smoother. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Feature Area
Issues
Body
Issue Description
When editing the description of issue labels there seems to be a limit of 101 characters for label descriptions on the backend. When trying to save a description that is more than 101 chars, the error
Could not update labelis shown. And the grapqlValidationError:GraphQL error: UNPROCESSABLE: Description is too long (maximum is 100 characters) (path: updateLabel)can be seen in the Network tab.Expected Behaviour
Ignore inputs after the 100 char limit (like the name field already does) and optimally show a warning below the text area that the maximum length is about to be reached.
Steps to reproduce
Labelson the right hand sideEdit LabelsSave changesGuidelines
Beta Was this translation helpful? Give feedback.
All reactions