-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#55299] Project attributes: Fix phrasing of "required" and "visible" fields #16334
[#55299] Project attributes: Fix phrasing of "required" and "visible" fields #16334
Conversation
Generated by 🚫 Danger |
3aa3034
to
a2819bb
Compare
a2819bb
to
4442592
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ok if renaming also happens for other custom fields?
"Required for all projects" sounds a bit off: for instance for user custom fields and groups custom fields, the custom field is not related to any projects. Same for Time Spent custom fields.

For work package custom fields, it's also strange to have "Required for all projects" and "For all projects" at the same time, as it's possible to have it required and being disabled for some projects.
And the description for "Searchable" feels wrong too as it is specific to project attributes / project custom fields.
Maybe the renaming should be limited to project attributes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The admin-only attribute can not be saved.
admin-only.attribute.not.kept.webm
:admin_only
is missing in permitted params in app/models/permitted_params.rb:462
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
It seems to work well, except the field admin_only which can not be saved. Other than that it matches the spec.
The renaming seems confusing for custom fields that are not project custom fields. I'd like to have @psatyal point of view about it.
spec/migrations/rename_visible_to_admin_only_in_custom_fields_spec.rb
Outdated
Show resolved
Hide resolved
Thanks @cbliard , I agree the renaming seems to be tailored to the project attributes. One option could be to apply the renaming only on the project attributes, and not all the custom fields. cc @psatyal . |
Yep, it looks like a good option. Parimal is back tomorrow. |
@dombesz I talked about it during today's frontend meeting. We agreed upon this:
I'll update the work package description to reflect this. |
…from the other custom fields
597ec57
to
e56ca49
Compare
What are you trying to accomplish?
Update custom field attribute names and descriptions for
required
andvisible
. Change thevisible
boolean field toadmin_only
and flip the logic around the flag.What approach did you choose and why?
visible
toadmin_only
and flip the boolean values also flipping the default value from true to false.visible
occurences in the code withadmin_only
.Ticket
https://community.openproject.org/wp/55299
Also addresses https://community.openproject.org/wp/56897
Merge checklist
Added/updated documentation in Lookbook (patterns, previews, etc)Tested major browsers (Chrome, Firefox, Edge, ...)