Skip to content

Schema.js cleanup #1540

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

Merged
merged 7 commits into from
Apr 19, 2016
Merged

Conversation

drew-gross
Copy link
Contributor

A collection of semi-random changes that are progress towards database adapters.

@codecov-io
Copy link

Current coverage is 92.96%

Merging #1540 into master will increase coverage by +0.07% as of 2f0dc53

@@            master   #1540   diff @@
======================================
  Files           87      87       
  Stmts         5506    5501     -5
  Branches      1022    1021     -1
  Methods          0       0       
======================================
- Hit           5115    5114     -1
  Partial          9       9       
+ Missed         382     378     -4

Review entire Coverage Diff as of 2f0dc53

Powered by Codecov. Updated on successful CI builds.

@flovilmart
Copy link
Contributor

@drew-gross do you think it's time to move it to src/Controllers/SchemaController.js

@drew-gross
Copy link
Contributor Author

Yah I think once these changes are merged I will do that.

@@ -78,7 +78,7 @@ DatabaseController.prototype.loadSchema = function(acceptor = () => true) {
}
this.schemaPromise = this.schemaCollection().then(collection => {
delete this.schemaPromise;
return Schema.load(collection);
return Schema.load(collection, this.adapter);
Copy link
Contributor

Choose a reason for hiding this comment

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

we should probably store a SchemaController on this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, definitely will do something like that in a later PR.

@flovilmart
Copy link
Contributor

LGTM, besides the baby comment, for later

@drew-gross drew-gross merged commit ab0ea09 into parse-community:master Apr 19, 2016
@drew-gross drew-gross deleted the kill-get-expected-type branch April 19, 2016 00:06
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.

4 participants