This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Add more user management #115
Merged
Merged
Changes from 12 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c018471
Tweak endpoints for creating users
nginyc f7a238e
Exit upon error in pulling images
nginyc 80f4a87
Update version
nginyc ce37eac
Add `get_users` and `delete_user`; disallow admins from managing othe…
nginyc 9e6edd0
Disallow deleting self
nginyc 0c40985
Disallow creating invalid user type; remove unused 'USER' user type
nginyc dedfe3a
Move index doc & doc config file into `docs/`
nginyc 5ec7eaa
Don't gitignore files in `docs/`
nginyc d2e7673
Add users management examples to docs
nginyc 64710af
Allow passing of `CSV_FILE_PATH`
nginyc e557e6e
Abstract user type validation
nginyc 4e226af
Move user type validation to database file
nginyc 69f6889
Shorten code with `datetime`
nginyc 44877e4
Remove unused `tokens` endpoint on advisor
nginyc 6926e6d
Change user deletion to ban; expire login token
nginyc bad4c3c
Update docs on banning user
nginyc 163b726
Merge changes from `v0.1.0` branch
nginyc b847a20
Fix bug where database is not dumped
nginyc d629536
Merge branch 'delete-users' of https://github.com/nginyc/rafiki into …
nginyc cfc90af
Fix echo statement
nginyc 5d198fd
Remove `create_users_with_csv`
nginyc 9e9a371
Throw error upon banning banned user
nginyc 3a21ddd
Add doc on `sudo -E`
nginyc 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 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 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 |
---|---|---|
|
@@ -15,7 +15,7 @@ __pycache__/ | |
|
||
# Sphinx documentation | ||
.doctrees/ | ||
docs/* | ||
docs/**/ | ||
!docs/src | ||
|
||
# Datasets | ||
|
File renamed without changes.
This file contains 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 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 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 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,4 @@ | ||
EMAIL,PASSWORD,USER_TYPE | ||
admin@rafiki,rafiki,ADMIN | ||
model_developer@rafiki,rafiki,MODEL_DEVELOPER | ||
app_developer@rafiki,rafiki,APP_DEVELOPER |
This file was deleted.
Oops, something went wrong.
This file contains 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 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.
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.
It is not common to create users using a csv file. Typically, we add users one by one. But we need to get all users for the front-end.
Have you compared users vs user for the operations against a single user? Both are fine, but we need to be consistent with other APIs. E.g., model vs models, trial vs trials.
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.
Noted. I will be removing this API