refactor: 💡 remove grant_scope_id and its uses (#2325)

✅ Closes: https://hashicorp.atlassian.net/browse/ICU-13877
This commit is contained in:
Cameron Perera authored and Lisbet Alvarez committed 2024-07-15 17:23:00 -07:00
1 parent c6a917d21b
commit e60b774d05
8 files changed
-117

No files matched your search

@@ -22,12 +22,6 @@ export default class GeneratedRoleModel extends BaseModel {
})
description;
@attr('string', {
description:
"The scope to which this role applies. Defaults to the role's scope.",
})
grant_scope_id;
@attr('array', {
description:
"The scopes to which this role applies. Defaults to the role's scope.",
-9
View File
@@ -33,15 +33,6 @@ export default class RoleModel extends GeneratedRoleModel {
*/
@attr({ readOnly: true, emptyArrayIfMissing: true }) grant_strings;
/**
* Convenience for looking up the grant scope, if loaded.
*/
get grantScope() {
return this.grant_scope_id
? this.store.peekRecord('scope', this.grant_scope_id)
: null;
}
/**
* A list of IDs for principals of type `user`.
* @type {string[]}