-
Notifications
You must be signed in to change notification settings - Fork 32
✨ Get and search users applying privacy settings 🗃️ #6966
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
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
0f27fae
prefix admin
pcrespov 4ac88dc
oas
pcrespov 3bc179f
adds get user
pcrespov 386c8ee
admin and users
pcrespov 0b660ef
drafter interface
pcrespov aad94f6
acceptance tests
pcrespov 8039691
tests
pcrespov 9374652
drafts
pcrespov 48fe6a0
acceptance test passes
pcrespov de8ccb5
updates OAS
pcrespov 05ece30
cleanup
pcrespov 24fcf60
minor
pcrespov 3bbe91e
cleanup
pcrespov 923d8f6
drafted groups
pcrespov 57b30eb
drafted tests
pcrespov c731d42
acceptance test passes
pcrespov 4d9bf75
update OAS
pcrespov 12c1b23
updates search on names
pcrespov b601b04
updates OAS
pcrespov 6aff278
fixes OAS
pcrespov 2e0d1c3
fixes
pcrespov 58f15e8
adds restricted access
pcrespov 301967a
updates doc
pcrespov 8c69cbc
reverts defaults
pcrespov b7f2df4
fixes tess
pcrespov d089ed0
fixes get users in group
pcrespov b538754
mypy and oas
pcrespov 263a54a
cleanup
pcrespov 103d136
fixes tests
pcrespov 01293f1
@odeimaiz review: deprecated admin users
pcrespov 46239eb
new tests
pcrespov e170355
common
pcrespov 066c224
pylint
pcrespov a001f16
cleanup
pcrespov 224764c
reactivated test
pcrespov f6ab2aa
fixes migration
pcrespov 66f18bd
minor
pcrespov 7d128c5
disables meta test
pcrespov 696e2fc
user_id
pcrespov 733ecdd
reduced duplication
pcrespov 19b0842
reduced duplication
pcrespov 9b9650d
updates migration
pcrespov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ | |
| ) | ||
| from ..users import UserID, UserNameID | ||
| from ..utils.common_validators import create__check_only_one_is_set__root_validator | ||
| from ._base import InputSchema, OutputSchema | ||
| from ._base import InputSchema, OutputSchema, OutputSchemaWithoutCamelCase | ||
|
|
||
| S = TypeVar("S", bound=BaseModel) | ||
|
|
||
|
|
@@ -248,8 +248,7 @@ def from_model( | |
| ) | ||
|
|
||
|
|
||
| class GroupUserGet(BaseModel): | ||
| # OutputSchema | ||
| class GroupUserGet(OutputSchemaWithoutCamelCase): | ||
|
|
||
| # Identifiers | ||
| id: Annotated[UserID | None, Field(description="the user's id")] = None | ||
|
|
@@ -275,7 +274,14 @@ class GroupUserGet(BaseModel): | |
| ] = None | ||
|
|
||
| # Access Rights | ||
| access_rights: GroupAccessRights = Field(..., alias="accessRights") | ||
| access_rights: Annotated[ | ||
| GroupAccessRights | None, | ||
| Field( | ||
| alias="accessRights", | ||
| description="If group is standard, these are these are the access rights of the user to it." | ||
| "None if primary group.", | ||
| ), | ||
| ] = None | ||
|
|
||
| model_config = ConfigDict( | ||
| populate_by_name=True, | ||
|
|
@@ -293,7 +299,23 @@ class GroupUserGet(BaseModel): | |
| "write": False, | ||
| "delete": False, | ||
| }, | ||
| } | ||
| }, | ||
| "examples": [ | ||
| # unique member on a primary group with two different primacy settings | ||
| { | ||
| "id": "16", | ||
| "userName": "mrprivate", | ||
| "gid": "55", | ||
| }, | ||
| { | ||
| "id": "56", | ||
| "userName": "mrpublic", | ||
| "login": "[email protected]", | ||
| "first_name": "Mr", | ||
| "last_name": "Public", | ||
| "gid": "42", | ||
| }, | ||
| ], | ||
| }, | ||
| ) | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.