Skip to content
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

feat(storage): support optionsRequestedPolicyVersion #9989

Merged
merged 12 commits into from
Jan 13, 2020

Conversation

jkwlui
Copy link
Member

@jkwlui jkwlui commented Dec 17, 2019

Requires #9869

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 17, 2019
@jkwlui jkwlui changed the title Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-cloud-python/issues) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) feat(storage): support optionsRequestedPolicyVersion Dec 17, 2019
@jkwlui jkwlui changed the base branch from master to iam-proposal3 December 17, 2019 20:38
Copy link
Member

@frankyn frankyn left a comment

Choose a reason for hiding this comment

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

Overall LGTM, I have one nit question.

storage/tests/system.py Show resolved Hide resolved
maintain compatibility with defaultdict

remove in place

raise KeyError on delete

update deprecation for dict-key access and factory  methods

clean up

maintain compatibility - removing duplicate in __setitems__

check for conditions for dict access

remove empty binding

fix test accessing private var _bindings

fix(tests): change version to make existing tests pass

tests: add tests for getitem, delitem, setitem on v3 and conditions

test policy.bindings property

fixlint

black

sort bindings by role when converting to api repr

add deprecation warning for iam factory methods

update deprecation message for role methods

make Policy#bindings.members a set

update policy docs

fix docs

make docs better

fix: Bigtable policy class to use Policy.bindings

add from_pb with conditions test

add to_pb condition test

blacken

fix policy __delitem__

add docs on dict access

do not modify binding in to_apr_repr
Copy link
Member

@frankyn frankyn left a comment

Choose a reason for hiding this comment

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

LGTM.

@jkwlui jkwlui added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 19, 2019
api_core/google/api_core/iam.py Outdated Show resolved Hide resolved
storage/tests/unit/test_bucket.py Show resolved Hide resolved
@jkwlui jkwlui changed the base branch from iam-proposal3 to master January 9, 2020 21:01
@jkwlui jkwlui added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 9, 2020
@jkwlui
Copy link
Member Author

jkwlui commented Jan 9, 2020

@crwilcox fixed the builds. Would you mind taking a look again?

@jkwlui jkwlui merged commit 9b856cf into master Jan 13, 2020
@jkwlui jkwlui deleted the storage-policy-version branch January 13, 2020 21:05
This was referenced Jan 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants