Skip to content

[OP#73838] Introducing the Wikis::PageLinkRepresenter#22745

Merged
mereghost merged 6 commits intodevfrom
impl/73838-page-link-representer
Apr 15, 2026
Merged

[OP#73838] Introducing the Wikis::PageLinkRepresenter#22745
mereghost merged 6 commits intodevfrom
impl/73838-page-link-representer

Conversation

@mereghost
Copy link
Copy Markdown
Contributor

@mereghost mereghost commented Apr 13, 2026

Introduces the PageLinkRepresenter

Nothing too fancy here, just a plain renderer. I introduced the #author? method to PageLink as a quick cop-out if the author is relevant and should be rendered.

It probably warrants at least a rename. 🤣

The ProviderRepresenter for now is also pretty simple, I just needed it to exist in order to be able to link the provider from the PageLink. It will be expanded in future PRs.

@mereghost mereghost self-assigned this Apr 13, 2026
@mereghost mereghost force-pushed the impl/73838-page-link-representer branch from 231c81f to a723d84 Compare April 14, 2026 08:33
@mereghost mereghost requested a review from a team April 14, 2026 08:38
@mereghost mereghost marked this pull request as ready for review April 14, 2026 08:38
@mereghost mereghost force-pushed the impl/73838-page-link-representer branch 2 times, most recently from 40df1b6 to 2251a33 Compare April 15, 2026 07:45
Copy link
Copy Markdown
Contributor

@NobodysNightmare NobodysNightmare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My question about the view permission aside this mostly LGTM.

Do I understand this PR correctly in that it does not introduce the actual API endpoints but only the representers? I am not yet sure what you need those for :D

Comment thread modules/wikis/app/models/wikis/page_link.rb Outdated
Comment thread modules/wikis/config/locales/en.yml
Comment thread modules/wikis/lib/api/v3/page_links/page_link_representer.rb
Comment thread modules/wikis/lib/api/v3/page_links/page_link_representer.rb Outdated
Comment thread modules/wikis/lib/api/v3/page_links/page_link_representer.rb
Comment thread modules/wikis/lib/open_project/wikis/engine.rb
Comment thread modules/wikis/lib/open_project/wikis/engine.rb Outdated
@mereghost mereghost force-pushed the impl/73838-page-link-representer branch from 0ff19ab to 2779064 Compare April 15, 2026 08:53
@mereghost mereghost force-pushed the impl/73838-page-link-representer branch from 2779064 to 7c5c125 Compare April 15, 2026 12:41
@mereghost mereghost merged commit 592b35d into dev Apr 15, 2026
16 of 17 checks passed
@mereghost mereghost deleted the impl/73838-page-link-representer branch April 15, 2026 13:40
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 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