From 77fd09a5c3929f7875e8f33a63ccb31d5ff6e36b Mon Sep 17 00:00:00 2001 From: wphyojpl <38299756+wphyojpl@users.noreply.github.com> Date: Tue, 27 Sep 2022 06:24:52 -0700 Subject: [PATCH 1/2] fix: check pathParameters is None (#89) --- .../cumulus_collections_dapa/cumulus_collections_dapa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cumulus_lambda_functions/cumulus_collections_dapa/cumulus_collections_dapa.py b/cumulus_lambda_functions/cumulus_collections_dapa/cumulus_collections_dapa.py index 5f3fcec9..cd91a4f2 100644 --- a/cumulus_lambda_functions/cumulus_collections_dapa/cumulus_collections_dapa.py +++ b/cumulus_lambda_functions/cumulus_collections_dapa/cumulus_collections_dapa.py @@ -34,7 +34,7 @@ def __get_collection_id(self): if 'pathParameters' not in self.__event: return self path_param_dict = self.__event['pathParameters'] - if 'collectionId' not in path_param_dict: + if path_param_dict is None or 'collectionId' not in path_param_dict: return self collection_id = path_param_dict['collectionId'] if collection_id == '*': From 6e1345d4315a99b44ce25dc9cf6097c675b07eb1 Mon Sep 17 00:00:00 2001 From: wphyojpl <38299756+wphyojpl@users.noreply.github.com> Date: Tue, 27 Sep 2022 10:09:24 -0700 Subject: [PATCH 2/2] chore: bump version + update changelog (#90) --- CHANGELOG.md | 10 ++++++++++ setup.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6137596..c86c4bef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ 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). +## [1.8.1] - 2022-09-27 +### Added +- [#79](https://github.com/unity-sds/unity-data-services/pull/79) Collection Creation endpoint with DAPA format +### Changed +- [#80](https://github.com/unity-sds/unity-data-services/pull/80) level.1.a.missing.filename +- [#82](https://github.com/unity-sds/unity-data-services/pull/82) not honoring offset and limit in Collection query +- [#89](https://github.com/unity-sds/unity-data-services/pull/89) check pathParameters is None +### Fixed + + ## [1.7.0] - 2022-09-06 ### Added - [#62](https://github.com/unity-sds/unity-data-services/issues/66) Added OpenAPI spec for DAPA endpoints diff --git a/setup.py b/setup.py index e39db3f2..a58cb6f2 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( name="cumulus_lambda_functions", - version="1.8.0", + version="1.8.1", packages=find_packages(), install_requires=install_requires, tests_require=['mock', 'nose', 'sphinx', 'sphinx_rtd_theme', 'coverage', 'pystac', 'python-dotenv', 'jsonschema'],