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

Conversation

@rikinsk
Copy link
Member

@rikinsk rikinsk commented Jan 31, 2020

Description

Affected components

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

Related Issues

#3789, #3777, #3808

Solution and Design

Steps to test and verify

Limitations, known bugs & workarounds

@rikinsk rikinsk added the c/console Related to console label Jan 31, 2020
@rikinsk rikinsk requested a review from beerose January 31, 2020 19:32
@hasura-bot
Copy link
Contributor

Review app for commit 528b0c9 deployed to Heroku: https://hge-ci-pull-3813.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3813-528b0c9e

} else {
notificationMessage = error.message;
}
} else if (error && error.message && isString(error.message)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to check for error because it is already done in line 35.

}
} else {
checked = false;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What about doing let checked = false so the else statement can be removed?

            let checked = false;
            if (permissionsState[query]) {
              const permittedFields = permissionsState[query][fieldType] || [];

              if (permittedFields === '*') {
                checked = true;
              } else {
                checked = permittedFields.includes(fieldName);
              }
            } 

@rikinsk rikinsk requested a review from beerose January 31, 2020 20:17
@hasura-bot
Copy link
Contributor

Review app for commit cff6f0d deployed to Heroku: https://hge-ci-pull-3813.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3813-cff6f0d0

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

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

@rikinsk rikinsk deleted the console-misc branch February 1, 2020 04:29
polRk pushed a commit to polRk/graphql-engine that referenced this pull request Feb 12, 2020
* handle string errors
* handle empty columns / computed fields in permissions (hasura#3789)
* allow is_null for all operators (hasura#3777)
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