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:
John Cowen 2020-06-05 14:44:57 +01:00 committed by hashicorp-ci
parent 89fc98322e
commit f622542ce7
2 changed files with 7 additions and 3 deletions

View File

@ -10,9 +10,6 @@ export default Route.extend(WithIntentionActions, {
repo: service('repository/intention'),
servicesRepo: service('repository/service'),
nspacesRepo: service('repository/nspace/disabled'),
beforeModel: function() {
this.repo.invalidate();
},
model: function(params) {
const dc = this.modelFor('dc').dc.Name;
const nspace = '*';

View File

@ -8,6 +8,13 @@ export default RepositoryService.extend({
getPrimaryKey: function() {
return PRIMARY_KEY;
},
shouldReconcile: function(method) {
switch (method) {
case 'findByService':
return false;
}
return this._super(...arguments);
},
findByService: function(slug, dc, nspace, configuration = {}) {
const query = {
dc: dc,