mirror of https://github.com/status-im/consul.git
ui: Blocking with filtering intentions amends (#8027)
* ui: Now intentions use blocking queries invalidation isn't needed * ui: Ensure reconciliation doesn't happen when filtering for intentions
This commit is contained in:
parent
89fc98322e
commit
f622542ce7
|
@ -10,9 +10,6 @@ export default Route.extend(WithIntentionActions, {
|
||||||
repo: service('repository/intention'),
|
repo: service('repository/intention'),
|
||||||
servicesRepo: service('repository/service'),
|
servicesRepo: service('repository/service'),
|
||||||
nspacesRepo: service('repository/nspace/disabled'),
|
nspacesRepo: service('repository/nspace/disabled'),
|
||||||
beforeModel: function() {
|
|
||||||
this.repo.invalidate();
|
|
||||||
},
|
|
||||||
model: function(params) {
|
model: function(params) {
|
||||||
const dc = this.modelFor('dc').dc.Name;
|
const dc = this.modelFor('dc').dc.Name;
|
||||||
const nspace = '*';
|
const nspace = '*';
|
||||||
|
|
|
@ -8,6 +8,13 @@ export default RepositoryService.extend({
|
||||||
getPrimaryKey: function() {
|
getPrimaryKey: function() {
|
||||||
return PRIMARY_KEY;
|
return PRIMARY_KEY;
|
||||||
},
|
},
|
||||||
|
shouldReconcile: function(method) {
|
||||||
|
switch (method) {
|
||||||
|
case 'findByService':
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return this._super(...arguments);
|
||||||
|
},
|
||||||
findByService: function(slug, dc, nspace, configuration = {}) {
|
findByService: function(slug, dc, nspace, configuration = {}) {
|
||||||
const query = {
|
const query = {
|
||||||
dc: dc,
|
dc: dc,
|
||||||
|
|
Loading…
Reference in New Issue