-
Notifications
You must be signed in to change notification settings - Fork 4
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: always resolve content owner #224
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
@@ -37,7 +37,13 @@ | |||
"default_py_environment_management": null, | |||
"run_as": null, | |||
"run_as_current_user": false, | |||
"owner_guid": "87c12c08-11cd-4de1-8da3-12a7579c4998", | |||
"owner_guid": "20a79ce3-6e87-4522-9faf-be24228800a4", | |||
"owner": { |
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.
I would back this change out. The API wouldn't return owner
in this request.
Co-authored-by: Neal Richardson <[email protected]>
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.
One last suggestion on the test but otherwise LGTM!
c = Client("12345", "https://connect.example") | ||
item = c.content.get("f2f37341-e21d-3d80-c698-a935ad614066") | ||
owner = item.owner | ||
assert owner.guid == "20a79ce3-6e87-4522-9faf-be24228800a4" |
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.
Other things to assert:
- owner is ContentItemOwner (if we care about that)
- The user GET on L201 was called once
- Do item.owner again and confirm that L201 has still only been called once.
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.
Good call. Done. Thanks!
Resolves #165