Commit Graph

1774 Commits

Author SHA1 Message Date
Florent Vilmart
81a55e655d chore(package): update nyc to version 10.3.2 (#3785) 2017-05-11 09:42:44 -04:00
youngerong
e0be653f4c Properly obfuscate query parameters in logs (#3793)
* fix-3789

* fix3789 add unit test
2017-05-11 07:17:20 -04:00
cmmills91
22ba39812b Add support for resending verification email in case of expired token (#3617)
* -Defines new public API route /apps/:appId/resend_verification_email that will generate a new email verification link and email for a user identified by username in POST body
-Add template and url support for invalidVerificationLink, linkSendSuccess, and linkSendFail pages. The invalidVerificationLink pages includes a button that allows the user to generate a new verification email if their current token has expired, using the new public API route
-All three pages have default html that will be functional out of the box, but they can be customized in the customPages object. The custom page for invalidVerificationLink needs to handle the extraction of the username and appId from the url and the POST to generate the new link (this requires javascript)
-Clicking a link for an email that has already been verified now routes to the emailVerifySuccess page instead of the invalidLink page

* Fix package.json repo url to be parse-server againwq

* Fix js lint issues

* Update unit tests

* Use arrow functions, change html page comments, use qs and a string template to construct location for invalidVerificationLink page, syntax fixes

* Remember to pass result when using arrow function
2017-05-10 09:02:16 -04:00
Jack Wearden
7b9ebc4e8e Avoid multiple $nears in one query (#3798)
Mongo has a hard limit on 1 $near operation per query. Restructuring to
avoid SERVER-13732 should not invalidate a query by creating multiple
$near operations.

Additionally, queries with multiple $ors are now recursively handled,
whereas before, ops at the top level would only have been pushed one
level deeper.

https://github.com/parse-community/parse-server/issues/3767
2017-05-10 08:32:08 -04:00
kahoona77
64e6f40779 catch unhandled rejection with installation-handling (#3795) 2017-05-09 08:10:38 -04:00
Florent Vilmart
8d67776c2e Removes un-necessary shutdown handler (#3786)
* Removes un-necessary shutdown handler

- When registering a shutdown hander, the node process has to be exited manually which causes issues for many users

* Proper graceful shutdown from CLI
2017-05-08 10:06:01 -07:00
greenkeeper[bot]
864d191d0c chore(package): update request-promise to version 4.2.1 (#3788) 2017-05-08 10:03:54 -04:00
Florent Vilmart
45a9d50110 Skip authData validation if it hasn't changed. (#3783)
* Adds test for the new feature

* Re-validate authData only if mutated

- In case of short-lived tokens (like facebook) this will allow clients to be lax with asking users to re-login
2017-05-07 12:55:30 -04:00
Serge Bornow
4f903952bf Update to package.json - mongo client (#3781)
Updated mongodb-core to 2.1.10
NODE-981 delegate auth to replset/mongos if inTopology is set.
NODE-978 Wrap connection.end in try/catch for node 0.10.x issue causing exceptions to be thrown, Also surfaced getConnection for mongos and replset.
Remove dynamic require (Issue #175, https://github.com/tellnes).
NODE-696 Handle interrupted error for createIndexes.
Fixed isse when user is executing find command using Server.command and it get interpreted as a wire protcol message, #172.
NODE-966 promoteValues not being promoted correctly to getMore.
Merged in fix for flushing out monitoring operations.
NODE-983 Add cursorId to aggregate and listCollections commands (Issue, #1510).
Mark group and profilingInfo as deprecated methods
NODE-956 DOCS Examples.
Update readable-stream to version 2.2.7.
NODE-978 Added test case to uncover connection.end issue for node 0.10.x.
NODE-972 Fix(db): don't remove database name if collectionName == dbName (Issue, #1502)
Fixed merging of writeConcerns on db.collection method.
NODE-970 mix in readPreference for strict mode listCollections callback.
NODE-966 added testcase for promoteValues being applied to getMore commands.
NODE-962 Merge in ignoreUndefined from collection level for find/findOne.
Remove multi option from updateMany tests/docs (Issue #1499, https://github.com/spratt).
NODE-963 Correctly handle cursor.count when using APM.
2017-05-06 19:52:11 -04:00
greenkeeper[bot]
0e64635dfb chore(package): update deep-diff to version 0.3.8 (#3773) 2017-05-05 09:33:50 -07:00
greenkeeper[bot]
d64f100bc9 chore(package): update mongodb-runner to version 3.5.0 (#3777) 2017-05-05 09:33:37 -07:00
greenkeeper[bot]
181fe34f0b chore(package): update deep-diff to version 0.3.7 (#3769)
https://greenkeeper.io/
2017-05-01 09:06:44 -07:00
greenkeeper[bot]
4fbe3540bd chore(package): update jasmine-spec-reporter to version 4.1.0 (#3768)
https://greenkeeper.io/
2017-04-30 16:37:45 -07:00
greenkeeper[bot]
c6b95482d2 chore(package): update deep-diff to version 0.3.6 (#3752)
https://greenkeeper.io/
2017-04-25 09:12:05 -07:00
greenkeeper[bot]
bd4ca383fd chore(package): update jasmine to version 2.6.0 (#3749)
https://greenkeeper.io/
2017-04-24 14:35:14 -07:00
Florent Vilmart
f7af48db89 Fix/3678 overloaded query constraints (#3723)
* Added failing test

* Updated test description

* Properly handle equalities with additional operator constraints

* adds continuation to silence rejected promises

* Wrap json parsing

* nits
2017-04-23 15:10:17 -07:00
Benjamin Wilson Friedman
d2b5be20a8 Fixed docs.parseplatform.org links in README.md (#3728)
* Fixed docs.parseplatform.org links in README.md

Fixes a couple links in the README.md that were forcing `https` while docs.parseplatform.org does not support a secure connection currently.

* Changed link for sdks

Updated the link for the sdks to the more detailed page http://parseplatform.org/#sdks
2017-04-23 17:59:24 -04:00
Paulo Vítor S Reis
69042fbf50 [postgres] Improve performance when adding many new fields to the Schema (#3740) 2017-04-23 17:25:33 -04:00
Paulo Vítor S Reis
5e14147676 Fixes issue affecting deleting multiple fields of a Schema (#3735) 2017-04-23 17:22:55 -04:00
Natan Rolnik
2a5c20376a Merge pull request #3744 from acinader/fix-some-typos-pg-init-options-test
Some wordsmithing on test descriptions.
2017-04-24 00:12:58 +03:00
Arthur Cinader
a0c1974015 Some wordsmithing on test descriptions. 2017-04-23 11:14:32 -07:00
greenkeeper[bot]
0f1aea1db1 Update dependencies to enable Greenkeeper 🌴 (#3712)
* chore(package): update dependencies

https://greenkeeper.io/

* chore(travis): whitelist greenkeeper branches 

https://greenkeeper.io/

* docs(readme): add Greenkeeper badge 

https://greenkeeper.io/

* Update README.md
2017-04-23 10:05:57 -07:00
Florent Vilmart
5813fd0bf8 Fix flaky tests (#3724)
* adds continuation to silence rejected promises

* Wrap json parsing
2017-04-16 16:50:03 -04:00
Florent Vilmart
dcd8e5626a Updates npm deployment keys (#3713)
* Fix on:repo clause for travis

* Update deploy keys
2017-04-16 11:46:32 -04:00
Florent Vilmart
fd375cb927 Fixes issue affecting queries on Pointer arrays (#3721)
* Transform array atoms on equality

* nits
2017-04-16 11:44:41 -04:00
Florent Vilmart
907b160fc7 Adds support for PushScheduling (#3722)
* Add support for push scheduling

Add a configuration flag on the server to handle the availability of
push scheduling.

* Update push controller to skip sending only if scheduling is configured

Only skip push sending if scheduling is configured

* Update bad conventions

* Add CLI definitions for push scheduling

* Adds tests for pushTime

* Adds test for scheduling

* nits

* Test for not scheduled
2017-04-15 17:20:55 -04:00
Florent Vilmart
302a0dda73 Prepare 2.3.8 release (#3710) 2017-04-12 16:02:13 -07:00
Florent Vilmart
e7a45cecb7 Adds graceful shutdown handler for mongodb (#3706) 2017-04-11 09:26:25 -07:00
Florent Vilmart
906fb27389 Delete { 2017-04-08 18:24:44 -04:00
ren dong
f3f81b692b support pg-promise init options (#3613)
* pg-promise init options

* add database init options

* Create PostgresInitOptions.spec.js

* Update PostgresInitOptions.spec.js

* Update PostgresInitOptions.spec.js

* add PostgresInitOptions test

* Add files via upload

* linebreaks CRLF to LF

* modify postgresURI to test environment

* modify pg error code to 42P01

* fix reconfigureServer callback
2017-04-07 07:50:55 -04:00
zhoul-HS
52828683ba Add __type property to GeoPoint fields in PostgresStorageAdapter (#3695)
* Add __type property to GeoPoint fields in PostgresStorageAdapter

* Add test to check __type on GeoPoint queries
2017-04-07 07:44:12 -04:00
Florent Vilmart
0add7c0c50 Fixes broken links
Fixes #3692
2017-04-06 08:27:00 -04:00
Jean-Michel Fayard
1bc74f4aa3 doc: Host sample application on flynn (#3691) 2017-04-06 07:44:36 -04:00
Florent Vilmart
c2e3092385 Updates links 2017-04-05 17:22:45 -04:00
Kevin Lacker
79806c5eba transfer code 2017-04-05 13:44:18 -07:00
George Perez
48115349d4 Add -d flag to link parse with mgo container (#3677)
Needed to run docker run --name my-parse-server --link my-mongo:mongo -d parse-server --appId APPLICATION_ID --masterKey MASTER_KEY to link the containers
2017-04-03 12:39:05 -07:00
Greenkeeper
87085b35b6 chore(package): update cross-env to version 4.0.0 (#3680)
https://greenkeeper.io/
2017-04-03 12:36:42 -07:00
Greenkeeper
65a8a1fc56 chore(package): update ws to version 2.2.3 (#3686)
https://greenkeeper.io/
2017-04-03 12:35:34 -07:00
Greenkeeper
f9ecebde3b chore(package): update babel-core to version 6.24.0 (#3628)
https://greenkeeper.io/
2017-03-28 15:28:41 -07:00
Benjamin Wilson Friedman
e01b417d3f Added exception for Twitter and OAuth missing options (#3676)
* Added exception for Twitter and OAuth missing configuration information

* Updated error codes to INTERNAL_SERVER_ERROR, code 1
2017-03-28 18:16:47 -04:00
Zubeen Tolani
a54f4d43fa Add install instructions for root user (#3419)
* Add install instructions for root user

* Reword the comment

* Update README.md

Commit adds a reference to solve the EACCES error while installation.

* remove trailing whitespace
2017-03-27 14:30:55 -07:00
Greenkeeper
7a43faa49c chore(package): update ws to version 2.2.2 (#3656)
https://greenkeeper.io/
2017-03-25 10:31:03 -07:00
Greenkeeper
abf6828a7f chore(package): update babel-plugin-syntax-flow to version 6.18.0 (#3664)
https://greenkeeper.io/
2017-03-25 10:30:15 -07:00
Greenkeeper
2436a85de6 chore(package): update uws to version 0.14.0 (#3670)
https://greenkeeper.io/
2017-03-25 10:29:35 -07:00
Florent Vilmart
1f9a4edacd Ignore duplicate_object error on create _Schema if not exists (#3668) 2017-03-23 22:29:43 -04:00
Greenkeeper
6a2b972566 chore(package): update tv4 to version 1.3.0 (#3653)
https://greenkeeper.io/
2017-03-20 13:10:31 -04:00
Florent Vilmart
f3765e0b8e use nyc for coverage (#3652)
* use nyc for coverage

* removes unnecessary logss

* Disable RedisCacheAdapter tests when not in specific environment
2017-03-20 09:58:36 -07:00
Greenkeeper
eeb3a7028d chore(package): update mongodb to version 2.2.25 (#3649)
https://greenkeeper.io/
2017-03-17 18:57:36 -04:00
Wissam Abirached
2533a8cdb3 Do not create user if username or password is empty (#3650) 2017-03-17 18:57:21 -04:00
Greenkeeper
ea94ae73f6 chore(package): update request-promise to version 4.2.0 (#3648)
https://greenkeeper.io/
2017-03-16 18:28:15 -04:00