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

handle optional arguments in View Extension #259

Merged
merged 7 commits into from
Feb 16, 2021

Conversation

tyler-c2s
Copy link
Contributor

Resolves #258, in which parameters that were not passed to the .apply() method in the view extension would result in validation issues.

Updated:

  • Only sets property is passed is not None
  • Raise error if all parameters are None
  • Added tests for added functionality

@codecov-io
Copy link

codecov-io commented Feb 9, 2021

Codecov Report

Merging #259 (94f35e1) into develop (1174848) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #259       /-   ##
===========================================
  Coverage    94.00%   94.01%    0.01%     
===========================================
  Files           32       32              
  Lines         3969     3978        9     
===========================================
  Hits          3731     3740        9     
  Misses         238      238              
Impacted Files Coverage Δ
pystac/extensions/view.py 98.03% <100.00%> ( 0.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1174848...94f35e1. Read the comment docs.

@tyler-c2s tyler-c2s changed the title View apply function handle optional arguments in View Extension Feb 9, 2021
@lossyrob
Copy link
Member

Thanks! Would you mind updating the CHANGELOG.md with this change? This will be the first unreleased addition, so if you could add a ## [unreleased] section that'd be great.

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.

STAC item validation failure when using view extension apply
3 participants