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

feat: Add JSON scalar #2254

Merged
merged 3 commits into from
Jan 24, 2024
Merged

Conversation

nasdf
Copy link
Member

@nasdf nasdf commented Jan 23, 2024

Relevant issue(s)

Resolves #2243

Description

This PR adds a JSON scalar type to the schema system

Tasks

  • I made sure the code is well commented, particularly hard-to-understand areas.
  • 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?

make test

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

  • MacOS

@nasdf nasdf self-assigned this Jan 23, 2024
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.

LGTM. Thanks for adding this type 👍

@fredcarle fredcarle added the area/schema Related to the schema system label Jan 23, 2024
@fredcarle fredcarle added this to the DefraDB v0.10 milestone Jan 23, 2024
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (59b4652) 74.07% compared to head (5ec6148) 74.09%.

❗ Current head 5ec6148 differs from pull request most recent head 17acd10. Consider uploading reports for the commit 17acd10 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2254      +/-   ##
===========================================
+ Coverage    74.07%   74.09%   +0.02%     
===========================================
  Files          256      256              
  Lines        25731    25767      +36     
===========================================
+ Hits         19058    19090      +32     
- Misses        5356     5360       +4     
  Partials      1317     1317              
Flag Coverage Δ
all-tests 74.09% <89.19%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
client/document.go 67.60% <100.00%> (ø)
request/graphql/schema/types/scalars.go 100.00% <100.00%> (ø)
client/descriptions.go 65.91% <0.00%> (-1.01%) ⬇️
request/graphql/schema/collection.go 90.45% <33.33%> (-0.43%) ⬇️

... and 7 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 59b4652...17acd10. Read the comment docs.

Co-authored-by: Shahzad Lone <[email protected]>
@nasdf nasdf merged commit ba79b3b into sourcenetwork:develop Jan 24, 2024
28 of 29 checks passed
shahzadlone added a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
## Relevant issue(s)

Resolves sourcenetwork#2243 

## Description

This PR adds a JSON scalar type to the schema system

## Tasks

- [x] I made sure the code is well commented, particularly
hard-to-understand areas.
- [x] I made sure the repository-held documentation is changed
accordingly.
- [x] 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](tools/configs/chglog/config.yml)).
- [x] 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?

make test

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

---------

Co-authored-by: Shahzad Lone <[email protected]>
@islamaliev
Copy link
Contributor

islamaliev commented Mar 5, 2024

bug bash issue #2370

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema Related to the schema system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON scalar type
4 participants