New contrib extension request: Page Approval Application

Hi all,

I would like to request the creation of a repository for an application that adds a lightweight approval workflow to pages holding an object of one of a configurable set of classes.

It differs from the Publication Workflow Application in that it keeps a single page rather than separate ones: draft, candidate and approved are statuses of the page’s versions. And unlike change requests, edits are made directly to the page, which updates its approval status automatically.

  • Proposed application name: Page Approval (page-approval)
  • JIRA project: PAPV

Stéphane

Hi @slauriere

could you elaborate a bit about the need exactly?

AFAIU, technically speaking, what you want is basically a new xclass defining an automaton of status for pages, and some listeners and script services probably to update the status, right?

But what’s the actual need for users? To know that a page hasn’t been approved/reviewed yet? Then how do you give the rights to review / approve?

Thanks

Thanks for your reply @surli.

The need is to mark a specific version of a page as approved and to display that version by default, even when a more recent, work-in-progress version exists. Users remain free to view the more recent version if they wish. They are then told that the version they are viewing has not been approved yet. The need was expressed by existing XWiki users who found that maintaining two distinct versions (draft and published) was a bit heavy in their specific context.

Approval rights are meant to be configurable: they can be granted per class, per location or by other means, possibly by a script. And yes, the automation is handled by a script service.

I’m considering to publish a specification on design.xwiki.org before the first release so that we can discuss the scope further collaboratively.

Until then, a repository would allow potential users to experiment with snapshot versions until we reach v1.0.

Please let me know if this answers your questions, and if you have other comments on the approach!

Hmm we brainstormed recently with @mflorea about a future Draft feature in XWIki Standard, wouldn’t that fit your need? https://design.xwiki.org/xwiki/bin/view/Proposal/DocumentDrafts The idea being that the Draft is a “work in progress” version you mention, also possibly viewable, while there would be the published version always displayed.

Now in case of draft there’s no concept of approval right: it’s the editor who approves the change of their draft.

Thank you for the info. There is indeed some overlap in terms of document status. However the key feature of the Page Approval app would be the management of rights indeed. In addition, the app would manage three statuses (draft, candidate, approved), possibly more in the future (eg “archive”). I think the user experience would also be significantly different: approvers would be able to view the list of documents they need to approve or have approved, and would receive reminders about those that need to be re-approved after a set period (possibly with some overlap with, or reuse of, the Review Pages extension).

So my understanding is that, despite the partial overlap with DocumentDrafts, a dedicated extension would be a better fit. What do you think?

Maybe an option we could consider in any case in the future is that Page Approval uses the concept of DocumentDrafts when it’s released, what do you think? I’m adding the fact that I would need to release a first version of the approval feature this month.

Hi @surli, Hi everyone, I’ve written a description of the intended extension on the design wiki at Page Approval. That’d be great to have your take on it and to know if it helps clarify the objective, how it differs from DraftDocuments, and how it might complement it in the future, depending on the directions both take. What do you think?