Skip to content

Conversation

@dplewis
Copy link
Member

@dplewis dplewis commented Oct 15, 2019

Closes: #941

Fixes Documentation.

useMasterKey: true is sent with every Parse.Schema request so passing it and sessionToken as a parameter is redundant.

https://github.com/parse-community/parse-server/blob/master/src/Routers/SchemasRouter.js#L124

Closes: #941

Fixes Documentation

`useMasterKey: true` is sent with every Parse.Schema request so passing it and sessionToken as a parameter is redundant.
@codecov
Copy link

codecov bot commented Oct 15, 2019

Codecov Report

Merging #959 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #959      +/-   ##
==========================================
- Coverage   91.92%   91.89%   -0.03%     
==========================================
  Files          54       54              
  Lines        5076     5060      -16     
  Branches     1139     1134       -5     
==========================================
- Hits         4666     4650      -16     
  Misses        410      410
Impacted Files Coverage Δ
src/ParseSchema.js 100% <100%> (ø) ⬆️

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 b8b75ef...3a12da1. Read the comment docs.

get(className: string, options: RequestOptions): Promise {
return this.send(className, 'GET', {}, options);
get(className: string): Promise {
return this.send(className, 'GET', {});
Copy link
Contributor

Choose a reason for hiding this comment

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

what happens if you just do this.send(className, 'GET')
or this.send(className, 'DELETE')

would be nice if send set the default param of {} instead of using here?

Copy link
Contributor

@acinader acinader left a comment

Choose a reason for hiding this comment

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

lgtm.

@dplewis dplewis merged commit 7c5b0d9 into master Oct 15, 2019
@dplewis dplewis deleted the schema-docs branch October 15, 2019 20:56
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.

Cannot get schema in Parse SDK using Session Token

2 participants