Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature: Add Team/User Management REST Endpoints and Dataset/Canvas Permission Framework#11580

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
hetavi-bluexkye wants to merge64 commits intoinfiniflow:main
base:main
Choose a base branch
Loading
fromondewo:feature/OND211-2329-Check-existing-REST-endponts-and-extend-with-new-requested-endpoints
Open
Changes from1 commit
Commits
Show all changes
64 commits
Select commitHold shift + click to select a range
d442bf0
[OND211-2329] : Create user api and tests, update user api and tests.
hetavi-bluexkyeNov 10, 2025
61b84b0
[OND211-2329]: Updated create_user and update_user APIs and correspon…
hetavi-bluexkyeNov 11, 2025
7890c31
[OND211-2329]: Added list_users api.
hetavi-bluexkyeNov 11, 2025
1d23b46
[OND211-2329]: Added delete user api and tests.
hetavi-bluexkyeNov 11, 2025
d50c085
[OND211-2329]: Removed unnecessary encryption and decryption for pass…
hetavi-bluexkyeNov 11, 2025
de8dcf4
[OND211-2329]: Updated create user and update user API's to handle auth.
hetavi-bluexkyeNov 12, 2025
1cc081e
[OND211-2329]: Updated create user and update user tests's to test th…
hetavi-bluexkyeNov 12, 2025
043b06a
[OND211-2329]: Updated list users and delete user API's & tests to ha…
hetavi-bluexkyeNov 12, 2025
00b4767
[OND211-2329]: Added create department API and tests.
hetavi-bluexkyeNov 12, 2025
b21f39f
Merge remote-tracking branch 'origin/main' into feature/OND211-2329-C…
hetavi-bluexkyeNov 13, 2025
d7b9925
[OND211-2329]: Updated team creation API to allow only added models a…
hetavi-bluexkyeNov 13, 2025
b388a3d
[OND211-2329]: Added API and tests to add/remove users in a team.
hetavi-bluexkyeNov 13, 2025
ed7b44f
[OND211-2329]: Updatd API's to add users to a team, remove users from…
hetavi-bluexkyeNov 13, 2025
060ec78
[OND211-2329]: Updatd API's to add users to a team, remove users from…
hetavi-bluexkyeNov 13, 2025
3870f50
[OND211-2329]: Added API to update team settings.
hetavi-bluexkyeNov 13, 2025
91013f7
Initial plan
CopilotNov 13, 2025
a80b2ff
Add comprehensive test coverage: security, performance, edge cases, a…
CopilotNov 13, 2025
113620e
[OND211-2329]: Updated the user tests to follow typings and shifted r…
hetavi-bluexkyeNov 14, 2025
7253068
[OND211-2329]: Added department model and API to create department, a…
hetavi-bluexkyeNov 14, 2025
f3966d2
[OND211-2329]: Updated the create team API to handle -ve credit score.
hetavi-bluexkyeNov 17, 2025
83bf319
[OND211-2329]: Added API to promote/demote team admins.
hetavi-bluexkyeNov 17, 2025
ab88159
[OND211-2329]: Added API to update department.
hetavi-bluexkyeNov 17, 2025
a0204b0
[OND211-2329]: Added API to delete department.
hetavi-bluexkyeNov 17, 2025
7a8bba8
[OND211-2329]: Added API to list users in a department.
hetavi-bluexkyeNov 17, 2025
0e2c72a
[OND211-2329]: Added tests to test the create department API.
hetavi-bluexkyeNov 17, 2025
5413628
[OND211-2329]: Added tests to test the add/remove members to a depart…
hetavi-bluexkyeNov 17, 2025
feb6a3a
[OND211-2329]: updated the create and update user API's to handle edg…
hetavi-bluexkyeNov 18, 2025
f3dd4bd
[OND211-2329]: updated the create and update user API's to handle sec…
hetavi-bluexkyeNov 18, 2025
bd83d24
[OND211-2329]: Updated user management tests, fixed typings.
hetavi-bluexkyeNov 18, 2025
f2eeb2d
[OND211-2329]: Updated user management tests, fixed some pycharm edit…
hetavi-bluexkyeNov 18, 2025
26a17e6
[OND211-2329]: Updated conftest files, fixed typings.
hetavi-bluexkyeNov 18, 2025
c38ec24
[OND211-2329]: Added few tests for department API and updated typings.
hetavi-bluexkyeNov 18, 2025
6ef0668
[OND211-2329]: Added helper methods for department tests.
hetavi-bluexkyeNov 18, 2025
3d02d93
[OND211-2329]: Updated import statements alignment.
hetavi-bluexkyeNov 19, 2025
23915dd
[OND211-2329]: Added group model and API endpoint's
hetavi-bluexkyeNov 19, 2025
1ce52f0
[OND211-2329]: Updated create user API to handle encrypted passwords,…
hetavi-bluexkyeNov 19, 2025
5af04fd
[OND211-2329]: Updated tets, fixed typings.
hetavi-bluexkyeNov 19, 2025
3e7d57b
[OND211-2329]: Updated team API's and added create group tests.
hetavi-bluexkyeNov 19, 2025
c50f7b3
[OND211-2329]: Updated create group tests and added tests for add/rem…
hetavi-bluexkyeNov 19, 2025
3ffe94b
[OND211-2329]: Added tests for list members to group.
hetavi-bluexkyeNov 19, 2025
4c8ea1d
[OND211-2329]: Added tests to delete group.
hetavi-bluexkyeNov 19, 2025
b54a6ac
[OND211-2329]: Added tests for update team API.
hetavi-bluexkyeNov 19, 2025
0d48560
[OND211-2329]: Added new tests and updated existing tests for team API.
hetavi-bluexkyeNov 19, 2025
6c68429
[OND211-2329]: Added new tests for promote/demote admin API.
hetavi-bluexkyeNov 19, 2025
d5dcb44
[OND211-2329]: Updated remove member from team API and tests.
hetavi-bluexkyeNov 20, 2025
cd0dc13
[OND211-2329]: Removed Department and group modules.
hetavi-bluexkyeNov 21, 2025
4c3db69
Merge remote-tracking branch 'origin/main' into feature/OND211-2329-C…
hetavi-bluexkyeNov 21, 2025
60a6265
[OND211-2329]: Updated permission on dataset and canvas to share to a…
hetavi-bluexkyeNov 21, 2025
89d27c7
[OND211-2329]: Added permissions for team users to CRUD on datasets a…
hetavi-bluexkyeNov 21, 2025
ed886ff
[OND211-2329]: Allow only team owners to promote/demote admins.
hetavi-bluexkyeNov 21, 2025
b20737c
Merge remote-tracking branch 'origin/main' into feature/OND211-2329-C…
hetavi-bluexkyeNov 24, 2025
13b8f0c
[OND211-2329]: Allowed users to demote themselves from admin.
hetavi-bluexkyeNov 24, 2025
e462d5f
[OND211-2329]: Updated permissions API and added tests.
hetavi-bluexkyeNov 24, 2025
f710354
[OND211-2329]: Removed the API key.
hetavi-bluexkyeNov 24, 2025
f307a18
[OND211-2329]: Updated user tests to remove test data from db.
hetavi-bluexkyeNov 25, 2025
d615f62
[OND211-2329]: Updated team and permissions tests to remove test cach…
hetavi-bluexkyeNov 25, 2025
ce8862e
[OND211-2329]: Updated import statements order.
hetavi-bluexkyeNov 25, 2025
abeb37a
[OND211-2329]: Removed unused imports.
hetavi-bluexkyeNov 26, 2025
55e0ace
[OND211-2329]: Updated add users API and tests to add users with a ro…
hetavi-bluexkyeNov 27, 2025
d92b2fc
[OND211-2329]: Removed unused Makefile.
hetavi-bluexkyeNov 27, 2025
d274e39
Merge branch 'main' into feature/OND211-2329-Check-existing-REST-endp…
teddiusNov 27, 2025
bbd80b9
[OND211-2329]: Fixed ruff and lint issues and updated few test cases …
hetavi-bluexkyeNov 28, 2025
bf21ac7
[OND211-2329]: Fixed import issues.
hetavi-bluexkyeNov 28, 2025
5cd7d13
Merge branch 'main' into feature/OND211-2329-Check-existing-REST-endp…
hetavi-bluexkyeNov 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
[OND211-2329]: Updated create user and update user API's to handle auth.
  • Loading branch information
@hetavi-bluexkye
hetavi-bluexkye committedNov 12, 2025
commitde8dcf49b7f2c9c21e2b2a8154cf5a71e1238f66
14 changes: 11 additions & 3 deletionsapi/apps/user_app.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -754,7 +754,7 @@ def user_add():


@manager.route("/create", methods=["POST"]) # noqa: F821
#@login_required
@login_required
@validate_request("nickname", "email", "password")
def create_user() -> Response:
"""
Expand DownExpand Up@@ -890,11 +890,11 @@ def create_user() -> Response:


@manager.route("/update", methods=["PUT"]) # noqa: F821
#@login_required
@login_required
@validate_request()
def update_user() -> Response:
"""
Update an existing user.
Update an existing user. Users can only update their own account.
---
tags:
- User
Expand DownExpand Up@@ -1014,6 +1014,14 @@ def update_user() -> Response:
code=RetCode.DATA_ERROR,
)

# Ensure user can only update themselves
if user.id != current_user.id:
return get_json_result(
data=False,
message="You can only update your own account!",
code=RetCode.FORBIDDEN,
)

# Build update dictionary
update_dict: Dict[str, Any] = {}

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp