Skip to content
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
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

amfage
Copy link
Contributor

@amfage amfage commented Nov 13, 2024

📣 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 the linz:slug.

Motivation

Modification

  • Update standardise-validate to use the odr_url workflow parameter as --published-path input.
  • Update standardise-validate to use the collection_id parameter from the stac-setup task.
  • Generate a timestamp and provide it to standardise-validate as --current-datetime.

stac-setup

Checklist

  • Tests updated
  • Docs updated N/A
  • Issue linked in Title

@paulfouquet 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 amfage marked this pull request as ready for review November 14, 2024 21:15
@amfage amfage requested review from a team as code owners November 14, 2024 21:15
@@ -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}}'
Copy link
Contributor

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
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants