Icu 12590 add filtering pagination support for roles (#2204)
* feat: 🎸 add search & pagination for roles ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12590
This commit is contained in:
1 parent
a78522e09a
commit
8be4e93a3c
14 files changed
+328
-117
No files matched your search
@@ -13,6 +13,7 @@ export const modelIndexes = {
|
||||
session:
|
||||
'&id, attributes.created_time, attributes.type, attributes.status, attributes.endpoint, attributes.target_id, attributes.user_id, attributes.scope.scope_id',
|
||||
user: '&id, attributes.created_time, attributes.name, attributes.description, attributes.scope.scope_id',
|
||||
role: '&id, attributes.created_time, attributes.name, attributes.description, attributes.scope.scope_id',
|
||||
};
|
||||
|
||||
export const formatDbName = (userId, clusterUrl) =>
|
||||
|
||||
@@ -324,9 +324,7 @@ function routes() {
|
||||
);
|
||||
|
||||
// IAM: Roles
|
||||
this.get('/roles', ({ roles }, { queryParams: { scope_id: scopeId } }) => {
|
||||
return roles.where({ scopeId });
|
||||
});
|
||||
this.get('/roles');
|
||||
this.post('/roles');
|
||||
this.get('/roles/:id');
|
||||
this.patch('/roles/:id');
|
||||
|
||||
Reference in new issue
Block a user