Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@johnfrancismccann
Copy link
Contributor

Jira Ticket: PXP-8993

New Features

  • Support updating user's username and/or email
  • Support granting user policy with expiration

Dependency updates

  • Add six = "^1.16.0" to pyproject.toml

@github-actions
Copy link

The style in this PR agrees with black. ✔️

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"
Copy link
Contributor Author

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)
Copy link
Contributor

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?

@johnfrancismccann johnfrancismccann merged commit 535fa12 into master Dec 1, 2021
@johnfrancismccann johnfrancismccann deleted the feat/update-user branch December 1, 2021 15:40
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.

3 participants