8 Commits

Author SHA1 Message Date
Klaus Zanders a9a6898153 Remove inline disables for DynamicFindBy 2026-04-27 09:22:18 +02:00
Kabiru Mwenja 462a0f1c78 Replace transparent find_by resolution with ArgumentError guard
find_by(id:) and find_by!(id:) now raise ArgumentError when passed
a semantic identifier string, directing developers to use find() or
the new find_by_display_id() method instead. This avoids silently
altering ActiveRecord's find_by semantics and ensures misuse is
caught in development even when semantic mode is not enabled locally.

Renames find_by_id_or_identifier to find_by_display_id (public API)
and migrates all app callers that receive user-facing strings to use
the new method.
2026-04-17 18:17:15 +03:00
OpenProject Actions CI 4f701afb5f Merge branch 'release/17.1' into dev 2026-02-20 04:17:28 +00:00
Jan Sandbrink 272ff67619 Introduce visible scope for types and statuses
Both models are only supposed to be visible
to users that have some basic permissions in at least
one project. While the desired scoping is not very fine grained
(you either see all or nothing), it still makes sense for all
models to have such a scope for consistency purposes.
2026-02-19 13:27:24 +01:00
Klaus Zanders ca5e934da9 Merge branch 'dev' into more-visible-scopes 2026-02-10 13:27:01 +01:00
Klaus Zanders c2bc836ea1 Consistently load work packages via visible scope 2026-02-09 15:07:49 +01:00
Jan Sandbrink 9d362cc032 Add tools and resources around users
Allowing to search for users, e.g. to allow queries like
"find work packages assigned to Maria".
Allowing to find the current user, to enable classic use cases
like "find work packages assigned to me".
2026-02-06 11:14:22 +01:00
Jan Sandbrink ac4e9626ee Add MCP resource handling
Allows to list resources and resource templates and reading
their contents.
2026-01-26 13:22:44 +01:00