You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "The first Flow that had a Flow Segment reference the media object in this store. This Flow is also present in 'referenced_by' if it is still referenced by the Flow. This property is optional and may in some implementations become unset if the Flow no longer references the media object, e.g. because it was deleted.",
22
+
"first_referenced_by_flow": {
23
+
"description": "The first Flow that had a Flow Segment reference the media object in this store. This Flow is also present in 'referenced_by_flows' if it is still referenced by the Flow. This property is optional and may in some implementations become unset if the Flow no longer references the media object, e.g. because it was deleted.",
Copy file name to clipboardExpand all lines: docs/adr/0027-add-objects-api-endpoint.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ The proposal is to add a `/objects?object_id={object-id}` endpoint that provides
17
17
* Option 2: Add a `/objects?object_id={object-id}` endpoint that lists all Flows that reference a media object
18
18
* Option 3a: Extend 2 to optionally signal which Flow first referenced the media object in the TAMS instance
19
19
* Option 3b: Restrict 3a to require signalling which Flow referenced the media object first
20
-
* Option 3c: Allow a user to set `first_referenced_by`
20
+
* Option 3c: Allow a user to set `first_referenced_by_flow`
21
21
* Option 4: Add an endpoint to list media objects for a Flow
22
22
23
23
## Decision Outcome
@@ -42,7 +42,7 @@ The Flows (and Flow Segments) referencing a media object can be found by using a
42
42
### Option 2: Add a `/objects?object_id={object-id}` endpoint that lists all Flows that reference a media object
43
43
44
44
This `/objects?object_id={object-id}` endpoint provides JSON that lists of all Flows referencing a media object.
45
-
The `referenced_by` property contains the list of Flow IDs.
45
+
The `referenced_by_flows` property contains the list of Flow IDs.
46
46
47
47
The Flow Segments that reference the media object can all be found using a GET on `/flows/{flow-id}/segments?object_id={object-id}` for every Flow in the listing rather than every Flow.
48
48
The Flow Segments that reference the media object can all be deleted using a DELETE on `/flows/{flow-id}/segments?object_id={object-id}` for every Flow in the listing.
@@ -68,12 +68,12 @@ This allows Flow-level permissions to be used to restrict which Flow Segments ca
68
68
It may be useful to know which Flow was the first to reference the media object in the TAMS instance.
69
69
This could help determine the origins of the media object.
70
70
71
-
An optional `first_referenced_by` property is added to the `/objects?object_id={object-id}` resource that contains the Flow ID.
71
+
An optional `first_referenced_by_flow` property is added to the `/objects?object_id={object-id}` resource that contains the Flow ID.
72
72
73
-
The Flow ID in `first_referenced_by` is set by the TAMS instance and is not settable by a user.
73
+
The Flow ID in `first_referenced_by_flow` is set by the TAMS instance and is not settable by a user.
74
74
75
75
The TAMS instance should set the property to the first Flow that had a new Flow Segment created that referenced the media object.
76
-
The TAMS instance should also include the Flow ID in the `referenced_by` property if the Flow exists in the TAMS and has a Flow Segment referencing the media object.
76
+
The TAMS instance should also include the Flow ID in the `referenced_by_flows` property if the Flow exists in the TAMS and has a Flow Segment referencing the media object.
77
77
The TAMS instance may either remove or keep the property if the first Flow or the Flow Segments referencing the media object in the first Flow are deleted.
78
78
79
79
* Good, because it retains some information that could be used to trace the origins of a media object
@@ -82,15 +82,15 @@ The TAMS instance may either remove or keep the property if the first Flow or th
82
82
83
83
### Option 3b: Restrict 3a to require signalling which Flow referenced the media object first
84
84
85
-
This option restricts 3a to require the `first_referenced_by` to be always be set and retain its value.
85
+
This option restricts 3a to require the `first_referenced_by_flow` to be always be set and retain its value.
86
86
87
87
* Good, because users can rely on the property being set and the value not changing
88
88
* Neutral, because it could reference a Flow that no longer exists
89
89
* Neutral, because it requires a TAMS to record which Flow first referenced a media object
90
90
91
-
### Option 3c: Allow a user to set `first_referenced_by`
91
+
### Option 3c: Allow a user to set `first_referenced_by_flow`
92
92
93
-
This options allows a user to set `first_referenced_by` to provide potentially different information about the origins of the media object.
93
+
This options allows a user to set `first_referenced_by_flow` to provide potentially different information about the origins of the media object.
94
94
The Flow ID could be external to the TAMS instance and therefore signal the origin being elsewhere.
95
95
96
96
* Good, because it could provide information that better informs about the origins of the media object
0 commit comments