Skip to content
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

Index level ep13 #1534

Merged
merged 9 commits into from
Jan 16, 2024
Merged

Index level ep13 #1534

merged 9 commits into from
Jan 16, 2024

Conversation

SpacemanPaul
Copy link
Contributor

Reason for this pull request

Changes to the Index and IndexDriver APIs, as proposed in EP13.

Proposed changes

  • New index_class method on IndexDriver

  • connect_to_index() function is now implemented in the base class (calls from_config on the class returned by index_class)

  • metadata_type_from_doc() method on IndexDriver deprecated in favour of index.metadata_type.from_doc()

  • "supports" flags on Index: New flags, as per EP13, and make all flags default to False, so drivers have to explicitly declare all the flags they DO support.

  • Tests added / passed

  • Fully documented, including docs/about/whats_new.rst for all changes

@SpacemanPaul SpacemanPaul changed the base branch from develop to develop-1.9 January 15, 2024 22:30
Copy link

codecov bot commented Jan 15, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (9fbc596) 85.28% compared to head (82b0113) 85.33%.

Files Patch % Lines
datacube/index/abstract.py 94.73% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           develop-1.9    #1534      +/-   ##
===============================================
+ Coverage        85.28%   85.33%   +0.04%     
===============================================
  Files              139      140       +1     
  Lines            14971    15018      +47     
===============================================
+ Hits             12768    12815      +47     
  Misses            2203     2203              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

supports_legacy = True
supports_legacy = False
# supports eo3 compatible metadata types.
supports_eo3 = False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a benefit to including flags that will always be set to True?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A STAC-based index driver might not support EO3?

@SpacemanPaul SpacemanPaul merged commit 2671f2c into develop-1.9 Jan 16, 2024
28 checks passed
@SpacemanPaul SpacemanPaul deleted the index_level_ep13 branch January 16, 2024 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants