You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Metadata API: rethink the expiry related API #1727
I think an actual repository would never bump expiry to previous expiry plus delta. They'd want to bump expiry to today plus delta (if you want reasons why, imagine an original expiry period of 365days: a responsible repository would of course resign much earlier than that, let's say at 121 day mark. Now the next expiry is set 609 days forward. In 121 more days the repository resigns again: now the expiry is 853 days into the future...).
so a potential reason to include a method is to handle today plus delta and then make sure microseconds are not an issue
since relativedelta may only be needed for annotations, there is an option of "stringified" annotations (and then importing only if we're statically type checking) but let's only do this if it's really necessary
Activity
jku commentedon Dec 14, 2021
Some additional detail here
previous expiry plus delta. They'd want to bump expiry totoday plus delta(if you want reasons why, imagine an original expiry period of 365days: a responsible repository would of course resign much earlier than that, let's say at 121 day mark. Now the next expiry is set 609 days forward. In 121 more days the repository resigns again: now the expiry is 853 days into the future...).today plus deltaand then make sure microseconds are not an issue[-]Metadata API: do we need Signed.bump_expiry() ?[/-][+]Metadata API: rethink the expiry related API[/+]jku commentedon Dec 15, 2021
#1712 is about handling microseconds with a
set_expiry(): I think these two are related...jku commentedon Dec 15, 2021
(Edited to change example to a property instead of a method)
One possibility:
I think I'm fine with this.
lukpueh commentedon Dec 21, 2021
Done as per #1712.
Agreed!
I think that's fair.
lukpueh commentedon Dec 21, 2021
I have a PR in the queue. Will publish tomorrow.
Fix theupdateframework#1727 (WIP)
Metadata API: Remove Signed.bump_expiration()