Skip to content

Commit 17c433f

Browse files
committed
collection: track pipeline ID
Archivematica 1.11 (dev) started including the ID of the pipeline in API responses. This commit updates the workflow to extract the ID and persist it. It is included in the detail view of the web interface.
1 parent 64e36c9 commit 17c433f

40 files changed

+281
-191
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
internal/api/gen/http/openapi.json linguist-generated=true
2+
internal/api/gen/http/openapi.yaml linguist-generated=true

internal/api/design/design.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ var Collection = Type("Collection", func() {
142142
Format(FormatUUID)
143143
})
144144
Attribute("original_id", String, "Identifier provided by the client")
145+
Attribute("pipeline_id", String, "Identifier of Archivematica pipeline", func() {
146+
Format(FormatUUID)
147+
})
145148
Attribute("created_at", String, "Creation datetime", func() {
146149
Format(FormatDateTime)
147150
})
@@ -163,6 +166,7 @@ var StoredCollection = ResultType("application/vnd.enduro.stored-collection", fu
163166
Attribute("transfer_id")
164167
Attribute("aip_id")
165168
Attribute("original_id")
169+
Attribute("pipeline_id")
166170
Attribute("created_at")
167171
Attribute("completed_at")
168172
})
@@ -175,6 +179,7 @@ var StoredCollection = ResultType("application/vnd.enduro.stored-collection", fu
175179
Attribute("transfer_id")
176180
Attribute("aip_id")
177181
Attribute("original_id")
182+
Attribute("pipeline_id")
178183
Attribute("created_at")
179184
Attribute("completed_at")
180185
})

internal/api/gen/collection/client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/api/gen/collection/endpoints.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/api/gen/collection/service.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/api/gen/collection/views/view.go

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/api/gen/http/cli/enduro/cli.go

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/api/gen/http/collection/client/cli.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/api/gen/http/collection/client/client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/api/gen/http/collection/client/encode_decode.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)