Skip to content

Commit

Permalink
Develop 1.9 cherry picks (#1018)
Browse files Browse the repository at this point in the history
* Prep for 1.8.40 release (#1013)

* Increment default version number.

* Add test for Robbi's s3 URL displaying PR.

* Update HISTORY.rst for 1.8.40 release.

* Lintage.

* Fix broken date call.

* More lintage.

(cherry picked from commit 26f7002)

* Add friendlier message for creating extents without updated views (#1016)

Co-authored-by: Tisham Dhar <[email protected]>

(cherry picked from commit ffa043c)

---------

Co-authored-by: Tisham Dhar <[email protected]>
  • Loading branch information
SpacemanPaul and whatnick authored May 13, 2024
1 parent d1ac065 commit 9275fb9
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
14 changes: 14 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ History

Datacube-ows version 1.8.x indicates that it is designed work with datacube-core versions 1.8.x.

1.8.40 (2024-04-29)
-------------------

Bug fix release

* Loading now uses `skip_broken_datasets=True` by default. (#1001)
* Bump base osgeo/gdal docker image version. (#1003)
* Update versions of several upstream packages to avoid known security issues (#1004, #1005, #1008)
* pre-commit autoupdate (#1006)
* Make S3 URL rewriting work with metadata indexed from STAC (#1011)
* Update HISTORY.rst and increment default version for release and some tests. (#1013)

This release includes contributions from @whatnick, @pjonsson, @SpacemanPaul, and various automatic updater bots.

1.8.39 (2024-03-13)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion datacube_ows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
try:
from ._version import version as __version__
except ImportError:
__version__ = "1.8.39+?"
__version__ = "1.8.40?"
5 changes: 5 additions & 0 deletions datacube_ows/update_ranges_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@ def main(layers: list[str],
click.echo("")
click.echo(" Try running with the --schema options first.")
sys.exit(1)
elif isinstance(e.orig, psycopg2.errors.NotNullViloation):
click.echo("ERROR: OWS materialised views are most likely missing a newly indexed product")
click.echo("")
click.echo(" Try running with the --viewes options first.")
sys.exit(1)
else:
raise e
if errors:
Expand Down
9 changes: 7 additions & 2 deletions tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,16 @@ def __init__(self, uris):
"s3://test-bucket/hello_world/data.yaml"
])
d2 = TestDataset([
"s3://test-bucket/hello.word/foo.bar/hello.test.yaml",
"s3://test-bucket/hello.word/foo.bar/hello-test.yaml"
"s3://test-bucket/hello.word/foo.bar/hello.test.yaml",
"s3://test-bucket/hello.word/foo.bar/hello-test.yaml"
])
d3 = TestDataset([
"s3://test-bucket/this.is/from.stac/hello.test.json",
])

datasets.append(d1)
datasets.append(d2)
datasets.append(d3)

class DataSetMock:
def __init__(self, datasets):
Expand Down Expand Up @@ -69,6 +73,7 @@ def test_s3_browser_uris(s3_url_datasets):

assert "http://test-bucket.s3-website-ap-southeast-2.amazonaws.com/?prefix=hello_world" in uris
assert "http://test-bucket.s3-website-ap-southeast-2.amazonaws.com/?prefix=hello.word/foo.bar" in uris
assert "http://test-bucket.s3-website-ap-southeast-2.amazonaws.com/?prefix=this.is/from.stac" in uris

# TODO: read_data is now a method of the DataStacker class. This test needs a rewrite.
# @patch('xarray.Dataset')
Expand Down

0 comments on commit 9275fb9

Please sign in to comment.