-
Notifications
You must be signed in to change notification settings - Fork 5
(PXP-8993): Support updating user and expiring user policy #41
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
Conversation
|
The style in this PR agrees with This formatting comment was generated automatically by a script in uc-cdis/wool. |
| backoff = "~=1.6" | ||
| httpx = ">=0.20.0,<1.0.0" | ||
| contextvars = { version = "^2.4", python = "<3.7" } | ||
| six = "^1.16.0" |
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.
Used here.
| Args: | ||
| username (str): MUST be user's username, and not serial user ID | ||
| policy_id (str): Arborist policy id | ||
| expires_at (datetime.datetime): when the policy should expire (in UTC) |
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.
we use/pass around POSIX timestamps in most of the Gen3 stack, since it's arborist that needs UTC, can we handle all that in this function? e.g. can we pass in an integer POSIX timestamp here and do the https://github.com/uc-cdis/fence/pull/986/files#diff-5824dff91d0ccd46626b8d7fbb03bcc2eb6882c9c038139c48ccfd8c39082d70R1670 stuff here? so fence still just handles/passes ints around?
Jira Ticket: PXP-8993
New Features
Dependency updates
six = "^1.16.0"topyproject.toml