Skip to content

protocol: list schemas in granted shares - #102

Draft
littlegrasscao wants to merge 3 commits into
server/split2/12-protocol-sharesfrom
server/split2/13-protocol-schemas
Draft

littlegrasscao wants to merge 3 commits into
server/split2/12-protocol-sharesfrom
server/split2/13-protocol-schemas

Conversation

@littlegrasscao

@littlegrasscao littlegrasscao commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • add GET /shares/{share}/schemas to OpenSharingProtocolService, behind RecipientTokenDecorator
  • core ProtocolSchemas returns the distinct shared-as schemas, ordered by name, only when the recipient holds SELECT (ProtocolShares.requireGranted)
  • report a missing or ungranted share as RESOURCE_DOES_NOT_EXIST
  • reuse bounded maxResults / opaque pageToken pagination, where maxResults=0 returns no items with a token
  • add main.hr and main.ops.people to the local catalog for the tests

Testing

  • mvn clean install: 134 tests passed
  • ProtocolSchemasTest: lists the distinct schemas in a granted share, pages them, and returns an empty list for a granted share with no objects; maxResults=0 returns no schemas but a token

Stacked on #101.

@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch 3 times, most recently from 391ec01 to 06520ed Compare September 22, 2026 21:58
@littlegrasscao
littlegrasscao marked this pull request as ready for review September 22, 2026 22:28
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from 06520ed to a9134af Compare September 25, 2026 22:08
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from a9134af to d178541 Compare September 25, 2026 22:20
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from d178541 to a58fed7 Compare September 25, 2026 22:28
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from a58fed7 to e8b3738 Compare September 25, 2026 22:33
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch 3 times, most recently from 79af3b9 to a76c9b7 Compare September 26, 2026 00:14
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from a76c9b7 to f4b8d61 Compare September 26, 2026 00:16
@littlegrasscao
littlegrasscao marked this pull request as draft October 7, 2026 01:57
@littlegrasscao littlegrasscao changed the title server: list schemas in granted shares protocol: list schemas in granted shares Oct 9, 2026
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch 2 times, most recently from 52b1fd5 to 621c587 Compare October 14, 2026 01:12
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from 2df9f1b to 17f58ea Compare October 15, 2026 18:29
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from 17f58ea to 06359c8 Compare October 15, 2026 23:35
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from 06359c8 to e9412e7 Compare October 15, 2026 23:38
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from e9412e7 to a85a511 Compare October 15, 2026 23:54
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from a85a511 to 45baa1e Compare October 16, 2026 00:17
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from 45baa1e to 2798c21 Compare October 16, 2026 00:41
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from 2798c21 to 1496138 Compare October 19, 2026 17:12
@zhu-tom
zhu-tom added this pull request to stack #116 October 19, 2026 19:06
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from 1496138 to bfeaf19 Compare October 19, 2026 21:43
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch 2 times, most recently from c6920ce to 60f4ad0 Compare October 19, 2026 22:36
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch 2 times, most recently from a6b0b07 to 7a15244 Compare October 21, 2026 17:01
@littlegrasscao
littlegrasscao force-pushed the server/split2/13-protocol-schemas branch from 7a15244 to 4b60022 Compare October 21, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant