-
Notifications
You must be signed in to change notification settings - Fork 122
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
Extract method to correctly handle setting properties in Item/Asset for ItemExtensions #272
Conversation
Refactored extension to use this parent method instead of locally implementing the same logic repeatedly
…et_property # Conflicts: # pystac/extensions/projection.py
Codecov Report
@@ Coverage Diff @@
## develop #272 +/- ##
===========================================
+ Coverage 93.99% 94.05% +0.06%
===========================================
Files 32 32
Lines 4010 3956 -54
===========================================
- Hits 3769 3721 -48
+ Misses 241 235 -6
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great improvement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
This PR adds a method to the ItemExtension class, that makes it easier and more robust for derived classes to set properties in Assest and/or Items.
Existing extensions needing that mechanism have been refactored to rely on the parent method instead
This was discussed in #270
If this PR is merged, #230 will be no longer needed