Icu 12782 add filtering pagination support for credential stores (#2212)
* feat: 🎸 add filtering & pagination support for credential-store ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-12782 --------- Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
This commit is contained in:
1 parent
713ffd8d1b
commit
22353e7df6
13 files changed
+436
-145
No files matched your search
@@ -6,7 +6,13 @@
|
||||
import GeneratedCredentialStoreModel from '../generated/models/credential-store';
|
||||
import { equal } from '@ember/object/computed';
|
||||
|
||||
export const types = ['static', 'vault'];
|
||||
export const TYPE_CREDENTIAL_STORE_STATIC = 'static';
|
||||
export const TYPE_CREDENTIAL_STORE_VAULT = 'vault';
|
||||
|
||||
export const TYPES_CREDENTIAL_STORE = Object.freeze([
|
||||
TYPE_CREDENTIAL_STORE_STATIC,
|
||||
TYPE_CREDENTIAL_STORE_VAULT,
|
||||
]);
|
||||
|
||||
export default class CredentialStoreModel extends GeneratedCredentialStoreModel {
|
||||
// =attributes
|
||||
|
||||
@@ -16,6 +16,8 @@ export const modelIndexes = {
|
||||
group:
|
||||
'&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',
|
||||
'credential-store':
|
||||
'&id, attributes.created_time, attributes.name, attributes.description, attributes.type, attributes.scope.scope_id',
|
||||
};
|
||||
|
||||
export const formatDbName = (userId, clusterUrl) =>
|
||||
|
||||
Reference in new issue
Block a user