Page MenuHomePhabricator

πŸ“œ P1: Add component to Render Policies
Open, Needs TriagePublic

Description

Vue component (or components) and corresponding routes to enable viewing specific policies but active_from date.

For example: https://www.wikibase.cloud/terms-of-use/2026-07-18

Should render the contents of the appropriate vue file for a given policy; it should also show the NavigationPanel to access alternative versions of the same policy type.
This should be determined using GET /v1/policies/{policy_type}/by_active_from/{active_from} from T432339: πŸ“œ P1: Create endpoint to get specific policy by type and active_from date

It's left to the implementer and reviewer to decide if there is to be one generic component or separate components for Terms of Use and Hosting Policy.

Implementation Notes

  • It is possible to define routes that then pass parameters into components. An example of this is how we build Wiki management pages.
  • After thinking about this in breakdown we have some concerns about if the .vue file will even be available in the built application in it's raw form. We expect this might require some careful thinking the ensure we can render the vue file even if this raw path isn't available at runtime and if there are challenges we should discuss them with the team early on.

PRs:

Event Timeline

Tarrow updated the task description. (Show Details)

I paired with @Tarrow on this and we said that for this ticket we scope it on ToU routes like /terms-of-use/:active_from, while keeping the current handling of /terms-of-use/ and /terms-of-use/upcoming until we have the endpoints from T432714: πŸ“œP1: make remaining GET endpoints for upcoming, current and all policies of a given type

In a follow-up ticket the TermsOfUse Renderer should get used for those routes too, as well as call the API for the navigation panel (which can get integrated into the renderer component) + duplicating or generalizing this for the Hosting Policy.

dena removed dena as the assignee of this task.Tue, Jul 21, 1:00 PM
dena moved this task from Doing to Waiting for Peer Review on the Wikibase Cloud (Kanban Board) board.
dena subscribed.

From a quick look at this PR we also need to implement the same functionality for the Hosting Policy. I suggest we ship this PR as it is and then follow up with one to do something similar for hosting policies.

In a follow-up ticket the TermsOfUse Renderer should get used for those routes too, as well as call the API for the navigation panel (which can get integrated into the renderer component)

Followup at T432965

dena removed dena as the assignee of this task.Thu, Jul 23, 1:37 PM
dena moved this task from Doing to Waiting for Peer Review on the Wikibase Cloud (Kanban Board) board.