-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(users): handle edge features for users in tenancy #6990
Conversation
Changed Files
|
#[error("User role not found")] | ||
UserRoleNotFound, |
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.
Can we remove this if this is not being used.
@@ -294,4 +294,34 @@ impl UserRole { | |||
}, | |||
} | |||
} | |||
|
|||
pub async fn list_user_roles_by_user_id_across_tenants( |
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.
why is this required ?
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.
Will be using this query in future, to search for a user across tenancies.
@@ -110,6 +110,8 @@ pub enum UserErrors { | |||
MissingEmailConfig, | |||
#[error("Invalid Auth Method Operation: {0}")] | |||
InvalidAuthMethodOperationWithMessage(String), | |||
#[error("User role not found")] | |||
UserRoleNotFound, |
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.
why ?
user_from_token | ||
.tenant_id | ||
.as_ref() | ||
.unwrap_or(&state.tenant.tenant_id), |
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.
this could be a util, seeing this code everywhere.
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.
We will be removing option from tenant_id,
68bff43
…d-memory-cache * 'main' of github.com:juspay/hyperswitch: chore(version): 2025.01.09.0 fix(cypress): backup and restore sessions when using user apis (#6978) feat(users): handle edge features for users in tenancy (#6990) chore(dynamic-fields): [Worldpay] update dynamic fields for payments (#7002) chore(version): 2025.01.08.0 fix: consider status of payment method before filtering wallets in list pm (#7004) feat(core): add columns unified error code and error message in refund table (#6933) feat(connector): [Fiuu] Consume transaction id for error cases for Fiuu (#6998) docs(cypress): update cypress documentation (#6956)
…r-verifyurl-in-redirection-handler * 'main' of github.com:juspay/hyperswitch: (30 commits) test(cypress): add test for In Memory Cache (juspay#6961) chore(version): 2025.01.09.1 fix(dummyconnector): add tenant id in dummyconnector requests (juspay#7008) chore(version): 2025.01.09.0 fix(cypress): backup and restore sessions when using user apis (juspay#6978) feat(users): handle edge features for users in tenancy (juspay#6990) chore(dynamic-fields): [Worldpay] update dynamic fields for payments (juspay#7002) chore(version): 2025.01.08.0 fix: consider status of payment method before filtering wallets in list pm (juspay#7004) feat(core): add columns unified error code and error message in refund table (juspay#6933) feat(connector): [Fiuu] Consume transaction id for error cases for Fiuu (juspay#6998) docs(cypress): update cypress documentation (juspay#6956) chore(version): 2025.01.07.0 chore(keymanager): add tenant-id to keymanager requests (juspay#6968) ci(cypress): Add Session Token Testcases (juspay#6683) Ci(Cypress): Add PML test and Dynamic Fields Test for Novalnet (juspay#6544) chore(version): 2025.01.06.0 ci(cypress): fix adyen sofort in cypress (juspay#6984) chore: add migrations for Currency type in DB (juspay#6980) chore(version): 2025.01.03.0 ...
…d-memory-cache * 'main' of github.com:juspay/hyperswitch: test(cypress): add test for In Memory Cache (#6961) chore(version): 2025.01.09.1 fix(dummyconnector): add tenant id in dummyconnector requests (#7008) chore(version): 2025.01.09.0 fix(cypress): backup and restore sessions when using user apis (#6978) feat(users): handle edge features for users in tenancy (#6990) chore(dynamic-fields): [Worldpay] update dynamic fields for payments (#7002) chore(version): 2025.01.08.0 fix: consider status of payment method before filtering wallets in list pm (#7004) feat(core): add columns unified error code and error message in refund table (#6933) feat(connector): [Fiuu] Consume transaction id for error cases for Fiuu (#6998) docs(cypress): update cypress documentation (#6956)
Type of Change
Description
This PR
Additional Changes
Motivation and Context
Closes #6999
How did you test it?
Tenant admin able to create custom org level role
Response
For tenant level user, list api is showing that user in list, if we don't pass query, its coming with remaning org users
Response
For global search now, we are getting org_id in the query
Checklist
cargo +nightly fmt --all
cargo clippy