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(GraphQL): Pointer constraint input type as ID #6020

Merged

Conversation

douglasmuraoka
Copy link
Contributor

Redefines the Pointer constraint input type from a custom scalar to
a simple ID.

Redefines the Pointer constraint input type from a custom scalar to
a simple ID.
@codecov
Copy link

codecov bot commented Sep 3, 2019

Codecov Report

Merging #6020 into master will increase coverage by 0.7%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #6020     +/-   ##
=========================================
+ Coverage   93.22%   93.93%   +0.7%     
=========================================
  Files         164      164             
  Lines       11106    11084     -22     
=========================================
+ Hits        10354    10412     +58     
+ Misses        752      672     -80
Impacted Files Coverage Δ
src/GraphQL/loaders/parseClassQueries.js 97.56% <100%> (ø) ⬆️
src/GraphQL/transformers/query.js 66.66% <100%> (+2.08%) ⬆️
src/GraphQL/loaders/parseClassTypes.js 94.44% <100%> (+8.88%) ⬆️
src/GraphQL/helpers/objectsQueries.js 98.03% <100%> (ø) ⬆️
src/RestWrite.js 93.72% <0%> (+0.16%) ⬆️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 92.94% <0%> (+0.7%) ⬆️
src/Adapters/Cache/RedisCacheAdapter/index.js 100% <0%> (+84.09%) ⬆️
...dapters/Cache/RedisCacheAdapter/KeyPromiseQueue.js 95.45% <0%> (+95.45%) ⬆️

Continue to review full report at Codecov.

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

Copy link
Member

@Moumouls Moumouls left a comment

Choose a reason for hiding this comment

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

LGTM !
@davimacedo ?

Copy link
Member

@davimacedo davimacedo left a comment

Choose a reason for hiding this comment

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

2 small issues

src/GraphQL/loaders/parseClassTypes.js Outdated Show resolved Hide resolved
src/GraphQL/loaders/parseClassTypes.js Outdated Show resolved Hide resolved
),
_nin: defaultGraphQLTypes._nin(
new GraphQLList(defaultGraphQLTypes.OBJECT_ID)
),
_exists: defaultGraphQLTypes._exists,
_select: defaultGraphQLTypes._select,
Copy link
Member

Choose a reason for hiding this comment

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

I think we should also improve these following 4 operators. But we can address it in a separate PR. I will take a note in the project.

@@ -284,30 +202,6 @@ const load = (
classGraphQLUpdateType
);

const classGraphQLPointerTypeName = `${graphQLClassName}PointerInput`;
Copy link
Member

Choose a reason for hiding this comment

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

Why are you removing this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was a mistake, thanks for noticing it. It was supposed to remove only the Pointer scalar type.

@davimacedo davimacedo merged commit f9b77c1 into parse-community:master Sep 4, 2019
@douglasmuraoka douglasmuraoka deleted the graphql_pointer_input_type branch September 5, 2019 13:03
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
…ty#6020)

* refactor(GraphQL): Pointer constraint input type as ID

Redefines the Pointer constraint input type from a custom scalar to
a simple ID.

* fix: PR review requested changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants