Skip to content

Use formatted_id in WorkPackage#infoline#23098

Merged
akabiru merged 1 commit into
devfrom
implementation/wp-infoline-semantic-id
May 7, 2026
Merged

Use formatted_id in WorkPackage#infoline#23098
akabiru merged 1 commit into
devfrom
implementation/wp-infoline-semantic-id

Conversation

@akabiru
Copy link
Copy Markdown
Member

@akabiru akabiru commented May 7, 2026

Ticket

Follow-up from manual verification of #22976.

Screenshots

Beforeinfoline interpolated ##{id}, so <title> showed the numeric id in semantic mode:

pr23098-before-semantic

Afterinfoline interpolates #{formatted_id}, so <title> matches the URL in semantic mode:

pr23098-after-semantic

Fix

The work package show page's <title> keeps producing a numeric id in semantic mode (e.g. Epic: Subject (#9575) rather than D1-1). The title is built from WorkPackage#infoline, which hardcodes the # prefix; switching it to formatted_id yields #42 in classic mode and PROJ-1 in semantic. Spec coverage added in both modes.

The page <title> on the WP show view is built from #infoline; with a
hardcoded "##{id}" it disagreed with every other surface in semantic
mode (numeric primary key vs. "PROJ-1"). formatted_id resolves to "#42"
in classic mode and "PROJ-1" in semantic, mirroring the shape already
used by #to_s and link_to_work_package.
@akabiru akabiru self-assigned this May 7, 2026
@akabiru akabiru added this to the 17.5.x milestone May 7, 2026
@akabiru akabiru marked this pull request as ready for review May 7, 2026 07:17
@akabiru akabiru requested a review from HDinger May 7, 2026 07:17
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 7, 2026

Deploying openproject with PullPreview

Field Value
Latest commit 3218d48
Job deploy
Status ✅ Deploy successful
Preview URL https://pr-23098-wp-infoline-sema-ip-178-105-72-188.my.opf.run:443

View logs

@akabiru akabiru merged commit 6df9e6d into dev May 7, 2026
19 checks passed
@akabiru akabiru deleted the implementation/wp-infoline-semantic-id branch May 7, 2026 11:01
@github-actions github-actions Bot locked and limited conversation to collaborators May 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants