Repository navigation
feat(ocm): carry received webapp name in resources - #274
Merged
glpatcern merged 2 commits intoNov 5, 2026
Merged
Conversation
glpatcern
force-pushed
the
received-webapp-resource-metadata
branch
from
October 6, 2026 15:52
76c484f to
daf4a76
Compare
MahdiBaghbani
force-pushed
the
received-webapp-resource-metadata
branch
from
October 7, 2026 16:08
daf4a76 to
51eb857
Compare
rawe0
force-pushed
the
received-webapp-resource-metadata
branch
from
October 12, 2026 16:37
51eb857 to
5ef7f18
Compare
rawe0
self-requested a review
October 21, 2026 14:32
rawe0
reviewed
Oct 21, 2026
Member
Author
|
No, it won't It only reads Without it the The |
rawe0
self-requested a review
October 22, 2026 14:32
rawe0
approved these changes
Oct 22, 2026
Signed-off-by: Mahdi Baghbani <[email protected]>
Signed-off-by: Mahdi Baghbani <[email protected]>
MahdiBaghbani
force-pushed
the
received-webapp-resource-metadata
branch
from
October 30, 2026 10:51
3a4e32a to
5fcc037
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is part of the cs3org/OCM-STA#20 and cs3org/OCM-STA#48
Summary
remoteItem["@ocm.webApp"].appName, feat(ocm): expose received webapp metadata cs3org/reva#5853) and keep it on the resource asocmWebApp: { appName }. The optional member is declared once onResource, soIncomingShareResourceinherits it, and the generated Graph types stay untouched."". A missing key,null, an array, or a non-string name leavesocmWebAppoff. Deciding what counts as usable (trim, empty) is left to the action in the next PR, so this layer keeps "no webapp" and "webapp without a name" apart.remoteItem. A descriptor on the permission and@libre.graph.permissions.actionsare ignored, and ids, roles, and the grant still come from the existing permission mapping. The fixtures are the same bytes as the Reva goldens.flowchart TD G["sharedWithMe DriveItem"] --> R["readReceivedOcmWebApp(remoteItem)"] R --> K{"@ocm.webApp is a plain object?"} K -->|"missing, null, or array"| O["ocmWebApp omitted"] K -->|"yes"| N{"appName is a string?"} N -->|"no"| O N -->|"yes, empty included"| C["resource.ocmWebApp = { appName }"]