Skip to content

Commit

Permalink
Merge pull request #5063 from kiva/gql-types-cache-fix
Browse files Browse the repository at this point in the history
fix: ensure we use cached possible types, config updates for local lo…
  • Loading branch information
mcstover authored Nov 9, 2023
2 parents 2f4f4e9 + c7bc015 commit c11d60c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/dev-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = merge(base, devVm, {
gaId: 'UA-11686022-7', // dev-vm property
auth0: {
loginRedirectUrls: {
xOXldYg02WsLnlnn0D5xoPWI2i3aNsFD: 'https://www.dev.kiva.org/authenticate?authLevel=recent',
xOXldYg02WsLnlnn0D5xoPWI2i3aNsFD: 'https://www.development.kiva.org/authenticate?authLevel=recent',
KIzjUBQjKZwMRgYSn6NvMxsUwNppwnLH: 'http://localhost:8888/ui-login?force=true',
ouGKxT4mE4wQEKqpfsHSE96c9rHXQqZF: 'http://localhost:8888/ui-login?force=true',
},
Expand Down
2 changes: 1 addition & 1 deletion server/util/getGqlPossibleTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = function getGqlPossibleTypes(url, cache) {
return tracer.trace('getGqlFragmentTypes', () => {
return tracer.trace('getGqlFragmentsFromCache', () => {
return getGqlPossibleTypesFromCache(cache).then(data => {
if (data.length) {
if (Object.keys(data).length) {
return data;
}
return tracer.trace('fetchGqlFragments', () => fetchGqlPossibleTypes(url, cache));
Expand Down
2 changes: 1 addition & 1 deletion src/api/HttpLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default ({
fetch,
apolloBatching,
}) => {
const onVm = uri.indexOf('vm') > -1;
const onVm = uri.indexOf('vm') > -1 || uri.indexOf('local') > -1;

const options = {
uri,
Expand Down

0 comments on commit c11d60c

Please sign in to comment.