Commit Graph

2056 Commits

Author SHA1 Message Date
Florent Vilmart
73aafa2d24 fix(tests): Stabilize flaky tests (#3876)
* Longer TTL, shorter wait

* Makes sure we wait for the logout

- Parse.User.logOut is async and was making a test flaky
2017-05-28 20:01:33 -04:00
Florent Vilmart
57efd89b3d fix(AuthAdapters): Do not revalidate auth data if hasn't changed (#3867) (#3872)
* Adds test for #3867

* Always Skip authData validation when nothing is mutated
2017-05-28 17:50:16 -04:00
Florent Vilmart
38a525ba5f chore(testing): only use TESTING=1 as the testing flag (#3877) 2017-05-29 00:04:25 +03:00
Diamond Lewis
c99fdea6fb feat(ParseQuery): Added 'withinPolygon' support for GeoPoints (#3866)
* Added 'withinPolygon' to query

* Unit test for withinPolygon

* More Unit Test

* withinPolygon fix for Postgres

* Fix nit

nit?
2017-05-28 12:42:16 -04:00
Diamond Lewis
a380fcf2c7 fix(postgres): Geopoint issue #3285 (#3874) 2017-05-28 12:41:09 -04:00
Vitaly Tomilov
d149d16fce fix(PostgresStorageAdapter): Use transactions when deleting classes (#3869)
* Update PostgresStorageAdapter.js

refactoring `deleteClass`.

* Update PostgresStorageAdapter.js
2017-05-28 10:48:32 -04:00
Serge Bornow
aedaae1f23 chore(dependencies): Bump to Mongodb client lib (#3868) 2017-05-27 15:52:36 -04:00
Vitaly Tomilov
14e2d26d12 chore(PostgresStorageAdapter): nits (#3870)
refactoring method + removing a comment that's no longer needed.
2017-05-27 15:51:09 -04:00
Anthony Mosca
1f11ad5d74 chore(PushController): Fix push controller tests. (#3853) 2017-05-23 20:22:35 -04:00
Florent Vilmart
67a1da8f9f Release 2.4.1 (#3845) 2017-05-22 13:21:16 -04:00
Florent Vilmart
b5a2042d12 Fixes issue #3835 affecting relation updates (#3836)
* Adds test for 3835

* Makes sure we run relational updates AFTER validating access to the object

* Always run relation udpates last
2017-05-22 12:34:00 -04:00
Felipe Andrade
03b6449fe1 [PushController] Fixes issue with undefined push_time (#3717) (#3824)
* Fixes #3717

This fixes PR #3717. Sending push with parse-server@2.4.0 returns error
504 GATEWAY_TIMEOUT. This happens when push_time is not set (default).

* Fix lint issues

* Fix in PushController and add tests

Add a test to check push_time format and if it should schedule push
when the parse-server is configured
2017-05-20 12:07:45 -04:00
greenkeeper[bot]
35d781a160 fix(package): update body-parser to version 1.17.2 (#3827) 2017-05-20 12:05:38 -04:00
greenkeeper[bot]
ad71dc40ca chore(package): update pg-promise to version 5.7.1 (#3826) 2017-05-20 12:05:25 -04:00
greenkeeper[bot]
36607b244e chore(package): update ws to version 3.0.0 (#3825) 2017-05-20 12:05:09 -04:00
Florent Vilmart
17a2d269ef Always clear sessions when user password is updated (#3821)
* Adds repro to  issue #3289

* Always clear sessions when password is updated
2017-05-16 11:13:09 -07:00
Florent Vilmart
9dbb89a2e4 Fixes postgres flaky test (#3822)
* Changes expected error code

* nits
2017-05-16 09:06:17 -07:00
Florent Vilmart
ab04641ed0 Create CODE_OF_CONDUCT.md (#3812) 2017-05-15 10:54:21 -04:00
Florent Vilmart
47e2db6c47 Release 2.4.0 (#3816) 2017-05-15 10:47:10 -04:00
greenkeeper[bot]
4e9e33cfbc chore(package): update pg-promise to version 5.7.0 (#3815) 2017-05-14 22:55:33 -04:00
Florent Vilmart
691cf5988a Adds count class level permission (#3814)
* Adds count class level permission

* fixup! Adds count class level permission

* Adds missing count property on beforeFind request object

* nits
2017-05-14 21:47:30 -04:00
Florent Vilmart
d71683a7e2 Code maintenance, small refactors (#3811)
* Removes promise wrapping in AccountLockoutPolicy

* Use bcrypt promises as globally available
2017-05-14 19:37:42 -04:00
Florent Vilmart
ab5b759e26 [CI] test with 6.10 and 7.10, mongoDB 3.2 and 3.4 (#3787)
* Node modernization on CI

* Makes sure tests dont yeild unhandled promise rejections

* Adds small delay to startDB

* Adds mongodb service

* testing default

* stupid

* testing with silent nugget

* proper versions

* Single release step
2017-05-14 10:50:53 -04:00
Florent Vilmart
f40019a326 build docker images on docker hub 2017-05-12 23:13:50 -04:00
Florent Vilmart
391ac97494 [ops] use build stages in travis (#3810) 2017-05-12 22:55:15 -04:00
Florent Vilmart
88de01f3d8 Fix issue _PushStatus stuck sending (#3808)
* Adds test for not set device tokens

* Properly filter the installations without a deviceToken

* nit for slower PG test

* nit
2017-05-12 14:24:37 -04:00
Florent Vilmart
4a724e8ab1 chore(package): update uws to version 0.14.5 (#3809)
https://greenkeeper.io/
2017-05-12 14:07:18 -04:00
greenkeeper[bot]
ad72226f42 fix(package): update pg-promise to version 5.6.8 (#3800) 2017-05-12 13:04:16 -04:00
Florent Vilmart
cc97067573 chore(package): update mime to version 1.3.6 (#3807) 2017-05-12 12:53:38 -04:00
greenkeeper[bot]
b5c5d91754 chore(package): update cross-env to version 5.0.0 (#3804) 2017-05-12 09:24:54 -04:00
Florent Vilmart
10c7cb0bfa requiresAuthentication is self-sufficient for ACL's (#3784)
* Adds test to reproduce issue #3753

* Consider requiresAuthentication as the same level as other CLP

* Better testing
2017-05-11 11:09:06 -04:00
Anthony Mosca
877ef78b5e Improve email verification (#3681)
* Removed hidden keys from users/me.

* Ensured that general users cannot update email verified flag.

* Updated tests to reflect email verification changes.
2017-05-11 09:44:58 -04:00
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