Skip to content

Conversation

jsignell
Copy link
Member

@jsignell jsignell commented Jun 5, 2023

Related Issue(s):

Description:

There is already a fair bit of documentation in there, but I improved the test coverage a bit. This is a very good example of an extension class that could/should be substantially simplified in the 2.0 release

PR Checklist:

  • pre-commit hooks pass locally
  • Tests pass (run scripts/test)
  • Documentation has been updated to reflect changes, if applicable
  • This PR maintains or improves overall codebase code coverage.
  • Changes are added to the CHANGELOG. See the docs for information about adding to the changelog.

@jsignell jsignell self-assigned this Jun 5, 2023
@codecov
Copy link

codecov bot commented Jun 5, 2023

Codecov Report

Patch coverage: 81.81% and project coverage change: +0.74 🎉

Comparison is base (d6531a5) 91.25% compared to head (38e589b) 91.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1143      +/-   ##
==========================================
+ Coverage   91.25%   91.99%   +0.74%     
==========================================
  Files          49       49              
  Lines        6642     6611      -31     
  Branches      981      978       -3     
==========================================
+ Hits         6061     6082      +21     
+ Misses        408      356      -52     
  Partials      173      173              
Impacted Files Coverage Δ
pystac/extensions/datacube.py 80.06% <81.81%> (+13.59%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jsignell
Copy link
Member Author

jsignell commented Jun 5, 2023

Ok so patch coverage is low, but a significant improvement 🤷 seems to me like it would be ok to override that check, but I could probably also coverage up high enough with another hour or so of work. Just let me know what makes more sense to you @gadomski

@gadomski
Copy link
Member

gadomski commented Jun 5, 2023

Nah, let's ignore the patch ❌, it seems like too much work to test out all the extension 🍝.

@jsignell jsignell requested a review from jpolchlo June 6, 2023 13:13
Copy link
Contributor

@jpolchlo jpolchlo left a comment

Choose a reason for hiding this comment

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

Minor points of confusion, but LGTM

@jsignell jsignell added this pull request to the merge queue Jun 12, 2023
@jsignell
Copy link
Member Author

@gadomski if this one merges it is maybe a little concerning because it was failing coverage. It is fine in this case as mentioned above, but just wanted to flag this.

Merged via the queue into stac-utils:main with commit 579a644 Jun 12, 2023
@jsignell jsignell deleted the datacube-tests branch June 12, 2023 19:51
@gadomski
Copy link
Member

if this one merges it is maybe a little concerning because it was failing coverage.

codecov/patch is an optional check, so its not surprising it merged. I'm a little hesitant to make it required, since patch coverage can be so fiddly to get right.

@jsignell
Copy link
Member Author

nice! Ok I just hadn't noticed it was explicitly optional

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.

Tests and documentation for Datacube extension
3 participants