Skip to content

Commit 46a2f7b

Browse files
committed
Merge branch 'develop' of github.com:unity-sds/unity-data-services into fastapi
2 parents bf37b6a + 8e9d5c8 commit 46a2f7b

File tree

4 files changed

+37
-4
lines changed

4 files changed

+37
-4
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,38 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [5.2.2] - 2023-07-21
9+
### Changed
10+
- [#188](https://github.com/unity-sds/unity-data-services/pull/188) fix: Update stage out task to read STAC items from STAC catalog
11+
12+
13+
# [Unity Release 23.2] - 2023-07-20
14+
15+
### Repository Tags
16+
- [unity-data-services](https://github.com/unity-sds/unity-data-services/) : [5.2.1](https://github.com/unity-sds/unity-data-services/releases/tag/v5.2.1)
17+
18+
### Added
19+
- [#119](https://github.com/unity-sds/unity-data-services/issues/119) Update data download task to allow staging data from DAAC HTTPS to local work directory
20+
- [#123](https://github.com/unity-sds/unity-data-services/issues/123) Update metadata reader to parse metadata from CHIRP xml files
21+
- [#157](https://github.com/unity-sds/unity-data-services/issues/157) Update stage-in to support HTTP/HTTPS download that doesn't require EDL
22+
- [#170](https://github.com/unity-sds/unity-data-services/issues/170) Parallelize data download in stage in task
23+
### Changed
24+
- [#125](https://github.com/unity-sds/unity-data-services/issues/125) Update metadata parser/transformer names to reflect metadata format instead of data processing level
25+
- [#128](https://github.com/unity-sds/unity-data-services/issues/128) UDS search docker image to perform CMR search + pagination
26+
- [#129](https://github.com/unity-sds/unity-data-services/issues/129) UDS search docker image to perform UDS search + pagination
27+
- [#130](https://github.com/unity-sds/unity-data-services/issues/130) Update stage out (upload data to S3) to read catalog.json
28+
- [#133](https://github.com/unity-sds/unity-data-services/issues/133) Update stage in task to take as input STAC input file
29+
- [#141](https://github.com/unity-sds/unity-data-services/issues/141) Update stage in to modify input STAC JSON to point to local urls
30+
- [#147](https://github.com/unity-sds/unity-data-services/issues/147) UDS tasks to support optional output file parameter
31+
- [#151](https://github.com/unity-sds/unity-data-services/issues/151) Update catalog task to take stac input file
32+
- [#155](https://github.com/unity-sds/unity-data-services/issues/155) Update UDS catalog task to wait for granules to be registered
33+
- [#158](https://github.com/unity-sds/unity-data-services/issues/158) Update stage in task to use relative path for href in STAC
34+
- [#159](https://github.com/unity-sds/unity-data-services/issues/159) Update stage out task to not require integration with UDS DAPA
35+
- [#160](https://github.com/unity-sds/unity-data-services/issues/160) Update stage in to require FeatureCollection STAC as input and only download specific assets
36+
### Fixed
37+
- [#167](https://github.com/unity-sds/unity-data-services/issues/167) Add retry logic for temporary failure in name resolution in Earth Data Login
38+
- [#181](https://github.com/unity-sds/unity-data-services/issues/181) Update stage in task to auto retry upon 502 errors
39+
840
## [5.2.1] - 2023-07-10
941
### Added
1042
- [#182](https://github.com/unity-sds/unity-data-services/pull/182) fix: Retry if Download Error in DAAC

cumulus_lambda_functions/cumulus_stac/granules_catalog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
class GranulesCatalog:
99

10-
def get_child_link_hrefs(self, catalog_file_path: str):
10+
def get_child_link_hrefs(self, catalog_file_path: str, rel_name: str = 'item'):
1111
if not FileUtils.file_exist(catalog_file_path):
1212
raise ValueError(f'missing file: {catalog_file_path}')
1313
catalog = FileUtils.read_json(catalog_file_path)
1414
catalog = Catalog.from_dict(catalog)
15-
child_links = [k.href for k in catalog.get_links(rel='child')]
15+
child_links = [k.href for k in catalog.get_links(rel=rel_name)]
1616
catalog_dir = os.path.dirname(catalog_file_path)
1717
new_child_links = []
1818
for each_link in child_links:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
setup(
2424
name="cumulus_lambda_functions",
25-
version="5.2.1",
25+
version="5.2.2",
2626
packages=find_packages(),
2727
install_requires=install_requires,
2828
tests_require=['mock', 'nose', 'sphinx', 'sphinx_rtd_theme', 'coverage', 'pystac', 'python-dotenv', 'jsonschema'],

tests/integration_tests/test_docker_entry.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,8 @@ def test_03_upload_complete_catalog(self):
17751775
id='NA',
17761776
description='NA')
17771777
catalog.set_self_href(os.environ['CATALOG_FILE'])
1778-
catalog.add_link(Link('child', os.path.join('some_granules', 'test_file01.nc.stac.json'), 'application/json'))
1778+
catalog.add_link(Link('item', os.path.join('some_granules', 'test_file01.nc.stac.json'), 'application/json'))
1779+
print(json.dumps(catalog.to_dict(False, False)))
17791780
with open(os.environ['CATALOG_FILE'], 'w') as ff:
17801781
ff.write(json.dumps(catalog.to_dict(False, False)))
17811782

0 commit comments

Comments
 (0)