Skip to content
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

refactor: Use int32 for proper gql scalar Int parsing #1493

Merged
merged 3 commits into from
May 11, 2023

Conversation

jsimnz
Copy link
Member

@jsimnz jsimnz commented May 11, 2023

Relevant issue(s)

Resolves #938

Description

Updates the graphql-go lib to this update, which applies proper scalar Int parsing and coercing to return int32 instead of int.

This has minor downstream changes as you can see in this PR. Also had to update the explain tests @shahzadlone since it was using the filter types directly in the explain output which has now changed to int32

Tasks

  • I made sure the repository-held documentation is changed accordingly.
  • I made sure the pull request title adheres to the conventional commit style (the subset used in the project can be found in tools/configs/chglog/config.yml).
  • I made sure to discuss its limitations such as threats to validity, vulnerability to mistake and misuse, robustness to invalidation of assumptions, resource requirements, ...

How has this been tested?

Manually + CI

Specify the platform(s) on which this was tested:

  • Ubuntu (WSL2)

@jsimnz jsimnz added area/query Related to the query component refactor This issue specific to or requires *notable* refactoring of existing codebases and components action/no-benchmark Skips the action that runs the benchmark. labels May 11, 2023
@jsimnz jsimnz added this to the DefraDB v0.5.1 milestone May 11, 2023
@jsimnz jsimnz self-assigned this May 11, 2023
@codecov
Copy link

codecov bot commented May 11, 2023

Codecov Report

Merging #1493 (c9f9192) into develop (44503e7) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1493      +/-   ##
===========================================
+ Coverage    72.18%   72.27%   +0.09%     
===========================================
  Files          185      185              
  Lines        18239    18239              
===========================================
+ Hits         13165    13183      +18     
+ Misses        4034     4021      -13     
+ Partials      1040     1035       -5     
Impacted Files Coverage Δ
connor/eq.go 85.00% <100.00%> (ø)

... and 9 files with indirect coverage changes

Copy link
Member

@shahzadlone shahzadlone left a comment

Choose a reason for hiding this comment

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

EZPZ review. Sorry some explain stuff just merged today, you would have to resolve some conflicts, should be straightforward/easy, can also just do a bulk replace of all " int" -> " int32" on top of latest develop.

question: Could we perhaps benefit from setting the default branch to develop for the graphql-go fork: https://github.com/sourcenetwork/graphql-go

Copy link
Collaborator

@fredcarle fredcarle left a comment

Choose a reason for hiding this comment

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

👍

@jsimnz jsimnz force-pushed the jsimnz/refactor/I938-gql-int32 branch from 5deab1f to 040a00d Compare May 11, 2023 22:47
@jsimnz jsimnz merged commit 8fca23a into develop May 11, 2023
@jsimnz jsimnz deleted the jsimnz/refactor/I938-gql-int32 branch May 11, 2023 23:32
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
…k#1493)

Updates the graphql-go lib to
[this](sourcenetwork/graphql-go@fe70855)
update, which applies proper scalar Int parsing and coercing to return
`int32` instead of `int`.

This has *minor* downstream changes as you can see in this PR. Also had
to update the explain tests @shahzadlone since it was using the filter
types directly in the explain output which has now changed to `int32`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. area/query Related to the query component refactor This issue specific to or requires *notable* refactoring of existing codebases and components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Int32 replace for int on GQL argument values.
3 participants