Repository navigation
refactor(ocm): add graph webapp metadata carrier - #5852
Merged
Merged
Conversation
MahdiBaghbani
requested review from
diocas,
glpatcern,
jessegeens and
rawe0
as code owners
September 29, 2026 10:21
MahdiBaghbani
force-pushed
the
graph-webapp-metadata-carrier
branch
from
September 29, 2026 12:35
70b1c06 to
bc65148
Compare
MahdiBaghbani
force-pushed
the
graph-webapp-metadata-carrier
branch
from
October 6, 2026 06:45
bc65148 to
0ff16eb
Compare
MahdiBaghbani
force-pushed
the
graph-webapp-metadata-carrier
branch
from
October 7, 2026 08:38
0ff16eb to
e1a59e4
Compare
MahdiBaghbani
force-pushed
the
graph-webapp-metadata-carrier
branch
from
October 8, 2026 08:29
e1a59e4 to
3389540
Compare
glpatcern
force-pushed
the
graph-webapp-metadata-carrier
branch
3 times, most recently
from
October 12, 2026 14:26
9a9cb10 to
a26a0dd
Compare
MahdiBaghbani
force-pushed
the
graph-webapp-metadata-carrier
branch
2 times, most recently
from
October 15, 2026 19:34
5136228 to
7a77076
Compare
MahdiBaghbani
force-pushed
the
graph-webapp-metadata-carrier
branch
from
October 15, 2026 20:56
7a77076 to
5c715a6
Compare
glpatcern
force-pushed
the
graph-webapp-metadata-carrier
branch
from
October 19, 2026 10:18
5c715a6 to
cf5d7ba
Compare
glpatcern
force-pushed
the
graph-webapp-metadata-carrier
branch
from
October 19, 2026 13:47
cf5d7ba to
0f0cd11
Compare
glpatcern
force-pushed
the
graph-webapp-metadata-carrier
branch
from
October 20, 2026 09:20
0f0cd11 to
0c66c14
Compare
glpatcern
previously approved these changes
Oct 22, 2026
MahdiBaghbani
force-pushed
the
graph-webapp-metadata-carrier
branch
from
October 30, 2026 15:36
0c66c14 to
545c12c
Compare
glpatcern
force-pushed
the
graph-webapp-metadata-carrier
branch
2 times, most recently
from
November 4, 2026 09:30
238c914 to
3b96213
Compare
glpatcern
previously approved these changes
Nov 4, 2026
glpatcern
force-pushed
the
graph-webapp-metadata-carrier
branch
from
November 4, 2026 11:38
3b96213 to
157a8ee
Compare
glpatcern
force-pushed
the
graph-webapp-metadata-carrier
branch
from
November 4, 2026 12:53
157a8ee to
6e0e013
Compare
Signed-off-by: Mahdi Baghbani <[email protected]>
Signed-off-by: Mahdi Baghbani <[email protected]>
Signed-off-by: Mahdi Baghbani <[email protected]>
Signed-off-by: Mahdi Baghbani <[email protected]>
glpatcern
force-pushed
the
graph-webapp-metadata-carrier
branch
from
November 4, 2026 12:57
6e0e013 to
eadb816
Compare
glpatcern
self-requested a review
November 4, 2026 12:57
glpatcern
approved these changes
Nov 4, 2026
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
receivedShareDriveItem, the carrier that lets sharedWithMe return a received webapp name. WhenReceivedWebappMetadata.Presentis true it splices"@ocm.webApp": {"appName": ...}intoremoteItemafter the stockDriveItemmarshal. Nothing produces metadata yet (getSharedWithMepasses nil), so responses are byte-identical until the next PR.remoteItem, next topermissions, and leave the singlepermissions[0]grant alone. Splicing afterjson.Marshalkeeps the generated libregraph types untouched, and nil or not-present metadata returns exactlyjson.Marshal(DriveItem). An emptyappNameis still emitted, so "offered without a name" stays distinguishable from "no webapp".SHA256SUMSmanifest (present, omitted, empty name, resource projections). The CERNBox web side vendors the same bytes.flowchart TD M["receivedShareDriveItem.MarshalJSON"] --> P{"metadata Present?"} P -->|"nil or false"| RAW["json.Marshal(DriveItem), unchanged bytes"] P -->|"true"| B["json.Marshal(DriveItem)"] B --> R{"remoteItem is an object?"} R -->|"no"| E["error, nothing written"] R -->|"yes"| S["remoteItem @ocm.webApp = appName"]