这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@praveenweb
Copy link
Member

@praveenweb praveenweb commented Jul 26, 2018

Adds update checker for a new version of server.

Things to test out for

  • If releases api is down, console should ignore
  • Once update banner is closed, the state is in localstorage. But if a newer version is available, it should prompt notification again.
  • Changelog should link to github's releases tag of that version.

@praveenweb praveenweb added the c/console Related to console label Jul 26, 2018
@praveenweb praveenweb requested a review from karthikvt26 July 26, 2018 10:00
Copy link
Contributor

@karthikvt26 karthikvt26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

});
},
error => {
console.error(error);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to show to the user that there is something wrong with fetching the current API version

please get back to us if this keeps happening. This can happen if the graphql engine api is down or is returning a 400. might help

},
error => {
console.error(error);
dispatch({ type: SET_LATEST_SERVER_VERSION_ERROR, data: null });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to show to the user that there is something wrong with fetching the latest API version

please get back to us if this keeps happening. This can happen if the releases.hasura.io api is down or is returning a 400. might help

onEnter={composeOnEnterHooks([
requireSchema,
requireMigrationStatus,
requireServerVersion,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to move it inside the layout instead of onEnter because if if that hook doesn't succeed, then console will be down. We can leave it if this is the intended behaviour.

);
if (isClosedBefore === 'true') {
isUpdateAvailable = false;
this.state.showBannerNotification = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change it to this.setState instead

@shahidhk shahidhk merged commit 70d7c7d into hasura:master Jul 26, 2018
@hasura hasura deleted a comment from hasura-bot Jul 27, 2018
@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-215.herokuapp.com

shahidhk pushed a commit to shahidhk/graphql-engine that referenced this pull request Sep 11, 2018
hgiasac pushed a commit to hgiasac/graphql-engine that referenced this pull request Dec 19, 2023
GitOrigin-RevId: e0668ae1122d72776c4f091e3bd9d43f3db852cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/console Related to console

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants