Skip to content

Commit

Permalink
Merge pull request #4938 from ezimanyi/fix-short-query
Browse files Browse the repository at this point in the history
fix(provider/gce): Fix call to list backends
  • Loading branch information
ezimanyi committed Mar 2, 2018
2 parents 8cc1dbf + 5c1c1da commit 176df66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/scripts/modules/google/src/address/address.reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class GceAddressReader {
return this.listAddresses(null /* region */).then(addresses => addresses.filter(address => address.region === region));
} else {
return this.searchService
.search<IAddressSearchResults>({ q: '***', type: 'addresses' }, this.infrastructureCaches.get('addresses'))
.search<IAddressSearchResults>({ q: '', type: 'addresses', allowShortQuery: 'true' }, this.infrastructureCaches.get('addresses'))
.then((searchResults: ISearchResults<IAddressSearchResults>) => {
if (searchResults && searchResults.results) {
return searchResults.results
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = angular.module('spinnaker.deck.gce.backendService.reader.servic
return API
.all('search')
.useCache(infrastructureCaches.get('backendServices'))
.getList({q:'', type: 'backendServices'});
.getList({q:'', type: 'backendServices', allowShortQuery: 'true'});
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class GceCertificateReader {

public listCertificates(): IPromise<IGceCertificate[]> {
return this.searchService
.search<IGceCertificate>({ q: '***', type: 'sslCertificates' }, this.infrastructureCaches.get('certificates'))
.search<IGceCertificate>({ q: '', type: 'sslCertificates', allowShortQuery: 'true' }, this.infrastructureCaches.get('certificates'))
.then((searchResults: ISearchResults<IGceCertificate>) => {
if (searchResults && searchResults.results) {
return searchResults.results.filter(certificate => certificate.provider === 'gce');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class GceHealthCheckReader {
return this.listHealthChecks().then(healthChecks => healthChecks.filter(healthCheck => healthCheck.healthCheckType === type));
} else {
return this.searchService
.search({ q: '***', type: 'healthChecks' }, this.infrastructureCaches.get('healthChecks'))
.search({ q: '', type: 'healthChecks', allowShortQuery: 'true' }, this.infrastructureCaches.get('healthChecks'))
.then((searchResults: ISearchResults<IHealthCheckSearchResults>) => {
if (searchResults && searchResults.results) {
const healthChecks = searchResults.results.filter(result => result.provider === 'gce')
Expand Down

0 comments on commit 176df66

Please sign in to comment.