Skip to content

Remove Default API #332

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 2 commits into from
Jul 6, 2017
Merged

Conversation

montymxb
Copy link
Contributor

@montymxb montymxb commented Jul 6, 2017

Currently the default url is https://api.parse.com/ and the default mount path if /1. Given that api.parse.com is no longer active and will only respond to requests with the message Parse.com has shutdown - https://parseplatform.github.io/ it is probably time to clear these defaults.

Additionally it would appear that there is no valid certificate for this api. Attempting to connect to the original service from this sdk will throw a ParseException containing the following message:

SSL certificate problem: Invalid certificate chain

This can be further verified through additional means (curl through the terminal, browser, etc).

This PR removes the default server url and mount path variables, and adds verification in ParseClient::_request that both the server url and the mount path have been initialized before proceeding. Tests have been added to account for both cases as well.

::EDIT::

This also contains a couple typo changes where Parse::initialize was stated in an exception message where it should be ParseClient::initialize. The relevant test cases were updated as well.

@codecov
Copy link

codecov bot commented Jul 6, 2017

Codecov Report

Merging #332 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #332      +/-   ##
==========================================
+ Coverage   98.76%   98.77%   +<.01%     
==========================================
  Files          34       34              
  Lines        2682     2696      +14     
==========================================
+ Hits         2649     2663      +14     
  Misses         33       33
Impacted Files Coverage Δ
src/Parse/ParseClient.php 99% <100%> (+0.07%) ⬆️

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 592e376...2dd40df. Read the comment docs.

@montymxb montymxb requested a review from flovilmart July 6, 2017 19:42
Copy link
Contributor

@flovilmart flovilmart left a comment

Choose a reason for hiding this comment

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

I like!

@montymxb
Copy link
Contributor Author

montymxb commented Jul 6, 2017

Cool 😎. I think I'll open up some PRs / issues on the other sdks as well. See if we can't get those old defaults scrubbed out.

@montymxb montymxb merged commit b760ca3 into parse-community:master Jul 6, 2017
@montymxb montymxb deleted the remove-default-api branch July 6, 2017 20:18
dplewis pushed a commit to dplewis/parse-php-sdk that referenced this pull request Jul 12, 2017
* Removed default api and added appropriate checking

* lint
montymxb pushed a commit that referenced this pull request Jul 12, 2017
* Add ParsePolygon Type and polygonContains query

* test class fix

* error handling for polygon

* Update PHP_CodeSniffer (#328)

* Add lint

* update travis

* coding style

* add coverage to gitignore

* removed ignore lines

* nit

* Updated parse-php-sdk to version 1.2.9

* Corrects and updates phpdoc references/errors (#329)

* Corrects and updates phpdoc references/errors

* Lint fixes

* Added 'Getting Started' to README.md

Adds a **Getting Started** section to README.md to direct newcomers to the [official guide](http://docs.parseplatform.org/php/guide/) and [API reference](http://parseplatform.org/parse-php-sdk/namespaces/Parse.html).

* Remove Default API (#332)

* Removed default api and added appropriate checking

* lint

* Pages autodeploy and phpdoc style enforcing (#335)

* Added 'document-check' to add phpdoc checking during tests and added deploy for api ref on gh-pages

* Wrapping filename in quotes

* Moved bash out of package.json

* Unescaping strings

* Testing missing block comment

* Fixing lint exception to expose phpdoc style issue

* Restored class summary

* removed comment

* fix documentation

* Pinned jms/serializer to 1.7.1 (#336)

* Pinned jms/serializer to 1.7.1

* Checking to update jms/serializer to 1.8.0 ONLY on php 5.4 for travis-ci

* Added comment, and added graphviz for class diagrams in generated api docs
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.

2 participants