Skip to content
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

Separate Authentication and Modification in AccountManager #321

Merged
merged 58 commits into from
Nov 21, 2024

Conversation

huerni
Copy link
Collaborator

@huerni huerni commented Sep 2, 2024

No description provided.

src/CraneCtld/AccountManager.cpp Outdated Show resolved Hide resolved
@RileyWen RileyWen self-assigned this Sep 22, 2024
@RileyWen RileyWen requested a review from MCKZX-llx September 23, 2024 03:08
@huerni huerni force-pushed the dev/account_auth branch 2 times, most recently from 9e44d6c to f00079c Compare October 12, 2024 01:45
@L-Xiafeng
Copy link
Collaborator

我没啥问题了。但是函数返回值,现在这样其实和直接返回一个int没区别,std::expected好像有点多余,看 @RileyWen 有没有什么意见?

@RileyWen
Copy link
Collaborator

我明天看下

src/CraneCtld/AccountManager.cpp Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.cpp Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.cpp Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.cpp Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.cpp Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.h Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.h Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.h Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.h Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.h Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.h Outdated Show resolved Hide resolved
src/CraneCtld/AccountManager.h Outdated Show resolved Hide resolved
protos/PublicDefs.proto Outdated Show resolved Hide resolved
@RileyWen RileyWen merged commit 1779794 into master Nov 21, 2024
1 check passed
@RileyWen RileyWen deleted the dev/account_auth branch December 4, 2024 16:59
huerni added a commit that referenced this pull request Jan 7, 2025
* feat: separate adduser addaccount and addqos

* feat: separate AM add partition and qos

* feat: Standardize item in proto and rename it to modifyField

* fix: CheckAddUserAllowedQos check qos already in user allowed

* feat: modifyUser overwrite

* refactor: Replace pointer parameters with references

* feat: modifyuser delete

* feat: delete user and fix delete user in default account(bug 179)

* feat: deleteAccount deleteQos

* feat: modifyAccount

* fix: Cannot modify partition and qos simultaneously

* feat: blockuser blockaccount

* feat: refactor QueryUser QueryAccount QueryQos

* feat: refactor modifyUser

* feat: refactor blockaccount blockuser

* fix: modifyUserdefaultqos

* feat: CheckPartitionIsAllowed CheckQosIsAllowed

* fix: fix modify adminLevel, new_level must <= op_level

* fix: modify qos modifyField error

* fix: adduser Check whether the account exists

* fix: addcount opuser existed and account empty bug

* fix: CheckOpUserHasPermissionToAccount

* fix: simultaneous modification conflict

* feat: Return front-end error code demo.

* feat:fix CheckSetUserAllowedQos No result returned issue.

* feat: update err code

* feat: Error Code Specification

* merge Add display of coordinator field (#180)

* feat: To upgrade to C++23, use std::expected and std::unreachable.

* feat: update errCode

* delete tl expected head file

* fix: errCode

* fix: add ERR_PARENT_ALLOWED_ err code

* fix: ERR_USER_EMPTY_PARTITION

* fix: set account qos err code

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor: unused-parameters

* refactor: CraneExpected<bool> to CraneExpected<void>

* refactor

* refactor

Signed-off-by: RileyW <wrllrwwrllrw@gmail.com>

* refactor

* refactor: CheckIfUserHasPemOnUser CheckIfUserHasPemOnUser CheckIfUserHasPemOnUser CheckIfUserHasPemOnUser

* refactor: HasPermissionToUser

* Refactor.

Signed-off-by: RileyW <wrllrwwrllrw@gmail.com>

* fix: double locking

* refactor

* refactor

* fix: AddAccount

* Update PublicDefs.proto

Remove useless changes

* fix: The default QoS setting was missed when adding the account.

* refactor

* Reformat cmake.

Signed-off-by: RileyW <wrllrwwrllrw@gmail.com>

---------

Signed-off-by: RileyW <wrllrwwrllrw@gmail.com>
Co-authored-by: RileyW <wrllrwwrllrw@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build system change refactor Code refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants