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
PR #1710 added a new package dependency (dateutil) to Metadata API: This was likely not intended, and was not caught by the tests because dateutil is a test dependency.
I think we should fix this before releasing 0.20 (#1694).
I agree we can remove Signed.bump_expiration().
If we have an agreement I can propose a pr for this one today, so we can move forward with #1723.
What do you think @lukpueh?
we don't need to remove the function to fix the immediate issue.
Let's fix the dependency issue first, then spend the time we need to get the API (and/or docs) right before 1.0 release: as an example I only now realized the test (and the function) are also bad examples: I don't think anyone ever wants to bump to old_expiry_date+delta, real users want to bump to current_date+delta... which leads to a potential issue with microseconds.
I suggest we
modify the tests to use something like my suggestion (even if it's a bit bad example as mentioned)
Activity
jku commentedon Dec 13, 2021
I think bump_expiration() as a method is not super useful.
Current test code looks like this:
Same thing without using the helper function:
this is in my opinion at least as readable and works fine without the API depending on dateutil.
jku commentedon Dec 13, 2021
This breaks RTD documentation:
MVrachev commentedon Dec 13, 2021
I agree we can remove
Signed.bump_expiration().If we have an agreement I can propose a pr for this one today, so we can move forward with #1723.
What do you think @lukpueh?
jku commentedon Dec 13, 2021
we don't need to remove the function to fix the immediate issue.
Let's fix the dependency issue first, then spend the time we need to get the API (and/or docs) right before 1.0 release: as an example I only now realized the test (and the function) are also bad examples: I don't think anyone ever wants to bump to
old_expiry_date+delta, real users want to bump tocurrent_date+delta... which leads to a potential issue with microseconds.I suggest we
MVrachev commentedon Dec 14, 2021
An issue where we can discuss if we want
Signed.bump_expiry()#1727