Commit Graph

3151 Commits

Author SHA1 Message Date
greenkeeper[bot]
d279198db7 Update mongodb to the latest version 🚀 (#6656)
* fix(package): update mongodb to version 3.5.7

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-30 04:37:26 +00:00
greenkeeper[bot]
c361cfd7ad Update lint-staged to the latest version 🚀 (#6654)
* chore(package): update lint-staged to version 10.2.0

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-30 04:37:22 +00:00
promisenxu
67bf868208 Handle shutdown for RedisCacheAdapter (#6658)
* Handle shutdown for RedisCacheAdapter

* connected value need to be tested in setTimeout

Co-authored-by: Promise Xu <promise@klido.me>
2020-04-29 19:51:58 -07:00
greenkeeper[bot]
800b0392a3 Update babel7 to the latest version 🚀 (#6657)
* chore(package): update @babel/core to version 7.9.6

* chore(package): update @babel/plugin-proposal-object-rest-spread to version 7.9.6

* chore(package): update @babel/preset-env to version 7.9.6

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-29 21:00:35 +00:00
Manuel
2b7223355e fix explain on user class (#6650)
* added test case and fixed bug

* enabled test case only for mongodb
2020-04-28 11:45:01 -07:00
Manuel
e78c07e169 Fix read preference for aggregate (#6585)
* added failing test cases

* fixed test cases for aggregate query

* added read preference option to aggregate router
2020-04-28 11:41:33 -07:00
Manuel
288e746888 add context to Parse.Object.save (#6626)
* added failing test

* added parsing of context in REST save request

* undo lint changes
2020-04-28 11:36:46 -07:00
greenkeeper[bot]
61546aad9a Update parse to the latest version 🚀 (#6653)
* fix(package): update parse to version 2.13.0

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-27 23:13:14 +00:00
greenkeeper[bot]
71147eb066 Update ws to the latest version 🚀 (#6646)
* fix(package): update ws to version 7.2.5

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-25 11:20:25 +00:00
Corey
f43afc5d40 Adding ssl config params to Postgres URI (#6580)
* use pg-promise native pg-connection-string to parse uri instead of ParseConfigParser.js. The allows for a more felxible uri for ssl and other params

* added ssl config params and others to PostgresConfigParser

* forgot to add back the original client file

* need to read in file at path for pfx, ca, key, and key

* convert file buffer to string to be consistant with node-postgres examples
2020-04-23 11:25:16 -05:00
Corey
e6e5a8c578 Travis postgres update: removing unnecessary start of mongo-runner (#6594)
* use pg-promise native pg-connection-string to parse uri instead of ParseConfigParser.js. The allows for a more felxible uri for ssl and other params

* Revert "use pg-promise native pg-connection-string to parse uri instead of ParseConfigParser.js. The allows for a more felxible uri for ssl and other params"

This reverts commit a5926d3ff7b97f72bb0c5bced15f34942cd1a96d.

* Updating travis postgres and removing unnecessary start of mongo-runner. Ensuring before_script and before_install matches the rest of travis
2020-04-23 10:28:40 -05:00
greenkeeper[bot]
0075c660ee Update pg-promise to the latest version 🚀 (#6635)
* fix(package): update pg-promise to version 10.5.2

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-23 03:26:46 +00:00
Antonio Davi Macedo Coelho de Castro
0dec1c80e2 Fix #6586 (#6605) 2020-04-22 11:04:07 -05:00
Corey
489aeae784 Fix: objectId size for Pointer in Postgres (#6619)
* Fixing objectId for Pointer in Postgres

* add test case for longer objectId pointer. Note that this test fails on Postgres before the addition of previous commit

* removed comment that wasn't needed
2020-04-22 11:01:11 -05:00
greenkeeper[bot]
37ec22b270 Update prettier to the latest version 🚀 (#6633)
* chore(package): update prettier to version 2.0.5

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-21 19:20:46 +00:00
Gordon Sun
9d8955cf90 improve a test case (#6629)
1. do not need to create a new server, use the reconfigureServer tool
3. use async await

Co-authored-by: Gordon Sun <gordon.sun@pipe17.com>
2020-04-21 10:37:43 -07:00
Antoine Cormouls
f2f772084f Allow to resolve automatically Parse Type fields from Custom Schema (#6562)
* add package

* Allow real GraphQL Schema via ParseServer.start

* Allow resolve fields from auto graphQL Schema

* Simple merge

* fix + improve

* Add tests
2020-04-21 10:15:00 -07:00
greenkeeper[bot]
ad027c2822 Update lint-staged to the latest version 🚀 (#6632)
* chore(package): update lint-staged to version 10.1.7

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-21 15:07:36 +00:00
greenkeeper[bot]
185aaff074 Update pg-promise to the latest version 🚀 (#6623)
* fix(package): update pg-promise to version 10.5.1

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-21 05:36:35 +00:00
Gordon Sun
c11e891298 remove wrong console log in test (#6627)
Co-authored-by: Gordon Sun <gordon.sun@pipe17.com>
2020-04-20 22:34:59 -07:00
Yaacov Rydzinski
a6300a2201 Graphql tools v5 (#6611)
* Add test case for order option when extending the schema

* Remove fit

* upgrade to graphql-tools v5

revert #6515

Co-authored-by: Antonio Davi Macedo Coelho de Castro <adavimacedo@gmail.com>
2020-04-20 22:16:48 -07:00
greenkeeper[bot]
84b2d072a6 Update lint-staged to the latest version 🚀 (#6625)
* chore(package): update lint-staged to version 10.1.5

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-20 22:15:04 +00:00
greenkeeper[bot]
7ccd6ce0d4 Update lint-staged to the latest version 🚀 (#6621)
* chore(package): update lint-staged to version 10.1.4

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-17 14:46:51 +00:00
Gordon Sun
a5ef0be7f4 catch JSON.parse and return 403 properly (#6614)
Co-authored-by: Gordon Sun <gordon.sun@pipe17.com>
2020-04-15 12:59:49 -07:00
greenkeeper[bot]
b08b930043 Update semver to the latest version 🚀 (#6610)
* fix(package): update semver to version 7.3.2

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-14 18:37:47 +00:00
greenkeeper[bot]
ff011dc54d Update mongodb to the latest version 🚀 (#6606)
* fix(package): update mongodb to version 3.5.6

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-14 18:37:26 +00:00
greenkeeper[bot]
6980bcc3dd Update semver to the latest version 🚀 (#6609)
* fix(package): update semver to version 7.3.1

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-14 17:20:27 +00:00
greenkeeper[bot]
a80cc733c2 Update graphql-tools to the latest version 🚀 (#6608)
* fix(package): update graphql-tools to version 5.0.0

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-14 15:15:34 +00:00
greenkeeper[bot]
d1b544712f Update husky to the latest version 🚀 (#6592)
* chore(package): update husky to version 4.2.5

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-14 07:02:20 +00:00
greenkeeper[bot]
7c4c6a6838 Update jwks-rsa to the latest version 🚀 (#6599)
* fix(package): update jwks-rsa to version 1.8.0

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-14 04:44:50 +00:00
greenkeeper[bot]
b966b91f37 Update semver to the latest version 🚀 (#6603)
* fix(package): update semver to version 7.3.0

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-14 01:35:26 +00:00
greenkeeper[bot]
c5a1bc886b Update semver to the latest version 🚀 (#6598)
* fix(package): update semver to version 7.2.3

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-13 19:01:26 +00:00
greenkeeper[bot]
1053363940 Update semver to the latest version 🚀 (#6593)
* fix(package): update semver to version 7.2.2

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-10 16:39:19 +00:00
greenkeeper[bot]
0698c20997 Update apollo-link to the latest version 🚀 (#6591)
* chore(package): update apollo-link-http to version 1.5.17

* chore(package): update apollo-link-ws to version 1.0.20

* chore(package): update apollo-link to version 1.2.14

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-09 22:00:24 +00:00
greenkeeper[bot]
3c13d8015c Update husky to the latest version 🚀 (#6587)
* chore(package): update husky to version 4.2.4

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-09 18:54:55 +00:00
greenkeeper[bot]
f2fb6bd610 Update lint-staged to the latest version 🚀 (#6584)
* chore(package): update lint-staged to version 10.1.3

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-09 16:52:42 +00:00
Noah Silas
19086a8112 perf: Allow covering relation queries with minimal index (#6581)
* Apply linter changes on files I'm about to update

My actual changes were quite difficult to find when buried in this sea
of style changes, which were getting automatically applied during a
pre-commit hook. Here I just run the hooks against the files I'm going
to be touching in the following commit, so that a reviewer can ignore
these automatically generated diffs and just view the meaningful commit.

* perf: Allow covering relation queries with minimal index

When finding objects through a relation, we're sending Mongo queries
that look like this:
```
db.getCollection('_Join:foo:bar').find({ relatedId: { $in: [...] } });
```

From the result of that query, we're only reading the `owningId` field,
so we can start by adding it as a projection:
```
db.getCollection('_Join:foo:bar')
  .find({ relatedId: { $in: [...] } })
  .project({ owningId: 1 });
```

This seems like the perfect example of a query that could be satisfied
with an index scan: we are querying on one field, and only need one
field from the matching document.

For example, this can allow users to speed up the fetching of user roles
in authentication, because they query a `roles` relation on the `_Role`
collection. To add a covering index on that, you could now add an index
like the following:
```
db.getCollection('_Join:roles:_Role').createIndex(
  { relatedId: 1, owningId: 1 },
  { background: true }
);
```

One caveat there is that the index I propose above doesn't include the
`_id` column. For the query in question, we don't actually care about
the ID of the row in the join table, just the `owningId` field, so we
can avoid some overhead of putting the `_id` column into the index if we
can also drop it from the projection. This requires adding a small
special case to the MongoStorageAdapter, because the `_id` field is
special: you have to opt-out of using it by projecting `{ _id: 0 }`.
2020-04-08 11:43:45 -07:00
greenkeeper[bot]
fc805fc5da Update semver to the latest version 🚀 (#6576)
* fix(package): update semver to version 7.2.0

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-08 04:12:17 +00:00
greenkeeper[bot]
b791e13dfd Update babel7 to the latest version 🚀 (#6579)
* chore(package): update @babel/plugin-proposal-object-rest-spread to version 7.9.5

* chore(package): update @babel/preset-env to version 7.9.5

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-07 22:35:27 +00:00
greenkeeper[bot]
c2fa25d846 Update apollo-server to the latest version 🚀 (#6578)
* fix(package): update apollo-server-express to version 2.12.0

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-07 19:16:24 +00:00
Siddharth Ramesh
cc5f14e11a fix: Postrgres group aggregation (#6522)
* Postrgres group aggregation

* convert tabs to spaces

Co-authored-by: Diamond Lewis <findlewis@gmail.com>
2020-04-06 12:20:33 -05:00
greenkeeper[bot]
bfdcba8d5c Update lint-staged to the latest version 🚀 (#6566)
* chore(package): update lint-staged to version 10.1.2

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-06 17:05:08 +00:00
greenkeeper[bot]
bcd5f1717e Update prettier to the latest version 🚀 (#6568)
* chore(package): update prettier to version 2.0.3

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-06 16:45:39 +00:00
Antoine Cormouls
48beb2e4b5 Remove beta (#6565) 2020-04-05 20:21:56 +01:00
Gordon Sun
b08571774f Allow set user mapped from JWT directly on request (#6411)
* Use user mapped from JWT for Auth

* Add a test for userFromJWT bypass

Co-authored-by: Gordon Sun <gordon.sun@pipe17.com>
2020-04-03 17:09:37 -05:00
greenkeeper[bot]
81b22b21b5 Update nyc to the latest version 🚀 (#6563)
* chore(package): update nyc to version 15.0.1

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-03 17:46:11 +00:00
Arthur Cinader
1045eeb700 Prep release 4.2 (#6560)
* Prep release 4.2

* fix links, consistent formatting

* remove unnecessary credit

* add one more commit

* Fix link, remove double spaces

* add a few more commits
run npm audit fix

* little fixes

Co-authored-by: Tom Fox <13188249+TomWFox@users.noreply.github.com>
2020-04-03 09:53:08 -07:00
Corey
dcba8e0b7c Case insensitive username and email indexing and query planning for Postgres (#6506)
* Update .travis.yml

testing error to see what happens...

* Update .travis.yml

Attempting to resolve postgres in CL by installing postgis via sudo instead of through apt/packages

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

Removed extra lines of postgres that were under "services" and "addons". I believe the "postgresql" line under "services" was installing the default of 9.6 and "addons" was installing postgres 11. My guess is the fail was occurring due to 9.6 being called sometimes and it never had postgis installed. If this is true, the solution is to only install one version of postgres, which is version 11 with postgis 2.5.

* Adding test case for caseInsensitive 

Adding test case for verifying indexing for caseInsensitive

* Implementing ensureIndex

* Updated PostgresStorageAdapter calls to ST_DistanceSphere. Note this has a minimum requirement of postgis 2.2. Documented the change in the readme. This is address #6441

* updated postgres sections of contributions with newer postgres info. Also switched postgis image it points to as the other one hasn't been updated in over a year.

* more info about postgres

* added necessary password for postgres docker

* updated wording in contributions

* removed reference to MacJr environment var when starting postgres in contributions. The official image automatically creates a user named 'postgres', but it does require a password, which the command sets to 'postgres'

* added more time to docker sleep/wait to enter postgis commands. This will always take a few seconds because the db is installing from scratch everytime. If postgres/postgis images aren't already downloaded locally, it will take even longer. Worst case, if the command times out on first run. Stop and remove the parse-postgres container and run the command again, 20 seconds should be enough wait time then

* latest changes

* initial fix, need to test

* fixed lint

* Adding test case for caseInsensitive 

Adding test case for verifying indexing for caseInsensitive

* Implementing ensureIndex

* Updated PostgresStorageAdapter calls to ST_DistanceSphere. Note this has a minimum requirement of postgis 2.2. Documented the change in the readme. This is address #6441

* updated postgres sections of contributions with newer postgres info. Also switched postgis image it points to as the other one hasn't been updated in over a year.

* more info about postgres

* added necessary password for postgres docker

* updated wording in contributions

* removed reference to MacJr environment var when starting postgres in contributions. The official image automatically creates a user named 'postgres', but it does require a password, which the command sets to 'postgres'

* added more time to docker sleep/wait to enter postgis commands. This will always take a few seconds because the db is installing from scratch everytime. If postgres/postgis images aren't already downloaded locally, it will take even longer. Worst case, if the command times out on first run. Stop and remove the parse-postgres container and run the command again, 20 seconds should be enough wait time then

* latest changes

* initial fix, need to test

* fixed lint

* Adds caseInsensitive constraints to database, but doesn't pass regular tests. I believe this is because ensureIndex in the Postgres adapter is returning wrong. Also, some issues with the caseInsensitive test case

* this version addes the indexes, but something still wrong with the ensureIndex method in adapter

* removed code from suggestions

* fixed lint

* fixed PostgresAdapter test case

* small bug in test case

* reverted back to main branch package.json and lock file

* fixed docker command in Contribute file

* added ability to explain the find method

* triggering another build

* added ability to choose to 'analyze' a query which actually executes (this can be bad when looking at a query plan for Insert, Delete, etc.) the query or to just setup the query plan (default, previous versions defaulted to 'analyze'). Alse added some comparsons on sequential vs index searches for postgres

* made sure to check that search actually returns 1 result. Removed prep time comparison between searches as this seemed to be variable

* added test cases using find and case insensitivity on fields other than username and password. Also added explain to aggregate method

* fixing issue where query in aggregate replaced the map method incorrectly

* reverted back to mapping for aggregate method to make sure it's the issue

* switched back to caseInsensitive check for email and username as it was causing issues

* fixed aggregate method using explain

* made query plain results more flexible/reusable. Got rid of droptables as 'beforeEach' already handles this

* updated CONTRIBUTING doc to use netrecon as default username for postgres (similar to old style). Note that the official postgres docker image for postgres requires POSTGRES_PASSWORD to be set in order to use the image

* left postgis at 2.5 in the contributing document as this is the last version to be backwards compatibile with older versions of parse server

* updating docker command for postgres

Co-authored-by: Arthur Cinader <700572+acinader@users.noreply.github.com>
2020-04-03 09:24:56 -05:00
greenkeeper[bot]
a8a367ed84 Update pg-promise to the latest version 🚀 (#6555)
* fix(package): update pg-promise to version 10.5.0

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-03 14:11:14 +00:00
greenkeeper[bot]
3625b371cf Update eslint-plugin-flowtype to the latest version 🚀 (#6536)
* chore(package): update eslint-plugin-flowtype to version 4.7.0

* chore(package): update lockfile package-lock.json

Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
2020-04-03 14:07:42 +00:00