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

test: Capitalize all integration schema types #1445

Merged
merged 16 commits into from
May 4, 2023

Conversation

jsimnz
Copy link
Member

@jsimnz jsimnz commented May 3, 2023

Relevant issue(s)

Resolves #807

Description

This converts all schemas in the integrations folder to follow GQL best practices' where the type name is capitalized and the fields are lowercase.

Do not review commit by commit, as they aren't necessarily logically grouped, as this was a long process and spread over all kinds of copy/pastes, search/replaces, and lots (lots) of regex (cringe).

The only things that should be changed throughout the PR is:
A) Capitalization of schema types, and lowercase of fields (this is also represented through queries, mutations, etc)
B) CIDs - as the schemas are involved in generated the CIDs since the schemaVersionID is embedded in the commits.
C) DocKeys - Same reason as above
D) Reordering of some request results as the implicit order (dockeys) of various results have changed because of (C).

If any other change is noticed that doesn't fall into those categories, please note it :)

Tasks

  • 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).

How has this been tested?

CI

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

  • Ubuntu (WSL2)

@jsimnz jsimnz added area/testing Related to any test or testing suite action/no-benchmark Skips the action that runs the benchmark. labels May 3, 2023
@jsimnz jsimnz added this to the DefraDB v0.5.1 milestone May 3, 2023
@jsimnz jsimnz self-assigned this May 3, 2023
@codecov
Copy link

codecov bot commented May 3, 2023

Codecov Report

Merging #1445 (5c7714a) into develop (1f1d5ce) will decrease coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1445      +/-   ##
===========================================
- Coverage    72.23%   72.13%   -0.11%     
===========================================
  Files          185      185              
  Lines        18160    18160              
===========================================
- Hits         13118    13099      -19     
- Misses        4010     4024      +14     
- Partials      1032     1037       +5     

see 5 files with indirect coverage changes

@shahzadlone
Copy link
Member

Sorry about the hound comments, I was testing it out haha.

@jsimnz
Copy link
Member Author

jsimnz commented May 3, 2023

Sorry about the hound comments, I was testing it out haha.

Lol was wondering about this 😂

Copy link
Contributor

@AndrewSisley AndrewSisley 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 Orpheus and John for doing this very boring work item :)

@orpheuslummis
Copy link
Contributor

orpheuslummis commented May 3, 2023

Yes thanks John for picking it up when I ran out of steam with it!!

Screenshot 2023-05-03 at 12 16 10

not an easy PR

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.

Thanks for taking care of this @jsimnz and @orpheuslummis

I am sorry @jsimnz you might have to take care of conflicts within tests/integration/explain/default/with_limit*_test.go.

Also change detector I noticed fails so that will need to be resolved before merge too.

Giving approval :)

@jsimnz jsimnz force-pushed the jsimnz/chore/gql-capitalization branch from ff80f40 to 5c7714a Compare May 4, 2023 05:37
@jsimnz jsimnz merged commit 574a247 into develop May 4, 2023
@jsimnz jsimnz deleted the jsimnz/chore/gql-capitalization branch May 4, 2023 05:47
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
This converts all schemas in the integrations folder to follow GQL best
practices' where the type name is capitalized and the fields are
lowercase.

The *only* things that should be changed throughout the PR is:
A) Capitalization of schema types, and lowercase of fields (this is also
represented through queries, mutations, etc)
B) CIDs - as the schemas are involved in generated the CIDs since the
`schemaVersionID` is embedded in the commits.
C) DocKeys - Same reason as above
D) Reordering of *some* request results as the implicit order (dockeys)
of various results have changed because of (C).

---------

Co-authored-by: Orpheus Lummis <[email protected]>
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/testing Related to any test or testing suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Capitalize types in GraphQL examples to fit convention
4 participants