-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: add and use current datetime and odr_url for standardising TDE-1318 #856
Open
amfage
wants to merge
10
commits into
master
Choose a base branch
from
feat/standardising-datetime-1318
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
3 tasks
paulfouquet
changed the title
feat(workflows): add and use current datetime and odr_url for standardising TDE-1318
feat: add and use current datetime and odr_url for standardising TDE-1318
Nov 14, 2024
github-merge-queue bot
pushed a commit
that referenced
this pull request
Nov 14, 2024
📣 this requires `v6` of `topo-imagery` to be released 📣 #### Motivation - [TDE-1289: Add a slug to the collection.json for use by Basemaps and when creating ODR paths](https://toitutewhenua.atlassian.net/browse/TDE-1283) #### Modification - Replace the existing `collection-id` argument parameter with `odr_url` to provide a path to existing metadata. - Create a `stac-setup` task to use the Argo Tasks `stac-setup` command to create the following metadata for the downstream tasks `standardise-validate` and `create-collection` to use: - `collection_id` - `linz_slug` (Note that the timestamp workflow change is implemented in [separate PR #856](#856)). ![stac-setup](https://github.com/user-attachments/assets/02ae21be-f763-4056-82dd-e8eb20e2c2a0) #### Checklist - [ ] Tests updated - tested manually using custom workflow - [x] Docs updated - [x] Issue linked in Title
amfage
requested review from
l0b0,
schmidtnz,
MDavidson17,
paulfouquet and
Wentao-Kuang
November 14, 2024 21:15
paulfouquet
approved these changes
Nov 14, 2024
l0b0
approved these changes
Nov 14, 2024
@@ -413,6 +413,8 @@ spec: | |||
value: '{{item}}' | |||
- name: collection_id | |||
value: '{{tasks.stac-setup.outputs.parameters.collection_id}}' | |||
- name: current_datetime | |||
value: '{{tasks.stac-setup.finishedAt}}' |
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.
If I understand correctly based on our discussion, the pros of this are:
- Short
- Doesn't require any extra code in the
stac-setup
task
Cons:
- If the
finishedAt
format/semantics changes in the future, this could break workflows in hard-to-predict ways
It's probably a reasonable assumption that this won't change very soon, since it's a value that's probably used my a lot of production code elsewhere.
amfage
added a commit
that referenced
this pull request
Nov 14, 2024
📣 this requires `v6` of `topo-imagery` to be released 📣 #### Motivation - [TDE-1289: Add a slug to the collection.json for use by Basemaps and when creating ODR paths](https://toitutewhenua.atlassian.net/browse/TDE-1283) #### Modification - Replace the existing `collection-id` argument parameter with `odr_url` to provide a path to existing metadata. - Create a `stac-setup` task to use the Argo Tasks `stac-setup` command to create the following metadata for the downstream tasks `standardise-validate` and `create-collection` to use: - `collection_id` - `linz_slug` (Note that the timestamp workflow change is implemented in [separate PR #856](#856)). ![stac-setup](https://github.com/user-attachments/assets/02ae21be-f763-4056-82dd-e8eb20e2c2a0) #### Checklist - [ ] Tests updated - tested manually using custom workflow - [x] Docs updated - [x] Issue linked in Title
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.
📣 to be merged only once the relevant work on TDE-1129 has been completed and released 📣
This Pull Request builds on Pull Request #884 that adds the
stac-setup
step and related parameters for thelinz:slug
.Motivation
Modification
standardise-validate
to use theodr_url
workflow parameter as--published-path
input.standardise-validate
to use thecollection_id
parameter from thestac-setup
task.standardise-validate
as--current-datetime
.Checklist