Update error messages with word "don't"
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
While testing the action to destroy an action, and purposefully creating situations where an error message would get displayed, I noted a string which would need encoding:
This should be changed to do not, as defined in the Documentation Style Guide - Contractions. Furthermore, the sentence should have a period at the end.
The error seems to come from authorize_resource.rb#L11, however there seem to be multiple places using the word "don't" or "don't". We suggest to update the text everywhere.
What is the current bug behavior?
- Backend error includes word "don't".
- Backend error does not have a period at the end of the sentence.
What is the expected correct behavior?
-
Backend error includes words "do not" -
Backend error does have a period at the end of the sentence.
How to reproduce
- Enable the feature flag:
echo "Feature.enable(:global_ai_catalog)" | rails c - If needed, add some seed data:
echo "FactoryBot.create_list(:ai_catalog_item, 10, item_type: :flow, project_id: 1000000)" | rails c - Visit http://gdk.test:3000/explore/ai-catalog/agents
- Open the same page in another tab
- Delete the first agent in tab 1
- Delete the same first agent in tab 2
Edited by 🤖 GitLab Bot 🤖
