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

Mark push as enabled in serverInfo endpoint #1164

Merged
merged 3 commits into from
Mar 25, 2016

Conversation

drew-gross
Copy link
Contributor

This also refactors the features endpoint to be more functional and less imperative. The response to the features endpoint is now a pure function of the server's configuration.

@codecov-io
Copy link

Current coverage is 92.61%

Merging #1164 into master will decrease coverage by -0.02% as of be8092e

@@            master   #1164   diff @@
======================================
  Files           89      88     -1
  Stmts         5621    5606    -15
  Branches      1014    1012     -2
  Methods          0       0       
======================================
- Hit           5207    5192    -15
  Partial         11      11       
  Missed         403     403       

Review entire Coverage Diff as of be8092e

Powered by Codecov. Updated on successful CI builds.


export class FeaturesRouter extends PromiseRouter {
mountRoutes() {
this.route('GET','/serverInfo', middleware.promiseEnforceMasterKeyAccess, () => {
this.route('GET','/serverInfo', middleware.promiseEnforceMasterKeyAccess, req => {
let features = {
Copy link
Contributor

Choose a reason for hiding this comment

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

const?

@facebook-github-bot
Copy link

@drew-gross updated the pull request.

@@ -39,9 +34,13 @@ export class PushController extends AdaptableController {
}
}

pushIsAvailable() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe define as a getter?

@flovilmart
Copy link
Contributor

Needs rebase, small optional nit but LGTM.

@facebook-github-bot
Copy link

@drew-gross updated the pull request.

@facebook-github-bot
Copy link

@drew-gross updated the pull request.

@drew-gross drew-gross merged commit 6bea950 into parse-community:master Mar 25, 2016
@drew-gross drew-gross deleted the push-enable branch March 25, 2016 20:54
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.

None yet

4 participants