From 84425b406152ac06906ddf8bc799d455196656d6 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Wed, 22 Apr 2020 17:30:26 +0100 Subject: [PATCH] ui: Use DataSources in ACLs area (#7681) * ui: Use Datasource for loading related data in ACLs area * ui: Use more manual cleanup for Controller event-sources * Update reconcile to use nspace and add SyncTime to role/policy * Use the correct value for nspace and dc (the one from the item itself) * Remove the // check, we no longer need it. Add some TODO --- ui-v2/app/components/child-selector/index.hbs | 9 +++++- ui-v2/app/components/child-selector/index.js | 31 ++++++++---------- ui-v2/app/components/data-source/index.js | 3 +- ui-v2/app/components/policy-form/index.hbs | 3 ++ ui-v2/app/components/policy-form/index.js | 4 --- .../app/components/policy-selector/index.hbs | 15 +++++---- ui-v2/app/components/policy-selector/index.js | 22 +------------ ui-v2/app/mixins/with-event-source.js | 32 +++++++++---------- ui-v2/app/models/policy.js | 2 ++ ui-v2/app/models/role.js | 1 + .../services/data-source/protocols/http.js | 18 ++++++++++- ui-v2/app/services/data-source/service.js | 3 -- ui-v2/app/services/repository.js | 19 ++++++++--- .../dc/acls/policies/as-many/remove.feature | 4 ++- .../services/repository/policy-test.js | 11 +++++++ .../services/repository/role-test.js | 6 ++++ 16 files changed, 105 insertions(+), 78 deletions(-) diff --git a/ui-v2/app/components/child-selector/index.hbs b/ui-v2/app/components/child-selector/index.hbs index d982b821bb5e..51fd38ef93ab 100644 --- a/ui-v2/app/components/child-selector/index.hbs +++ b/ui-v2/app/components/child-selector/index.hbs @@ -2,13 +2,20 @@ {{yield}} {{#if isScoped }} +
{{#each datacenters as |dc| }}