Skip to content

Commit f93e61f

Browse files
authored
feat: automatically set copy_option in publish-odr TDE-1872 (#1187)
### Motivation `copy_option` can be determined by the fact that the data publishing is a new dataset (`--no-clobber`, as no data is supposed to exist in the target location) or an existing dataset update (`--force-no-clobber`, as we want to override some of the existing data to update it). <!-- TODO: Say why you made your changes. --> ### Modifications - Hardcode the `copy_options` based on whether or not the ODR URL is provided <!-- TODO: Say what changes you made. --> <!-- TODO: Attach screenshots if you changed the UI. --> ### Verification Test workflow <!-- TODO: Say how you tested your changes. -->
1 parent 1b462bb commit f93e61f

18 files changed

+1
-80
lines changed

workflows/cron/cron-national-dem-coastal.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,5 @@ spec:
3838
value: 'true'
3939
- name: 'target_bucket_name'
4040
value: 'nz-coastal'
41-
- name: 'copy_option'
42-
value: '--force-no-clobber'
4341
- name: 'ticket'
4442
value: 'TDE-1524'

workflows/cron/cron-national-dem-hillshades-coastal.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,3 @@ spec:
4848
value: 'nz-coastal'
4949
- name: publish_to_odr
5050
value: 'true'
51-
- name: copy_option
52-
value: '--force-no-clobber'

workflows/cron/cron-national-dem-hillshades.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,3 @@ spec:
4646
value: '["hillshade", "hillshade-igor"]'
4747
- name: publish_to_odr
4848
value: 'true'
49-
- name: copy_option
50-
value: '--force-no-clobber'

workflows/cron/cron-national-dem.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,5 @@ spec:
3636
value: 'dem'
3737
- name: publish_to_odr
3838
value: 'true'
39-
- name: 'copy_option'
40-
value: '--force-no-clobber'
4139
- name: 'ticket'
4240
value: 'TDE-1130'

workflows/cron/cron-national-dsm-coastal.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,5 @@ spec:
3838
value: 'true'
3939
- name: 'target_bucket_name'
4040
value: 'nz-coastal'
41-
- name: 'copy_option'
42-
value: '--force-no-clobber'
4341
- name: 'ticket'
4442
value: 'TDE-1571'

workflows/cron/cron-national-dsm-hillshades-coastal.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,3 @@ spec:
4848
value: 'nz-coastal'
4949
- name: publish_to_odr
5050
value: 'true'
51-
- name: copy_option
52-
value: '--force-no-clobber'

workflows/cron/cron-national-dsm-hillshades.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,3 @@ spec:
4646
value: '["hillshade", "hillshade-igor"]'
4747
- name: publish_to_odr
4848
value: 'true'
49-
- name: copy_option
50-
value: '--force-no-clobber'

workflows/cron/cron-national-dsm.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@ spec:
3434
value: 'dsm'
3535
- name: publish_to_odr
3636
value: 'true'
37-
- name: 'copy_option'
38-
value: '--force-no-clobber'
3937
- name: 'ticket'
4038
value: 'TDE-1454'

workflows/cron/cron-national-merged-dem-hillshades-coastal.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ spec:
3838
value: '4'
3939
- name: publish_to_odr
4040
value: 'true'
41-
- name: copy_option
42-
value: '--force-no-clobber'
4341
- name: create_capture_area
4442
value: 'false'
4543
- name: gsd

workflows/cron/cron-national-merged-dem-hillshades.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ spec:
3838
value: '4'
3939
- name: publish_to_odr
4040
value: 'true'
41-
- name: copy_option
42-
value: '--force-no-clobber'
4341
- name: create_capture_area
4442
value: 'true'
4543
- name: gsd

0 commit comments

Comments
 (0)