Skip to content

[FND-283] Journal work package categories - #27253

Draft
akabiru wants to merge 3 commits into
devfrom
implementation/fnd-283-journal-categories
Draft

akabiru wants to merge 3 commits into
devfrom
implementation/fnd-283-journal-categories

Conversation

@akabiru

@akabiru akabiru commented Nov 24, 2026

Copy link
Copy Markdown
Member

Ticket

https://community.openproject.org/wp/FND-283

What are you trying to accomplish?

Journals record the full set of a work package's categories, so the Activity tab and its "Only changes" filter show every category change; existing journals are backfilled from category_id.

Target versions equivalent for comparison: #24146 (journaling), #25517 (deleted placeholder). Labels: #25320.

AI involvement

Collaborative – AI generated a substantial part of the code; I reviewed and understand every line.

@akabiru akabiru self-assigned this Nov 24, 2026
@github-actions github-actions Bot added the ai: Collaborative 💻 AI generated a substantial part of the code; A human reviewed and understands every line. label Nov 24, 2026
@akabiru akabiru added this to the 18.1.x milestone Nov 24, 2026
@github-actions

Copy link
Copy Markdown

Warning

Flaky specs

  • rspec ./modules/backlogs/spec/features/buckets/create_spec.rb[1:1]
🤖 Ask Copilot to investigate

Copy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer.

@copilot The following spec(s) are flaky in CI (first seen on PR #27253, linked for reference only):

- `rspec ./modules/backlogs/spec/features/buckets/create_spec.rb[1:1]`

Treat this as a standalone task, unrelated to PR #27253. Create a new branch from origin/dev and open a new pull request targeting dev — do not stack it on PR #27253 or reuse that branch.

Follow the playbook in docs/development/testing/handling-flaky-tests/README.md to find the root cause and fix the underlying race — do not skip, delete, or weaken the spec to make it pass; disabling is a last resort per the playbook, and only with a bug ticket. Verify the fix by running the spec(s) repeatedly (e.g. `script/bulk_run_rspec --run-count 10`).

If you cannot reproduce the flake or are not confident in a fix after reasonable investigation, do not fabricate a change or skip the spec to force CI green. Instead, leave the pull request in draft and document what you tried, the suspected cause, and any leads in its description, then assign @akabiru to take over.

Once the fix is verified, title the PR after the spec(s) it fixes, and use the PR description to explain the root cause, how the change resolves it, and the before/after results. Label the PR `flaky-spec`, assign @akabiru, and request a review from @akabiru.
On every commit, set @akabiru as the sole co-author with a `Co-authored-by:` trailer (use their GitHub no-reply email so it links to their account), so it is traceable who dispatched the fix.

@akabiru
akabiru added this pull request to stack #27256 November 24, 2026 20:11
Journals only recorded the mirrored category_id column, so a change to
any category but the first left no trace. Each work package journal now
stores the full set, and existing journals get theirs from category_id
so the next save does not record a spurious change.

https://community.openproject.org/wp/FND-283
Activity views load each journal's category snapshot up front, and
"only changes" counts a changed set of categories as a change, which
the mirrored column cannot show for any category but the first.

https://community.openproject.org/wp/FND-283
The activity shows one line for the set of categories instead of the
mirrored column, labeled "Category" until multiple categories is
enabled. Deleted categories keep rendering through a placeholder.

https://community.openproject.org/wp/FND-283
@akabiru
akabiru force-pushed the implementation/fnd-283-journal-categories branch from f04f8f1 to 71a0c18 Compare November 27, 2026 06:52

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai: Collaborative 💻 AI generated a substantial part of the code; A human reviewed and understands every line.

Development

Successfully merging this pull request may close these issues.

1 participant