-
-
Notifications
You must be signed in to change notification settings - Fork 104
Add the ability to import/export users via CSV #1971
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
Open
jnptk
wants to merge
40
commits into
main
Choose a base branch
from
users-import/export
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
e0c70e7
add the ability to export users as csv file
jnptk f9f3432
Add support for importing users from a CSV file
jnptk f543cf2
Add changelog entry
jnptk 87aa161
Merge branch 'main' into users-import/export
jnptk f95684c
Don't make Users expandable, fixes the tests
jnptk 4e2ccc4
Remove adapter from zcml
jnptk fbca829
Add error messages
jnptk ae0784f
Set correct response headers
jnptk 0355fb1
Run tests
jnptk c8db031
Document `GET` method
jnptk 45a7e4b
Document `POST` method
jnptk 2e42fa5
Add tests for `GET` method
jnptk 4eb58a1
Apply suggestions from code review
jnptk 6f73ad2
Sort users by username if fullname is not set
jnptk ed1fb27
Explicitly return 201 on user creation
jnptk d90d483
Explicitly get user by username
jnptk e4e541a
Update users get examples
jnptk a91d62f
Get file through http body
jnptk 9aa4d6b
Send file through body in users test
jnptk f42f534
Fix tests to expect an extra registry record
jnptk 0efb051
Remove breakpoint
jnptk 763fa6a
Fix tests by defaulting to dict in HypermediaBatch
jnptk b57ee1d
Fix tests to expect an extra registry entry
jnptk 06a317d
Fix users post http examples
jnptk c1ed205
Use fixed boundary to make the producing .req & .resp files determini…
jnptk a80306e
Add docs for POST request
jnptk 317ed83
Apply suggestions from code review
jnptk c02e49e
Move resp below req & update CSV example
jnptk 713f3ec
Fix roles not being applied & update tests
jnptk c032ad4
Merge branch 'main' into users-import/export
jnptk 4caec07
Apply suggestions from code review
jnptk 5e5275e
Update docs/source/endpoints/users.md
davisagli 5c15ca7
Error message
jnptk d17e2ea
Merge Users & UsersGet
jnptk c7ab834
Add changelog entry for HypermediaBatch fix
jnptk 95b821f
Create CSV in-memory instead of temporary on disk
jnptk f3e2051
Remove location header for csv reply
jnptk a938578
Fix tests
jnptk 5e96dae
Rewrite test_get_users_filtering
jnptk 759a6b7
Return dict with items array on user creation
jnptk 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fix `HypermediaBatch` assuming a request always has a JSON body. @jnptk |
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add CSV import and export support to the @users endpoint. @jnptk |
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
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.