Commit Graph

2166 Commits

Author SHA1 Message Date
Arthur Cinader
e06471603f Don't error when attempting to sort on an object field (#4806)
* add failing test to demonstrate that you can't sort on a
field in an object.

* Only validate the base of the field name.

* fix test name

* Only test sort for mongo.

* pg order by nested object

* level 2 test

* Factor out operation to get a field's base name.  Add comment.

* tweak comment wording so it wont make my grammar teacher angry.
2018-06-07 18:47:18 -04:00
Jaeger
cf3a872e67 Don't merge JSON fields after save() when using Postgres to keep same behaviour as MongoDB (#4808) (#4815) 2018-06-07 12:43:54 -04:00
Florent Vilmart
1afc34eea3 chore(package): update nyc to version 12.0.2 (#4807)
* chore(package): update nyc to version 12.0.2

Closes #4804

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-06-04 15:22:29 -04:00
Florent Vilmart
0c2f1d583b Release 2.8.2 (#4802) 2018-06-04 13:07:52 -04:00
greenkeeper[bot]
3b40d2227d Update flow-bin to the latest version 🚀 (#4786)
* chore(package): update flow-bin to version 0.73.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-06-01 09:32:33 -04:00
Tyler Brock
c5e8470e36 Always use http-agent for hooks and triggers (#4800) 2018-06-01 09:31:10 -04:00
Florent Vilmart
9bff44b446 Ensure users with undefined ACL are treated as readable (#4795)
* Adds test to reproduce issue #4790

* Attempt to allow failure on node STABLE

* Use new format for apt packages
2018-05-30 12:55:15 -04:00
Tyler Brock
f4422c491e Update defs for new hookKeepAlive config option (#4794)
All tests pass on re-run. :-)
2018-05-29 17:30:26 -07:00
Tyler Brock
82fb06f9c9 Use http agents for hook requests (#4791) 2018-05-29 17:48:06 -04:00
greenkeeper[bot]
32d8c36ff5 Update cross-env to the latest version 🚀 (#4780)
* chore(package): update cross-env to version 5.1.6

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-05-24 16:28:37 -04:00
greenkeeper[bot]
fd862950e2 Update nodemon to the latest version 🚀 (#4781)
* chore(package): update nodemon to version 1.17.5

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-05-24 16:28:17 -04:00
Mads Bjerre
57da2def1d Adds withinPolygon support for Polygon object (#4067)
* Whitespace

* Add Polygon type to $polygon query

* Add tests

Polygon object in $polygon query
$geoIntersects queries

* Refactor

* Postgres support

* More tests

* Remove duplicate test

* Missing semicolon

* fix tests
2018-05-22 12:06:43 -04:00
Florent Vilmart
4dcbc4245b fix(package): update ws to version 5.2.0 (#4779)
* fix(package): update ws to version 5.2.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-05-21 21:43:50 -04:00
Florent Vilmart
642e2ffe12 Adds greenkeeper package-lock management (#4778) 2018-05-21 17:38:54 -04:00
greenkeeper[bot]
d2b04ddd92 chore(package): update gaze to version 1.1.3 (#4776) 2018-05-21 15:45:10 -04:00
greenkeeper[bot]
33173c4d9b fix(package): update deepcopy to version 1.0.0 (#4775) 2018-05-20 15:13:17 -04:00
Florent Vilmart
ff0c04ffa3 chore(package): update deep-diff to version 1.0.1 (#4774)
Closes #4733
2018-05-19 11:24:58 -04:00
greenkeeper[bot]
df274dcca9 fix(package): update commander to version 2.15.1 (#4663) 2018-05-18 15:49:40 -04:00
Florent Vilmart
a619119684 Bumps minimum node engine to 8+ (#4474)
* Use node 8 as development environment

* fixup! Use node 8 as development environment

* bump node to 8.10

* Targets node 8 for everything

* Run npm install so lock file is up to date

* Use push adapter v3

* Deflake a test on ParseUser

* Adds slight delay after logout

* Ensure we wait even if call fails

* Use node carbon
2018-05-18 15:49:00 -04:00
Jérémy Piednoel
77ed10f57b Adding $nor operator support (#4768)
* adding nor to specialQuerykeys

* adding nor suport

* adding test

* CRLF

* adding postgres NOR

* adding nor validation

* adding NOR test

* adding test amd fixing NOR cases

* revert the nor logic
2018-05-18 14:26:33 -05:00
Florent Vilmart
a9ebc2b9af Release 2.8.1 (#4771)
* unfuck release 2.8.0

*  Release 2.8.1

* Ensure we can install also on latest
2018-05-18 13:06:12 -04:00
Florent Vilmart
8fe3265c74 Release 2.8.0 (#4767)
* Ensure issue template has proper line endings

* Bumps to 2.8.0

* Adds Changelog
2018-05-18 10:55:20 -04:00
Saulo Tauil
95550f4c77 Making response.error accept a Parse.Error object as parameter (#4695) 2018-05-18 10:15:25 -04:00
Florent Vilmart
fc47f9b84f issue(afterFind): Fixes issue when using afterFind with relations (#4752)
* Adds failing test for the issue

* Adds fix for the issue
2018-05-18 09:36:56 -04:00
Jérémy Piednoel
c0f86ae1d1 Adding Mongodb element to add arrayMatches the #4762 (#4766)
* Adding elemMatch and nor

* lint

* adding test

* adding edge test

* postgres support

* clean up

* empty test
2018-05-18 08:35:50 -05:00
Florent Vilmart
ad244d6654 feature: User Lockout (#4749)
* Allows masterKey to lock _User object and prevent login with email / password

* Ensure the authData based auth can be locked out as well when accounts is masterKey only
2018-05-16 15:40:02 -04:00
greenkeeper[bot]
bfd0c4bf2f chore(package): update cross-env to version 5.1.5 (#4757) 2018-05-16 15:39:40 -04:00
greenkeeper[bot]
d36c7c7f90 chore(package): update uws to version 10.148.0 (#4758) 2018-05-16 15:39:29 -04:00
greenkeeper[bot]
10232673d9 fix(package): update body-parser to version 1.18.3 (#4763) 2018-05-16 15:39:10 -04:00
Eduard Bosch Bertran
c0e3672e32 New query condition support to match all strings that starts with some other given strings (#3864)
* feat: Convert $regex value to RegExp object

* feat: Add lib folder

* Revert "feat: Add lib folder"

This reverts commit c9dfbcbf699ff220baeb2df5586a944d19808e5e.

* feat: Add $regex test in $all array

* test: Test regex with $all only in MongoDB

* Revert "test: Test regex with $all only in MongoDB"

This reverts commit d7194c7869dee98d924fbc2502593a198385dba1.

* feat: Add tests for containsAllStartingWith

* feat: Add postgres support

Thanks to @dplewis

* feat: Check that all values in $all must be regex or none

* test: Check that $all vaules must be regex or none

* feat: Update tests to use only REST API

* refactor: Move $all regex check to adapter

* feat: Check for valid $all values in progres

* refactor: Update function name

* fix:  Postgres $all values regex checking

* fix: Check starts with as string

* fix: Define contains all regex sql function

* fix: Wrong value check

* fix: Check valid data

* fix: Check regex when there is only one value

* fix: Constains all starting with string returns empty with bad params

* fix: Pass correct regex value

* feat: Add missing tests

* feat: Add missing tests

* feat: Add more tests

* fix: Unify MongoDB and PostgreSQL functionality

* fix: Lint checks

* fix: Test broken

$regex in $all list must be { $regex: "string" }

* test for empty $all
2018-05-15 20:42:32 -05:00
Joseph Frazier
2c357df33e Fix typo: "requrest" -> "request" (#4761) 2018-05-13 13:49:07 -04:00
Florent Vilmart
3999de7e0b Update issue templates 2018-05-08 16:40:07 -04:00
Florent Vilmart
a3e5b20536 Bumps @parse/simple-mailgun-adapter (#4753) 2018-05-08 13:48:51 -04:00
Florent Vilmart
bb1641419f fix(package): update mime to version 2.3.1 (#4721)
Closes #4716
2018-05-01 14:02:56 -04:00
Florent Vilmart
0b69700f18 chore(package): update flow-bin to version 0.71.0 (#4746)
Closes #4730
2018-05-01 13:32:12 -04:00
greenkeeper[bot]
ac2695e196 chore(package): update deep-diff to version 1.0.0 (#4733) 2018-05-01 13:31:47 -04:00
Florent Vilmart
098d085621 fix(package): update request to version 2.85.0 (#4745)
Closes #4634
2018-05-01 13:31:02 -04:00
Vitaly Tomilov
a1f5f37af7 upgrading pg-promise to 8.4.0 (#4736) 2018-05-01 13:27:29 -04:00
greenkeeper[bot]
d48b30c734 fix(package): update mongodb to version 3.0.7 (#4732) 2018-05-01 13:26:04 -04:00
greenkeeper[bot]
3b5dff195f chore(package): update bcrypt to version 2.0.1 (#4735) 2018-05-01 13:25:37 -04:00
Florent Vilmart
fad7b46c65 chore: Fixes issue related to flow types (#4724)
* Fixes issue related to flow types

* Improves type inference on where clause, index

* run parse-server start on liveQueryServer only on mongo, state leaks on postgres
2018-05-01 07:37:38 -04:00
Claire Neveu
04588bccb9 Allow creation of indices on default fields (#4738)
* Allow creation of indexes on default fields

* Update test

* Try to address flaky cache test
2018-04-25 16:06:10 -07:00
oleg
b1017ac17c Send version for Vkontakte API (#4725) 2018-04-15 15:09:28 -04:00
Florent Vilmart
ebf65bfc5d Updates @parse/push-adapter (#4723) 2018-04-15 09:52:18 -04:00
dblythy
22801d2d8f Ensure we respond with invalid password even if email is unverified (#4708) 2018-04-11 15:39:32 -04:00
Florent Vilmart
8380107e6b chore(package): update nodemon to version 1.17.3 (#4712)
Closes #4637
2018-04-10 13:57:11 -04:00
Florent Vilmart
a77b0a238f chore(package): update flow-bin to version 0.69.0 (#4711)
Closes #4651
2018-04-10 13:56:46 -04:00
Florent Vilmart
6c81635188 fix(package): update mongodb to version 3.0.6 (#4710)
Closes #4674
2018-04-10 13:56:05 -04:00
Florent Vilmart
fed40128a5 fix(package): update mime to version 2.2.2 (#4709)
Closes #4687
2018-04-10 13:55:21 -04:00
greenkeeper[bot]
ee151de56a fix(package): update ws to version 5.1.1 (#4691) 2018-04-10 13:55:02 -04:00