Skip to content

release/5.2.2 #189

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

Merged
merged 1 commit into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.2.2] - 2023-07-21
### Changed
- [#188](https://github.com/unity-sds/unity-data-services/pull/188) fix: Update stage out task to read STAC items from STAC catalog


# [Unity Release 23.2] - 2023-07-20

### Repository Tags
Expand Down
4 changes: 2 additions & 2 deletions cumulus_lambda_functions/cumulus_stac/granules_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

class GranulesCatalog:

def get_child_link_hrefs(self, catalog_file_path: str):
def get_child_link_hrefs(self, catalog_file_path: str, rel_name: str = 'item'):
if not FileUtils.file_exist(catalog_file_path):
raise ValueError(f'missing file: {catalog_file_path}')
catalog = FileUtils.read_json(catalog_file_path)
catalog = Catalog.from_dict(catalog)
child_links = [k.href for k in catalog.get_links(rel='child')]
child_links = [k.href for k in catalog.get_links(rel=rel_name)]
catalog_dir = os.path.dirname(catalog_file_path)
new_child_links = []
for each_link in child_links:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name="cumulus_lambda_functions",
version="5.2.1",
version="5.2.2",
packages=find_packages(),
install_requires=install_requires,
tests_require=['mock', 'nose', 'sphinx', 'sphinx_rtd_theme', 'coverage', 'pystac', 'python-dotenv', 'jsonschema'],
Expand Down
3 changes: 2 additions & 1 deletion tests/integration_tests/test_docker_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,8 @@ def test_03_upload_complete_catalog(self):
id='NA',
description='NA')
catalog.set_self_href(os.environ['CATALOG_FILE'])
catalog.add_link(Link('child', os.path.join('some_granules', 'test_file01.nc.stac.json'), 'application/json'))
catalog.add_link(Link('item', os.path.join('some_granules', 'test_file01.nc.stac.json'), 'application/json'))
print(json.dumps(catalog.to_dict(False, False)))
with open(os.environ['CATALOG_FILE'], 'w') as ff:
ff.write(json.dumps(catalog.to_dict(False, False)))

Expand Down