Skip to content

refactor(GraphQL): Pointer constraint input type as ID#6020

Merged
davimacedo merged 3 commits intoparse-community:masterfrom
douglasmuraoka:graphql_pointer_input_type
Sep 4, 2019
Merged

refactor(GraphQL): Pointer constraint input type as ID#6020
davimacedo merged 3 commits intoparse-community:masterfrom
douglasmuraoka:graphql_pointer_input_type

Conversation

@douglasmuraoka
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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

Comment thread src/GraphQL/loaders/parseClassTypes.js Outdated
Comment thread src/GraphQL/loaders/parseClassTypes.js Outdated
Comment thread src/GraphQL/loaders/parseClassTypes.js Outdated
new GraphQLList(defaultGraphQLTypes.OBJECT_ID)
),
_exists: defaultGraphQLTypes._exists,
_select: defaultGraphQLTypes._select,
Copy link
Copy Markdown
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.

classGraphQLUpdateType
);

const classGraphQLPointerTypeName = `${graphQLClassName}PointerInput`;
Copy link
Copy Markdown
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
Copy Markdown
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