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

Fix Bug in GraphQL _or Operator #5840

Merged
merged 1 commit into from
Jul 23, 2019

Conversation

davimacedo
Copy link
Member

It was caused by legacy code subq.hasOwnProperty(key). I changed to Object.hasOwnProperty.call(subq, key) and fixed the problem. I see there are other codes that do the same. It would be probably good to add the prototype format in our lint and fix in all places (ref: https://eslint.org/docs/rules/no-prototype-builtins). @acinader @dplewis any thoughts?

@dplewis
Copy link
Member

dplewis commented Jul 23, 2019

If I remember correctly, that is used in a lot of places. Addressing it now would be a good idea.

@codecov
Copy link

codecov bot commented Jul 23, 2019

Codecov Report

Merging #5840 into master will decrease coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5840      +/-   ##
==========================================
- Coverage   93.72%   93.68%   -0.04%     
==========================================
  Files         148      148              
  Lines       10304    10304              
==========================================
- Hits         9657     9653       -4     
- Misses        647      651       +4
Impacted Files Coverage Δ
src/Controllers/DatabaseController.js 95.07% <100%> (ø) ⬆️
src/Adapters/Storage/Mongo/MongoStorageAdapter.js 91.72% <0%> (-0.73%) ⬇️
src/RestWrite.js 93.34% <0%> (-0.18%) ⬇️

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 2e0940c...ea50762. Read the comment docs.

@douglasmuraoka
Copy link
Contributor

I'll merge this PR for now, since addressing the other occurrences might take some time.

@douglasmuraoka douglasmuraoka merged commit b605638 into parse-community:master Jul 23, 2019
@davimacedo
Copy link
Member Author

I open an issue to address it later: #5842

UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
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