Skip to content

Allow more configuration with Catalog.validate_all #1141

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

Closed
wants to merge 4 commits into from

Conversation

jsignell
Copy link
Member

@jsignell jsignell commented Jun 2, 2023

Related Issue(s):

Description:

I think this covers the scenario described in the original issue of limiting the amount of objects that are iterated over. It made more sense to be to track that as a single number (items + catalogs + collections) and then to separately give a knob for changing whether or no we recurse into the children.

That being said there are lots of ways to tackle this. Anther approach could use a timeout rather than tracking number of objects at all.

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.

@codecov
Copy link

codecov bot commented Jun 2, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (e6d5d75) 91.17% compared to head (e08a80a) 91.18%.

❗ Current head e08a80a differs from pull request most recent head 197bab9. Consider uploading reports for the commit 197bab9 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1141      +/-   ##
==========================================
+ Coverage   91.17%   91.18%   +0.01%     
==========================================
  Files          49       49              
  Lines        6626     6634       +8     
  Branches      978      980       +2     
==========================================
+ Hits         6041     6049       +8     
  Misses        410      410              
  Partials      175      175              
Impacted Files Coverage Δ
pystac/catalog.py 93.87% <100.00%> (+0.11%) ⬆️

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

@jsignell jsignell requested a review from ircwaves June 2, 2023 19:21
Copy link
Member

@ircwaves ircwaves left a comment

Choose a reason for hiding this comment

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

Looks great. PR approved, but question as to if it closes 1141

@jsignell jsignell enabled auto-merge June 6, 2023 18:35
@jsignell jsignell self-assigned this Jun 6, 2023
@jsignell jsignell disabled auto-merge June 7, 2023 16:50
@jsignell jsignell closed this Jun 7, 2023
@jsignell
Copy link
Member Author

jsignell commented Jun 7, 2023

Between the attempt to skip CI and the force push I broke this PR 🤦 Opening a new one now

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.

Allow more configuration with validate_all
2 participants