Skip to content

docs(events): describe the paginated share-review source API - #15592

Draft
AndyScherzinger wants to merge 1 commit into
masterfrom
docs/share-review-paginated-source
Draft

docs(events): describe the paginated share-review source API#15592
AndyScherzinger wants to merge 1 commit into
masterfrom
docs/share-review-paginated-source

Conversation

@AndyScherzinger

@AndyScherzinger AndyScherzinger commented Sep 8, 2026

Copy link
Copy Markdown
Member

☑️ Resolves

Two entries on the OCP events page are updated:

ShareReviewAccessCheckEvent gains a .. versionchanged:: 36 note: the event now carries the operation being authorized (getAction() — delete, remediate, restore), the acting user (getActingUserId()) and the scope (getScope() — operator or self, where a listener must additionally verify initiatorship). It records how those values reach the owning app (through the optional ShareReviewActionContext that a share-review app passes to the mutators, forwarded into the event verbatim), and what a listener written against 34.0.2 sees: it keeps failing closed for non-operators, but for operators the new actions extend the granted capability set, so a listener that distinguishes delete-only reviewers has to check getAction() and deny what it does not recognise.

RegisterShareReviewSourceEvent gains a .. versionchanged:: 36 note for IPaginatedShareReviewSource: queryShares() with the ShareReviewQuery filter set, countShares() / countSharesByType() / countSharesByInitiator() for counts without rows, getShare() for a keyed lookup, and getDisplayName() next to a getName() that stays a stable untranslated id. It also states the rules an implementation must honour (secondary sort on the primary key, NULLs last, LIKE escaping, exact token comparison, empty list matches nothing, one GROUP BY scan per grouped count) and describes the two optional capability interfaces, including why remediation applies to link and mail shares only.

🖼️ Screenshots

share-review-docs-change

✅ Checklist

  • I have built the documentation locally and reviewed the output
  • Screenshots are included for visual changes
  • I have not moved or renamed pages (or added a redirect if I did)
  • I have run codespell or similar and addressed any spelling issues

This PR was written with AI assistance; the commit carries an Assisted-by trailer.

🤖 Generated with Claude Code

Document the Nextcloud 36 additions to the share-review events: the
IPaginatedShareReviewSource interface collected through
RegisterShareReviewSourceEvent (page-wise listing with sorting, search,
filters and counts, keyed lookup, localized label, optional remediation
and snapshot capabilities) and the action, acting user and scope carried
by ShareReviewAccessCheckEvent.

Assisted-by: Claude Code:claude-opus-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

🔍 Open preview →

📄 1 changed documentation page

Last updated: Tue, 08 Sep 2026 17:50:14 GMT

@AndyScherzinger AndyScherzinger added this to the Nextcloud 36 milestone Sep 8, 2026
@AndyScherzinger

Copy link
Copy Markdown
Member Author

/backport to stable35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant