Bug/COMMS-997: Include version changes in the "Only changes" activity filter - #25128
Conversation
The filter never consulted the work_package_version_journals snapshot table, so a journal whose only change was a target or observed-in version was hidden.
There was a problem hiding this comment.
🟢 Approval recommended
The change is narrowly scoped, uses existing side-table comparison logic consistently, and is backed by targeted specs covering the reported regression scenarios.
Pull request overview
Extends the Activities tab “Only changes” filter to treat target/observed-in version snapshot changes (work_package_version_journals) as real journal changes, so version-only updates are no longer hidden from the activity feed.
Changes:
- Add version snapshot comparison (
work_package_version_journals) to the SQL-based journal change detection. - Add paginator specs covering version add/remove, snapshot-only no-op, and cross-kind moves (target ↔ observed-in).
File summaries
| File | Description |
|---|---|
| spec/services/work_packages/activities_tab/paginator_spec.rb | Adds regression coverage ensuring version-only journal changes are included by the “Only changes” filter, including cross-kind moves. |
| app/services/work_packages/activities_tab/paginator/journal_changes_filter.rb | Includes version snapshot side-table comparison in the SQL EXISTS heuristics to detect version-related journal changes. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy 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. |
The (version_id, kind) join key exists so a kept sibling version is not mistaken for a change; these examples pin that for target and observed-in versions.
|
Warning Flaky specs
🤖 Ask Copilot to investigateCopy 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. |
Deploying openproject with ⚡ PullPreview
|
https://community.openproject.org/wp/COMMS-997
Include version changes in the "Only changes" activity filter