-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue #282 #404
Merged
bpross-52n
merged 2 commits into
opengeospatial:master
from
GeoLabs:features/fix-issue-282
Jun 10, 2024
Merged
Fix issue #282 #404
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
.../standard/recommendations/deploy-replace-undeploy/package/REC_response-cwl.adoc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[[rec_deploy-replace-undeploy_package_response-cwl]] | ||
[recommendation] | ||
==== | ||
[%metadata] | ||
label:: /rec/deploy-replace-undeploy/package/response-cwl | ||
|
||
part:: If a process deployed as a <<rc_cwl,CWL>>, implementations SHOULD consider supporting the <<rc_cwl,CWL>> encoding. | ||
|
||
==== |
8 changes: 8 additions & 0 deletions
8
...ard/recommendations/deploy-replace-undeploy/package/REC_response-ogcapppkg.adoc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[[rec_deploy-replace-undeploy_package_response-ogcapppkg]] | ||
[recommendation] | ||
==== | ||
[%metadata] | ||
label:: /rec/deploy-replace-undeploy/package/response-ogcapppkg | ||
|
||
part:: If a process was deployed as an <<rc_ogcapppkg,OGC Application Package>>, implementations SHOULD consider supporting the <<rc_ogcapppkg,OGC Application Package>> encoding. | ||
==== |
10 changes: 10 additions & 0 deletions
10
...eploy_replace_undeploy/standard/requirements/cwl/package/REQ_response-body.adoc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[[req_cwl_package_response-body]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/cwl/package/response-body | ||
part:: A response with HTTP status code `200` SHALL include a body that contains: | ||
* the <<rc_cwl,CWL>> to use to deploy the process, in case the Content-Type used to deploy the process was `application/cwl`. | ||
* the <<rc_ogcapppkg,OGC Application Package>> to use to deploy the process, in case the Content-Type used to deploy the process was `application/ogcapppkg+json`. | ||
|
||
==== |
9 changes: 9 additions & 0 deletions
9
..._undeploy/standard/requirements/deploy-replace-undeploy/package/REQ_get-op.adoc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[[req_deploy-replace-undeploy_package_get-op]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/deploy-replace-undeploy/package/get-op | ||
part:: For every dynamically added process (using method: POST on path: /processes/{processId}), the server SHALL support the HTTP GET operation at the path `/processes/{processId}/package`. | ||
part:: The parameter `processId` is each `id` property in the process collection response (JSONPath: `$.processes[*].id`). | ||
|
||
==== |
7 changes: 7 additions & 0 deletions
7
...oy/standard/requirements/deploy-replace-undeploy/package/REQ_response-body.adoc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[[req_deploy-replace-undeploy_package_response-body]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/deploy-replace-undeploy/package/response-body | ||
part:: A response with HTTP status code `200` SHALL include a body that contains the request body used to deploy or replace the process. | ||
==== |
7 changes: 7 additions & 0 deletions
7
...standard/requirements/deploy-replace-undeploy/package/REQ_response-success.adoc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[[req_deploy-replace-undeploy_package_response-success]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/deploy-replace-undeploy/package/response-success | ||
part:: A successful access to the resource SHALL be reported as a response with a HTTP status code `200`. | ||
==== |
7 changes: 7 additions & 0 deletions
7
...replace_undeploy/standard/requirements/ogcapppkg/package/REQ_response-body.adoc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[[req_ogcapppkg_package_response-body]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/ogcapppkg/package/response-body | ||
part:: A response with HTTP status code `200` SHALL include a body that contains the <<rc_ogcapppkg,OGC Application Package>> to use to deploy the process. | ||
==== |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
get: | ||
summary: retrieve the formal description used to deploy a process | ||
description: | | ||
Access the formal description that can be used to deploy a process on an OGC API - Processes Server Instance. | ||
operationId: getPackage | ||
tags: | ||
- Package | ||
responses: | ||
200: | ||
description: The formal used to deploy a process | ||
content: | ||
application/ogcapppkg+json: | ||
schema: | ||
$ref: "../../schemas/processes-dru/ogcapppkg.yaml" | ||
application/cwl: | ||
schema: | ||
$ref: "https://raw.githubusercontent.com/common-workflow-lab/cwl-ts-auto/main/json_schemas/cwl_schema.yaml" | ||
application/cwl+json: | ||
schema: | ||
$ref: "https://raw.githubusercontent.com/common-workflow-lab/cwl-ts-auto/main/json_schemas/cwl_schema.yaml" | ||
application/cwl+yaml: | ||
schema: | ||
$ref: "https://raw.githubusercontent.com/common-workflow-lab/cwl-ts-auto/main/json_schemas/cwl_schema.yaml" | ||
404: | ||
$ref: "../../responses/common-core/rNotFound.yaml" |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we consider the possibility that a package deployed one way could provide the representation of another encoding? For example, if deployed using CWL, it would be fairly easy to extract the relevant parts of the document to form the corresponding OGC Application Package format. An
Accept
header could allow the selection of one, an if conversion is supported, could help make instances more interoperable. If so, sentences mentioning that "if deployed with X, SHOULD support X" would have to be reworded slightly.Or, do we want to make it explicit that the original format for deployment must be returned (no conversion permitted)? In such case, the
Accept
header is irrelevant.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I vote yes, the implementation should be able to decide which package format it can return back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also favor having the capability to choose between various formats. I agree that CWL (and maybe other encoding. supported in the future) can be converted into an OGC Application Package and vice versa. Nevertheless, I wonder if the
Accept
header should not be added to the6.6.1
section, which describes the operation for retrieving the formal description.Then, in the
6.6 Retrieving the formal description
section, we would add another section:Exception
specifying what happens if theAccept
header is not supported.The
unsupported-media-type
exception type is possible if the media type is not supported. However, it's important to note that the exception could be something else if the process cannot be exposed in the desired encoding. For instance, consider a Docker image used to publish a process as an OGC Application Package, then a request/processes/{processId}/package
usingAccept
header set toapplication/cwl
should get back an exception that would help the client application determine that the issue comes from the fact that the conversion is impossible (maybe a type set tohttp://www.opengis.net/def/exceptions/ogcapi-processes-2/1.0/incompatible-media-type
).What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the use the "Accept" header already implied but clause 7.5 "Use of HTTP 1.1"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SWG meeting from April 29th: Add a note that you can request the application package in a format other than originally used using the accept header. Examples: If
cwl
is explicitly requested and the server cannot handle it that aHTTP 406
should be returned.