Skip to content

Ensure signed item's assets point back to the item (#25) - #26

Merged
Tom Augspurger (TomAugspurger) merged 1 commit into
microsoft:mainfrom
Kirill888:main
Sep 7, 2021
Merged

Tom Augspurger (TomAugspurger) merged 1 commit into
microsoft:mainfrom
Kirill888:main

Conversation

@Kirill888

Copy link
Copy Markdown
Contributor

This PR fixes #25.

Basically I'm adding _sign_asset_in_place function, which is just a copy of the original sign(asset: Asset) function but with asset.clone step removed. sign(item) overload is then modified to use in-place version of asset signing since assets were already cloned.

@ghost

Deleted user (ghost) commented Sep 6, 2021 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@TomAugspurger

Copy link
Copy Markdown

Thank Kirill Kouzoubov (@Kirill888).

I'll merge this in a few hours, but cc Rob Emanuele (@lossyrob) if you want to take a look.

@lossyrob Rob Emanuele (lossyrob) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good catch!

@TomAugspurger
Tom Augspurger (TomAugspurger) merged commit a362a34 into microsoft:main Sep 7, 2021
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.

Missing link from Asset to owner Item after signing STAC Item

3 participants