Skip to content

Commit c169d6d

Browse files
dhavaljrajparapradeepagrawal8184
authored andcommitted
RANGER-3568 : Services of one zone are seen in other zone from UI
Signed-off-by: pradeep <[email protected]>
1 parent 5d07d12 commit c169d6d

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

security-admin/src/main/webapp/scripts/views/UploadServicePolicy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ define(function(require){
223223
return m.name == that.ui.zoneDestination.val();
224224
})
225225
var zoneServiceListModel = new RangerServiceList();
226+
zoneServiceListModel.clear();
226227
zoneServiceListModel.fetch({
227228
cache : false,
228229
async : false,
@@ -385,6 +386,7 @@ define(function(require){
385386
return m.name == e.val
386387
})
387388
var zoneServiceListModel = new RangerServiceList();
389+
zoneServiceListModel.clear();
388390
zoneServiceListModel.fetch({
389391
cache : false,
390392
async : false,

security-admin/src/main/webapp/scripts/views/policymanager/ServiceLayout.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,12 @@ define(function(require){
326326
if(e.added){
327327
App.vZone.vZoneId = e.added.zoneId;
328328
XAUtil.changeParamToUrlFragment({"securityZone" : e.val}, that.collection.modelName);
329+
that.zoneServiceList.clear();
329330
that.zoneServiceList.fetch({
330331
cache : false,
331332
async : false,
332333
url : "service/public/v2/api/zones/"+e.added.zoneId+"/service-headers",
333334
})
334-
335335
} else {
336336
App.vZone.vZoneId = null;
337337
//for url change on UI
@@ -369,6 +369,7 @@ define(function(require){
369369
App.vZone.vZoneId = zoneID;
370370
}
371371
if (_.isEmpty(this.zoneServiceList.attributes)) {
372+
this.zoneServiceList.clear()
372373
this.zoneServiceList.fetch({
373374
cache : false,
374375
async : false,

security-admin/src/main/webapp/scripts/views/policymanager/ServiceLayoutSidebar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ define(function(require){
403403
App.vZone.vZoneName = e.val;
404404
if(e.added){
405405
App.vZone.vZoneId = e.added.zoneId;
406+
that.zoneServiceList.clear();
406407
that.zoneServiceList.fetch({
407408
cache : false,
408409
async : false,

0 commit comments

Comments
 (0)