-
Notifications
You must be signed in to change notification settings - Fork 2.8k
add version update checker #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
karthikvt26
left a comment
There was a problem hiding this 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); |
There was a problem hiding this comment.
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 }); |
There was a problem hiding this comment.
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
console/src/routes.js
Outdated
| onEnter={composeOnEnterHooks([ | ||
| requireSchema, | ||
| requireMigrationStatus, | ||
| requireServerVersion, |
There was a problem hiding this comment.
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.
console/src/components/Main/Main.js
Outdated
| ); | ||
| if (isClosedBefore === 'true') { | ||
| isUpdateAvailable = false; | ||
| this.state.showBannerNotification = false; |
There was a problem hiding this comment.
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
|
Review app available at: https://hge-ci-pull-215.herokuapp.com |
v0.15 custom services
GitOrigin-RevId: e0668ae1122d72776c4f091e3bd9d43f3db852cc
Adds update checker for a new version of server.
Things to test out for