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

Conversation

@rikinsk
Copy link
Member

@rikinsk rikinsk commented Feb 14, 2020

Description

Show update notifications for pre-release versions with a disclaimer and option to opt out of pre-release notifications

Affected components

  • Server
  • Console
  • CLI
  • Docs
  • Community Content
  • Build System
  • Tests
  • Other (list it)

Related Issues

Solution and Design

If user opts out, persist choice in the DB via console_state field of hdb_version

Steps to test and verify

Limitations, known bugs & workarounds

@rikinsk rikinsk added the c/console Related to console label Feb 14, 2020
@rikinsk rikinsk requested a review from beerose as a code owner February 14, 2020 14:30
@rikinsk rikinsk changed the title show pre-release notifications on console with op out option show pre-release notifications on console with opt out option Feb 14, 2020
@hasura-bot
Copy link
Contributor

Review app for commit 084c392 deployed to Heroku: https://hge-ci-pull-3888.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3888-084c3929

@hasura-bot
Copy link
Contributor

Review app for commit 2e57c5b deployed to Heroku: https://hge-ci-pull-3888.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3888-2e57c5bb

@@ -0,0 +1,12 @@
export const getLocalStorageItem = key => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We also have utility functions for local storage here: https://github.com/hasura/graphql-engine/blob/master/console/src/utils/localstorage.js,
and they are not used anywhere. Maybe we can get rid of them, so there aren't multiple local storage utils files?

Copy link
Member Author

Choose a reason for hiding this comment

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

@beerose That is true. This one seems to be a better implemementation of the functions but seems to be unused anywhere in the codebase as of now. Can you approve this for now. I'll raise another PR right after this with a refactor of the localStorage utils usage across the code.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. Cool.

@rikinsk rikinsk merged commit ff3ac78 into hasura:master Feb 18, 2020
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-3888.herokuapp.com is deleted

@rikinsk rikinsk deleted the console-beta-notif branch February 18, 2020 09:35
@hasura-bot
Copy link
Contributor

Review app for commit 681d354 deployed to Heroku: https://hge-ci-pull-3888.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3888-681d354b

rikinsk added a commit to rikinsk/graphql-engine that referenced this pull request Feb 19, 2020
shahidhk pushed a commit that referenced this pull request Feb 19, 2020
* handle invalid keys in permission builder (close #3848) (#3863)

* handle non-existent column names
* handle invalid _exist operator expression keys
* handle non-array values for _and/_or operators

* console: show pre-release update notifications with opt out option (#3888)
karthikvt26 pushed a commit to karthikvt26/graphql-engine that referenced this pull request Nov 17, 2020
* handle invalid keys in permission builder (close hasura#3848) (hasura#3863)

* handle non-existent column names
* handle invalid _exist operator expression keys
* handle non-array values for _and/_or operators

* console: show pre-release update notifications with opt out option (hasura#3888)
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.

3 participants