mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
5fdf57df69
The work package activity tab computed a per-journal sequence_version on every render — a ROW_NUMBER() window function over a LATERAL join — only to stamp the legacy data-anchor-activity-id that #activity-N deep links rely on. Nothing mints those links anymore; copy and share links use #comment-<journal id>, which needs no extra query. The activity number is now resolved on demand. Only a request carrying ?anchor=activity-N runs the window function, mapping the number to a journal id the paginator exposes as resolved_anchor. The view hands that to the client, which rewrites #activity-N to the canonical #comment-<id> and scrolls using the comment anchor already present in the DOM. Default renders no longer touch the window function. References WP #68063.