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

Conversation

@hgiasac
Copy link
Contributor

@hgiasac hgiasac commented Feb 25, 2019

Description

What component does this PR affect?

  • Server
  • Console
  • CLI
  • Docs
  • Community Content
  • Build System

Requires changes from other components? If yes, please mark the components:

  • Server
  • Console
  • CLI
  • Docs
  • Community Content
  • Build System

Related Issue

#1598

Solution and Design

  • Define GraphQL Argument path for json/jsonb type
  • Support jsonPath parsing (WIP)
  • Convert arguments to DML Select
  • If there is the argument, convert to SEOpApp "->" operator

Type

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Docs update
  • Community content

Checklist:

  • I have read the contributing guide and my code conforms to the guidelines.
  • This change requires a change in the documentation.
  • I have updated the documentation accordingly.
  • I have added required tests.

@hasura-bot
Copy link
Contributor

Beep boop! 🤖

Hey @hgiasac, thanks for your PR!

One of my human friends will review this PR and get back to you as soon as possible. 🕐

Stay awesome! 😎

@CLAassistant
Copy link

CLAassistant commented Feb 25, 2019

CLA assistant check
All committers have signed the CLA.

@shahidhk shahidhk changed the title Add GraphQL Query JSON (close #1598) add a json path argument to query values inside json columns (close #1598) Feb 28, 2019
@shahidhk shahidhk added the c/server Related to server label Feb 28, 2019
@hgiasac
Copy link
Contributor Author

hgiasac commented Feb 28, 2019

@rakeshkky I update the code with JSONPath parser and test cases. Can you review it? Thanks

@rakeshkky
Copy link
Member

@hgiasac please apply stylish haskell on files you updated.

@hgiasac
Copy link
Contributor Author

hgiasac commented Mar 2, 2019

@rakeshkky I update new code. Please check if you have time, thanks.

Attoparsec prefers performance, so several parse error and message are skipped. I work around with some manual code. Please leave some advice If you get any better improvement. Thanks

Have a nice weekend!

@shahidhk
Copy link
Member

shahidhk commented Mar 8, 2019

@shahidhk
Copy link
Member

shahidhk commented Mar 8, 2019

@arvi3411301 Can you check why Heroku preview app was never created for this PR?

@arvi3411301
Copy link
Member

@shahidhk Review apps will be deployed only when the circleci tests were run under hasura org.

@shahidhk
Copy link
Member

@arvi3411301, what does that mean? This PR's tests are running on a different org?

@netlify
Copy link

netlify bot commented Mar 22, 2019

Deploy preview for hasura-docs ready!

Built with commit d6fcca5

https://deploy-preview-1661--hasura-docs.netlify.com

@shahidhk
Copy link
Member

shahidhk commented Mar 22, 2019

@hgiasac Can you update master and fix the conflicts? Thanks. This is ready to be merged. @dsandip has made some docs updates. Thanks.

@shahidhk
Copy link
Member

@hgiasac Can you disable CircleCI on your repo?

@hgiasac
Copy link
Contributor Author

hgiasac commented Mar 25, 2019

Done. Sorry about that

@shahidhk shahidhk marked this pull request as ready for review March 25, 2019 05:04
@shahidhk
Copy link
Member

Thanks! 👍

@hasura-bot
Copy link
Contributor

Review app for commit 0c1d6af deployed to Heroku: https://hge-ci-pull-1661.herokuapp.com
Docker image for server: hasura/graphql-engine:pull1661-0c1d6af

Copy link

@rikinsk-zz rikinsk-zz left a comment

Choose a reason for hiding this comment

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

docs LGTM

@hasura-bot
Copy link
Contributor

Review app for commit ea2f319 deployed to Heroku: https://hge-ci-pull-1661.herokuapp.com
Docker image for server: hasura/graphql-engine:pull1661-ea2f319

@hasura-bot
Copy link
Contributor

Review app for commit d6fcca5 deployed to Heroku: https://hge-ci-pull-1661.herokuapp.com
Docker image for server: hasura/graphql-engine:pull1661-d6fcca5

@shahidhk shahidhk merged commit 560c31f into hasura:master Mar 25, 2019
@hasura-bot
Copy link
Contributor

Beep boop! 🤖

Whoa! 🎉 🎉 💃

GIF

Awesome work @hgiasac! 💪 🏆 All of us at Hasura ❤️ what you did.

Thanks again 🤗

@hasura-bot
Copy link
Contributor

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

hasura-bot pushed a commit that referenced this pull request Mar 3, 2025
<!-- The PR description should answer 2 important questions: -->

### What

Previously, using non-custom `ComparisonOperator` enum values meant we
would not lookup in the boolean expression type to check we are allowed
to use it. Now we do a reverse lookup from the found
`DataConnectorOperatorName`.

There is a small complexity / compromise here. In OpenDD, the filter
from a `ModelSelectOne` (ie, a simple primary key comparison) is
possible without a `BooleanExpressionType` being defined. Once the
`OpenDD IR` is created there is no way to differentiate these filters
from others. Therefore, we allow `ComparisonOperator::Equals` to skip
this reverse lookup, so long as the filtering is happening at the root
(ie, not within an array, nested field or relationship).

V3_GIT_ORIGIN_REV_ID: bbc5deae9b9619042978ac0188210cbabe49fc7c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/server Related to server

Projects

None yet

Development

Successfully merging this pull request may close these issues.