Commit Graph

2317 Commits

Author SHA1 Message Date
Eric Schubert 887ded5714 [#71358] fixed version read model usage
- improved description of API spec
2026-02-12 13:13:11 +01:00
Jan Sandbrink 780d880eb1 Merge pull request #21904 from opf/project-api-schema
Only return projects from search_projects MCP tool
2026-02-11 11:18:33 +01:00
Jan Sandbrink 953ab1a6a8 Fix API::Errors::InternalError class
This class got broken during what seems to be a
drive-by style-improvement in fbe1215365. That change:

* made it incompatible with frozen strings as error messages
* broke the intended hiding of messages if they came from the
  wrong class

All of this went by unnoticed, because there were no specs
for the InternalError class.

Specs have now been added and the previous version of the code
mostly restored. Since there were some callers that always created the
exception with known safe error messages, I added a new class just for these
cases, because they were intended to "just show the message". So we can
keep using the original implementation for rescue_from handling.
2026-02-09 11:04:57 +01:00
Jan Sandbrink 8ca3c9eb66 Test portfolio and program schema against representer
Both are rendered through the ProjectRepresenter (because they are technically
implemented as Projects), but haven't been tested against it yet.

This also means that they still included required properties that were already
removed from the project schema (this was an error in the schema).
2026-02-06 15:50:27 +01:00
Oliver Günther 1857f25b58 Primerize static link helper and use that for external links consistently 2026-02-03 11:41:43 +01:00
Oliver Günther 3426a5e845 add allowExternalLink dataset to skip link capture 2026-02-03 11:11:40 +01:00
Oliver Günther 3f328ff735 Use the external-links.controller for link capture 2026-02-03 11:00:27 +01:00
Oliver Günther 896072d698 Release attribute highlighting to community 2026-01-30 15:02:45 +01:00
Oliver Günther 712731ca73 Render link warning 2026-01-28 13:51:53 +01:00
Jan Sandbrink f58e3f79ad Merge pull request #21661 from opf/mcp-resources
Add MCP resource handling
2026-01-27 12:25:23 +01:00
Henriette Darge 22122bf5fa Merge pull request #21766 from opf/70200-bump-primer-view-components-0-80-0
[70200] Create Fieldset component/form control
2026-01-27 09:38:03 +01:00
OpenProject Actions CI cbdde02105 Merge branch 'release/17.0' into dev 2026-01-26 14:33:05 +00:00
OpenProject Actions CI c21939c8ea Merge branch 'release/16.6' into release/17.0 2026-01-26 10:38:58 +00:00
Oliver Günther 50639e1c74 Use git rev-parse to find commits from input revs (#22)
https://community.openproject.org/work_packages/70988
2026-01-26 11:38:03 +01:00
OpenProject Actions CI 7dd0318e30 Merge branch 'release/16.6' into release/17.0 2026-01-26 05:41:40 +00:00
Oliver Günther 5af326a2ec Remove unused options in work package helper (#21687)
* Remove unused options and improved output in work package helper and object_linking

* Extend tests
2026-01-26 06:40:58 +01:00
Behrokh Satarnejad e29a1f8798 Replace fieldset form component 2026-01-23 17:12:51 +01:00
Jan Sandbrink f48e390bda Do not render nil titles for projectPhaseDefinition
This is against the schema for definition for links, which
already allow the title to be missing, but don't allow
it to be null. If it's present it must have a string as a value.
2026-01-20 15:22:39 +01:00
Alexander Brandon Coles 5436a27358 [#70200] Introduce Fieldset component, input group
Introduces both an unstyled, low-level `FieldsetComponent` and the
`fieldset_group` input group for use with the Primer Forms DSL.

https://community.openproject.org/work_packages/70200
2026-01-14 05:43:56 -03:00
Alexander Brandon Coles dfbf5f0f6c Implement select panel form control/input
Makes `SelectPanel` easily usable via the Forms DSL. Based on upstream
`ActionMenuInput` implementation.
2026-01-09 15:48:32 -03:00
Oliver Günther aa725731f2 Remove narrow mime type 2026-01-09 08:16:04 +01:00
ulferts a7bb8e4285 Merge remote-tracking branch 'origin/dev' into merge-release/17.0-20260106162012 2026-01-06 17:41:43 +01:00
ulferts 365d3e8dc2 rename Project status to Status 2026-01-06 14:55:20 +01:00
OpenProject Actions CI 7cab6fc19a Merge branch 'release/17.0' into dev 2026-01-05 14:57:22 +00:00
Klaus Zanders 5db6dc9356 Ignore order for custom fields test 2026-01-05 11:50:43 +01:00
Klaus Zanders c52ccf59dd Merge branch 'dev' into merge-release/17.0-20251217034954 2025-12-17 12:43:33 +01:00
Ivan Kuchin aeba3641d0 test usage of has_allowed_children? 2025-12-16 17:16:33 +01:00
Ivan Kuchin c084ffdb3d cleanup menu helper spec a bit 2025-12-16 17:16:33 +01:00
Ivan Kuchin 52652b50c6 fix badge_for
Broken in ef9480bbd6
2025-12-16 17:16:31 +01:00
Jan Sandbrink 452f5134b1 Merge pull request #21359 from opf/json-validate
Validate JSON schema of API representers
2025-12-15 14:18:52 +01:00
Oliver Günther 12919d106c Merge remote-tracking branch 'origin/release/17.0' into dev 2025-12-15 11:51:49 +01:00
Jan Sandbrink 0728d07ad1 Self-test basic schema compliance for a few API models
Those self-tests are "basic" in the sense that they only validate
their compliance with our documented schema in one representation.

These test cases don't yet cover/validate whether the generated
representation also fulfills the schema under different circumstances,
for example when rendering for a user with fewer privileges, not allowed
to see certain fields.

Where necessary, the schema was changed to reflect the reality, e.g.
when those tests revealed that a "required" field might be missing due to
a lack of permissions.

In a few cases the implementation was adapted to allow for stricter guarantees
of the specified schema, for example links allowed to leave out the title key
already, so its not necessary to emit `title: nil` in cases where a title is
not known.
2025-12-15 11:10:34 +01:00
ulferts 9064d094d0 exempt favorited property from being cached 2025-12-11 09:31:16 +01:00
Eric Schubert fd4fd82286 [#68226] fixed representer spec 2025-12-05 23:02:05 +01:00
Klaus Zanders e5dab38430 Add :validate_except_on, :validate_if, :validate_unless options for acts_as_customizable 2025-11-28 12:25:21 +01:00
Henriette Darge 313127fb5c Fix tests
Update config/locales/en.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Update app/views/my/account.html.erb

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Update app/forms/my/account_form.rb

Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>

Update app/forms/my/account_form.rb

Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>

Update app/forms/my/account_form.rb

Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>

Apply suggestion from @myabc

Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>
2025-11-26 16:29:25 +01:00
Eric Schubert ac436b1cfe [#69129] harmonize suffix for hierarchy items
- https://community.openproject.org/work_packages/69129
- shorts and weights both are now serialized with parenthesis
2025-11-26 14:19:00 +01:00
Jens Ulferts 957534e3e7 Merge pull request #21148 from opf/implementation/67278-add-api-v3-workspaces-representer-references
Workspace references in representers and auxiliary endpoints
2025-11-26 12:05:34 +01:00
Jens Ulferts ca0770eeb2 Merge pull request #21144 from opf/implementation/67278-add-api-v3-workspaces-endpoints
Adding workspace types endpoints
2025-11-26 12:05:24 +01:00
Oliver Günther 96a3746162 Add caption to API 2025-11-26 09:53:35 +01:00
ulferts f35be30f71 allow workspace to be used as a namespace on setting a project 2025-11-25 18:11:14 +01:00
ulferts 7653fbf66b workspace references in representers and auxilliary endpoints 2025-11-25 16:47:59 +01:00
ulferts d03bf6a763 adding workspace types endpoints 2025-11-25 16:32:58 +01:00
Ivan Kuchin bb566be958 pass workspace_type parameter for new project parent autocompleter 2025-11-24 13:51:08 +01:00
Klaus Zanders 5a9c04c0a0 Merge pull request #20998 from opf/membership-custom-fields
Add association between custom field and role
2025-11-19 12:08:51 +01:00
Klaus Zanders 370bd6efa7 rename test file for Customizable 2025-11-18 10:02:19 +01:00
Copilot de219c8a5b Remove redundant name parameter from radio_button calls in specs (#21049)
* Initial plan

* Remove redundant name parameter from radio_button calls in spec

Co-authored-by: myabc <755+myabc@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: myabc <755+myabc@users.noreply.github.com>
2025-11-17 01:27:24 -03:00
Alexander Brandon Coles 2c3a84df04 Implement advanced check, radio form controls 2025-11-17 00:05:59 -03:00
dombesz 0f4ee6ec9e Merge pull request #21036 from opf/mutliple-custom-values-changes
Build correct changeset for multi-value custom fields
2025-11-14 15:37:24 +01:00
Klaus Zanders 6fc4dfb0aa Build correct changeset for multi-value custom fields 2025-11-14 12:14:35 +01:00