feat: 🎸 CRUDL capabilites for ldap managed-group (#1805)

* feat: 🎸 CRUDL capabilites for ldap managed-group

✅ Closes: ICU-10100

* refactor: 💡 managed-group serializer & remove members tab

* refactor: 💡 show members tab

* fix: 🐛 add type getters in managed group model

* refactor: 💡 fix column name
This commit is contained in:
Lisbet Alvarez authored and GitHub committed 2023-07-28 13:52:04 -07:00
1 parent e5a026ed34
commit d49f3b72a6
19 files changed
+848 -301

No files matched your search

@@ -4,6 +4,7 @@
*/
import Route from '@ember/routing/route';
import { action } from '@ember/object';
import { inject as service } from '@ember/service';
export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsManagedGroupRoute extends Route {
@@ -24,4 +25,21 @@ export default class ScopesScopeAuthMethodsAuthMethodManagedGroupsManagedGroupRo
reload: true,
});
}
/**
* Copies the contents of string array fields in order to force the instance
* into a dirty state. This ensures that `model.rollbackAttributes()` reverts
* to the original expected array.
*
* The deep copy implemented here is required to ensure that both the
* array itself and its members are all new.
*
* @param {managedGroupModel} managedGroup
*/
@action
edit(managedGroup) {
if (managedGroup.group_names) {
managedGroup.group_names = structuredClone(managedGroup.group_names);
}
}
}