mirror of https://github.com/hashicorp/consul
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 intentionspull/8029/head
parent
9cfa4a3fc9
commit
439ae6b4bf
|
@ -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