From 74325d975c5de511fbccc1ea977dfd93d2b04499 Mon Sep 17 00:00:00 2001 From: kim Date: Thu, 8 Aug 2024 09:37:00 -0800 Subject: [PATCH 1/4] re-adds lat 64-65 test case, removes asf-search v searchAPI export format tests --- tests/yml_tests/test_ASFSearchResults.yml | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/tests/yml_tests/test_ASFSearchResults.yml b/tests/yml_tests/test_ASFSearchResults.yml index 046d2df5..6fed19aa 100644 --- a/tests/yml_tests/test_ASFSearchResults.yml +++ b/tests/yml_tests/test_ASFSearchResults.yml @@ -17,8 +17,8 @@ tests: - Test ASFSearchResults_intersection linestring-equator: wkt: LINESTRING(-59 0, 59 0) -# - Test ASFSearchResults_intersection Latitude 64 to 65: -# wkt: POLYGON((-179 64, -159 64, -159 65, -179 65, -179 64)) +- Test ASFSearchResults_intersection Latitude 64 to 65: + wkt: POLYGON((-179 64, -159 64, -159 65, -179 65, -179 64)) - Test ASFSearchResults_intersection Australia: wkt: POLYGON((108.3836 -45.0288,154.4383 -45.0288,154.4383 -9.7116,108.3836 -9.7116,108.3836 -45.0288)) @@ -28,18 +28,3 @@ tests: - Test ASFSearchResults_intersection antimeridian: wkt: POLYGON((-181 -89, -179 -89, -179 89, -181 89, -181 -89)) - -# - Test ASFSearchResults-format Fairbanks slc: -# results: [Fairbanks_SLC.yml] - -# - Test ASFSearchResults-format Fairbanks S1 Stack: -# results: Fairbanks_S1_stack.yml - -# - Test ASFSearchResults-format Alos: -# results: Alos_response.yml - -# - Test ASFSearchResults-format L1: -# results: Fairbanks_L1.yml - -# - Test ASFSearchResults-format ERS Stack: -# results: Fairbanks_ers_stack.yml From 56aa9a61b671077891e71d71553e68f6ec336d47 Mon Sep 17 00:00:00 2001 From: Forrest Williams Date: Mon, 26 Aug 2024 12:41:58 -0500 Subject: [PATCH 2/4] fix attribute error when calling datetime.UTC --- asf_search/CMR/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asf_search/CMR/translate.py b/asf_search/CMR/translate.py index d4b8359e..959df7f7 100644 --- a/asf_search/CMR/translate.py +++ b/asf_search/CMR/translate.py @@ -202,7 +202,7 @@ def fix_date(fixed_params: Dict[str, Any]): fixed_params['start'] if 'start' in fixed_params else '1978-01-01T00:00:00Z' ) fixed_params['end'] = ( - fixed_params['end'] if 'end' in fixed_params else datetime.now(datetime.UTC).isoformat() + fixed_params['end'] if 'end' in fixed_params else datetime.now(timezone.utc).isoformat() ) fixed_params['season'] = ( ','.join(str(x) for x in fixed_params['season']) if 'season' in fixed_params else '' From 0e46438ee6901debd413cc1770bbd7c703fc1490 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 26 Aug 2024 10:06:50 -0800 Subject: [PATCH 3/4] update changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d939deb..16aa6754 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,11 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - --> +------ +## [v8.0.1](https://github.com/asfadmin/Discovery-asf_search/compare/v8.0.0...v8.0.1) +### Fixed +- Fixed setting end date timezone when translating search opts to CMR opts + ------ ## [v8.0.0](https://github.com/asfadmin/Discovery-asf_search/compare/v7.1.0...v7.2.0) ### Added From 779fd0070be2560da00b4656fcff2b864ec5f404 Mon Sep 17 00:00:00 2001 From: Kim Date: Mon, 26 Aug 2024 10:18:56 -0800 Subject: [PATCH 4/4] ruff linter now only runs on source code dir --- .github/workflows/lint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4956a748..4d0447be 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,3 +7,5 @@ jobs: steps: - uses: actions/checkout@v4 - uses: chartboost/ruff-action@v1 + with: + src: './asf_search' \ No newline at end of file