Skip to content

Conversation

@EinLama
Copy link
Contributor

@EinLama EinLama commented Jan 7, 2026

Ticket

https://community.openproject.org/wp/70107

What are you trying to accomplish?

Fix the project creation api endpoint erroneously skipping required custom field validations.

What approach did you choose and why?

Update the BaseServices::SetAttributes#set_custom_values_to_validate to validate all custom field values when the record is not persisted, while validating user-provided custom field values when the record is persisted. This is in line with the specification.

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@EinLama EinLama changed the title [#70107] Add failing spec for a known bug [#70107] Required project attributes not enforced on POST /api/v3/projects Jan 7, 2026
@dombesz dombesz self-assigned this Jan 8, 2026
@dombesz dombesz marked this pull request as ready for review January 8, 2026 17:04
@dombesz dombesz force-pushed the bug/70107-required-project-attributes-not-enforced-on-post-api-v3-projects branch from bca7e73 to 7e9b1bf Compare January 9, 2026 20:03
@dombesz dombesz force-pushed the bug/70107-required-project-attributes-not-enforced-on-post-api-v3-projects branch from 7e3d710 to feaec0d Compare January 10, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants