Skip to content

Commit

Permalink
feat: add and use current datetime and odr_url for standardising TDE-…
Browse files Browse the repository at this point in the history
…1318 (#856)

📣 to be merged only once the relevant work on
[TDE-1129](https://toitutewhenua.atlassian.net/browse/TDE-1129) has been
completed and released 📣

This Pull Request builds on [Pull Request
#884](#844) that adds the
`stac-setup` step and related parameters for the `linz:slug`.

#### Motivation

- [TDE-1129: Add created and updated timestamps to STAC
metadata](https://toitutewhenua.atlassian.net/browse/TDE-1129)

#### Modification

- Update `standardise-validate` to use the `odr_url` workflow parameter
as `--odr-url` 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](https://github.com/user-attachments/assets/02ae21be-f763-4056-82dd-e8eb20e2c2a0)

#### Checklist

- [ ] Tests updated
- [ ] Docs updated N/A
- [x] Issue linked in Title


[TDE-1129]:
https://toitutewhenua.atlassian.net/browse/TDE-1129?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
  • Loading branch information
amfage authored Nov 27, 2024
1 parent d59d28c commit 54d8111
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions workflows/raster/standardising.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
value: 'v7'
- name: version_topo_imagery
description: 'Specify a version of the topo-imagery image to use, e.g. "v4.8" or "latest"'
value: 'v6'
value: 'v7'
- name: user_group
description: Group of users running the workflow
value: 'none'
Expand Down Expand Up @@ -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}}'
- name: target
value: '{{=sprig.trimSuffix("/", tasks["get-location"].outputs.parameters.location)}}/flat/'
artifacts:
Expand Down Expand Up @@ -505,6 +507,7 @@ spec:
parameters:
- name: group_id
- name: collection_id
- name: current_datetime
- name: target
artifacts:
- name: group_data
Expand Down Expand Up @@ -544,6 +547,10 @@ spec:
- '{{=sprig.trim(workflow.parameters.target_epsg)}}'
- '--gsd'
- '{{=sprig.trim(workflow.parameters.gsd)}}'
- '--odr-url'
- '{{=sprig.trim(workflow.parameters.odr_url)}}'
- '--current-datetime'
- '{{inputs.parameters.current_datetime}}'

- name: create-collection
nodeSelector:
Expand Down Expand Up @@ -678,4 +685,4 @@ spec:

volumes:
- name: ephemeral
emptyDir: {}
emptyDir: {}

0 comments on commit 54d8111

Please sign in to comment.