Commit Graph

2598 Commits

Author SHA1 Message Date
Antonio Davi Macedo Coelho de Castro
fe2e95622f GraphQL Support (#5674)
* GraphQL boilerplate

* Create GraphQL schema without using gql

* Introducing loaders

* Generic create mutation

* create mutation is now working for any data type

* Create mutation for each parse class - partial

* Adding more data types to the class

* Get parse class query

* Generic get query

* Generic delete mutation

* Parse class delete mutation

* Parse class find mutation

* Generic update mutation

* Parse class update mutation

* Fixing initialization problems

* Installing node-fetch again

* Basic implementation for Pointer

* Constructor tests

* API tests boilerplate

* _getGraphQLOptions

* applyGraphQL tests

* GraphQL API initial tests

* applyPlayground tests

* createSubscriptions tests

* ParseGrapjQLSchema tests file

* ParseGraphQLSchema tests

* TypeValidationError

* TypeValidationError

* parseStringValue test

* parseIntValue tests

* parseBooleanValue tests

* parseDateValue tests

* parseValue tests

* parseListValues tests

* parseObjectFields tests

* Default types tests

* Get tests

* First permission test at generic Get operation

* Fixing prepare data

* ApolloClient does not work well with different queries runnning in paralell with different headers

* ApolloClient does not work well with different queries runnning in paralell with different headers

* User 3 tests

* User 3 tests

* Get level permission tests

* Get User specific tests

* Get now support keys argument

* Get now supports include argument

* Get now supports read preferences

* Adding tests for read preference enum type

* Find basic test

* Find permissions test

* Find where argument test

* Order, skip and limit tests

* Error handler

* Find now supports count

* Test for FindResult type

* Improving find count

* Find max limit test

* Find now supports keys, include and includeAll

* Find now supports read preferences

* Basic Create test

* Generic create mutation tests

* Basic update test

* UpdateResult object type test

* Update level permissions tests

* Error handler for default mutations

* Delete mutation basic test

* Delete mutation level permission tests

* Test for string

* String test

* Date test

* Pointer test

* Relation tests

* Changing objects mutations location

* Changing objects queries location

* Create file mutation

* Test for file fields

* Test for null values

* Changing parse classes operations location

* Objects mutations refactoring

* Class specific create object mutation now working

* Update class specific mutation now working

* Specific class delete mutation now working

* Get class specific mutation now working

* Find class specific query now working without where and sort

* Find query for custom classes working with where partially

* Almost all data types working for specfic class find where

* Now only missing relation, geopoint, file and ACL

* Additional tests with Parse classes queries and mutations

* Now only missing relation, geopoint, file and ACL

* Files

* Fiels are now working

* Excluding missing order test temporarly

* Refactoring dates

* Refactoring files

* Default types review

* Refeactoring object queries

* Refactoring class scalar type

* Refactoring class types

* Geo queries are now working

* Fixing centerSphere

* Allow sort on class specific queries

* Supporting bytes

* ACL constraint

* Temporarly removing xit tests

* Fixing some tests because of schema cache

* Removing session token from users

* Parse.User queries and mutations

* Remove test using fit

* Fixing include test that was failing because of schema cache

* Fixing count test for postgres. Postgres does not count with where={} (legacy problem). We should solve it later

* Fix null values test for postgres. It is evaluating null as undefined (legacy problem) and we should fix is later.

* Fixing schema change test that was failing because of schema cache

* Add GraphQL File type parseLiteral tests

* Refeactoring users

* Including sign up mutation

* Fix failing test

* Improve default GraphQL types tests coverage

* Including some tests for data types

* Including additional pointer test:

* Fixing some tests

* more data type tests

* Include Bytes and Polygon data types tests

* Polygons test

* Merging other tests

* Fixing some postgres tests
2019-06-19 17:19:47 -07:00
Linus Unnebäck
922251a398 Avoid calling allowCrossDomain twice per request (#5682)
`api.use('/', middleware, ...)` will end up calling `middleware` for _every_ request, even if no routers in the `...` part matches.

This is because passing a router to express is just like passing any other route handler. The only thing that happens when it doesn't match a route is that it calls `next`, but by that point, the middleware has already run. 

The changes in the PR avoids adding the middleware twice for every route except file upload routes. Which will make express not call `allowCrossDomain` twice for every incoming request.
2019-06-19 16:47:26 -07:00
Jack Wearden
559096f1c2 Allow disabling workaround for since-fixed MongoDB bug (#5617)
* Allow disabling workaround for fixed MongoDB bug

* skipMongoDBServer13732Workaround description fix

* flip test boolean

* Remove CLI flag, use databaseVersion & engine

* Revert "Remove CLI flag, use databaseVersion & engine"

This reverts commit 042d1ba19f636fe0da06074168c6fd5db37ea048.

* clean up
2019-06-19 17:30:08 -05:00
Diamond Lewis
fcdf2d7947 Sign in with Apple Auth Provider (#5694)
* Sign in with Apple Auth Provider

Closes: https://github.com/parse-community/parse-server/issues/5632

Should work out of the box.

* remove required options
2019-06-19 16:05:09 -05:00
dependabot-preview[bot]
947c6beede Bump ws from 7.0.0 to 7.0.1 (#5693)
Bumps [ws](https://github.com/websockets/ws) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.0.0...7.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-18 13:00:44 +00:00
greenkeeper[bot]
09d0fb4daa Update babel-eslint to the latest version 🚀 (#5690)
* chore(package): update babel-eslint to version 10.0.2

* chore(package): update lockfile package-lock.json
2019-06-17 14:48:24 +00:00
Yao Bin
2a45ee02fb 📝 Document custom pages options (#5687) 2019-06-14 15:35:09 -05:00
Antonio Davi Macedo Coelho de Castro
466a049bd0 Fix ttl flaky test (#5686) 2019-06-13 15:06:16 -05:00
greenkeeper[bot]
1e2037753a Update lint-staged to the latest version 🚀 (#5685)
* chore(package): update lint-staged to version 8.2.1

* chore(package): update lockfile package-lock.json
2019-06-13 19:40:58 +00:00
greenkeeper[bot]
4e48609c49 Update eslint-plugin-flowtype to the latest version 🚀 (#5679)
* chore(package): update eslint-plugin-flowtype to version 3.10.3

* chore(package): update lockfile package-lock.json
2019-06-13 19:30:42 +00:00
Arthur Cinader
5204e5a111 Back merge 3.4.4 into master (#5683)
* 3.4.3 changelog and version bump

* nit
2019-06-13 11:43:29 -07:00
Diamond Lewis
7590ee9799 Fix #5678 (#5681)
* Fix #5678

* Revert "Fix #5678"

This reverts commit 106b6ddd9535da6ec323226c1b9ad649022aeb1e.

* revert #5627
2019-06-13 13:40:58 -05:00
Antonio Davi Macedo Coelho de Castro
8b667cf048 Fix 5651 (#5684)
* Fix 5651

* Fix User initilization test
2019-06-13 13:40:38 -05:00
greenkeeper[bot]
089b809aed Update eslint-plugin-flowtype to the latest version 🚀 (#5677)
* chore(package): update eslint-plugin-flowtype to version 3.10.2

* chore(package): update lockfile package-lock.json
2019-06-13 08:04:23 +00:00
Diamond Lewis
aa68cd84d0 Update Dockerfile (#5676) 2019-06-12 17:39:07 -07:00
Arthur Cinader
72da264c22 Prepare for 3.4.1 (#5673)
* changelog for 3.4.1

* bump package

* Fix layout
2019-06-12 15:57:20 -07:00
Diamond Lewis
8709daf698 Merge pull request from GHSA-2479-qvv7-47qq
* Failing test

* provide fix

* clearer test

* failing expect
2019-06-12 16:12:11 -05:00
Tom Fox
54ba9a0f00 security.md grammar improvements 2019-06-12 18:33:21 +01:00
dependabot-preview[bot]
df4ceb5a45 Bump eslint-plugin-flowtype from 3.9.1 to 3.10.1 (#5662)
Bumps [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype) from 3.9.1 to 3.10.1.
- [Release notes](https://github.com/gajus/eslint-plugin-flowtype/releases)
- [Commits](https://github.com/gajus/eslint-plugin-flowtype/compare/v3.9.1...v3.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 06:01:02 +00:00
greenkeeper[bot]
af82dd7bdd Update eslint-plugin-flowtype to the latest version 🚀 (#5656)
* chore(package): update eslint-plugin-flowtype to version 3.10.0

* chore(package): update lockfile package-lock.json
2019-06-12 05:41:21 +00:00
dependabot-preview[bot]
ea63def0e1 Bump prettier from 1.18.1 to 1.18.2 (#5658)
Bumps [prettier](https://github.com/prettier/prettier) from 1.18.1 to 1.18.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.18.1...1.18.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 02:35:55 +00:00
greenkeeper[bot]
2b6ec893d1 Update flow-bin to the latest version 🚀 (#5663)
* chore(package): update flow-bin to version 0.101.0

* chore(package): update lockfile package-lock.json
2019-06-12 02:22:13 +00:00
greenkeeper[bot]
cdc45caa80 Update husky to the latest version 🚀 (#5669)
* chore(package): update husky to version 2.4.1

* chore(package): update lockfile package-lock.json
2019-06-12 02:06:57 +00:00
greenkeeper[bot]
1123913ad4 Update supports-color to the latest version 🚀 (#5665)
* chore(package): update supports-color to version 7.0.0

* chore(package): update lockfile package-lock.json
2019-06-12 01:23:39 +00:00
Diamond Lewis
cb2b60bd90 Flaky Test (#5670) 2019-06-11 19:54:23 -05:00
Diamond Lewis
5d8b1535ac Flaky Tests (#5668)
Properly cleanup cache and database between tests. This includes indexes.
2019-06-11 16:31:27 -07:00
Diamond Lewis
d13bdbcea6 Flaky Tests (#5666)
Closes: https://github.com/parse-community/parse-server/issues/5651

Building on https://github.com/parse-community/parse-server/pull/5551
2019-06-11 14:05:32 -05:00
Diamond Lewis
7a080478b5 Fix #5654 (#5664)
* Fix #5654

* fix tests

* throw error instead
2019-06-11 13:40:34 -05:00
Faysal Ahmed
a58653ada8 Support LinkedIn v2 API (#5660) 2019-06-11 11:23:08 -05:00
greenkeeper[bot]
d06d020c13 Update prettier to the latest version 🚀 (#5645)
* chore(package): update prettier to version 1.18.1

* chore(package): update lockfile package-lock.json
2019-06-09 00:24:30 +00:00
greenkeeper[bot]
b86a07e632 Update mime to the latest version 🚀 (#5646)
* fix(package): update mime to version 2.4.4

* chore(package): update lockfile package-lock.json
2019-06-08 23:20:25 +00:00
Arthur Cinader
38756421d1 try to generate secure key correctly this time. (#5653) 2019-06-08 13:53:12 -07:00
Arthur Cinader
c016cf7960 add a gh token to give travis the rights to be me. (#5650) 2019-06-08 08:49:17 -07:00
Arthur Cinader
3341688e18 put deploy secure stuff in right section
add email
2019-06-08 07:57:16 -07:00
Arthur Cinader
476c945d7e Futzing with travis (#5648)
* Attempt to change npm credentials
from folovilmart to acinader

* Attempt to change npm credentials
from folovilmart to acinader
2019-06-08 07:42:37 -07:00
dependabot-preview[bot]
33399b3f11 Bump lint-staged from 8.1.7 to 8.2.0
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.1.7 to 8.2.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.1.7...v8.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 12:55:21 +00:00
dependabot-preview[bot]
5d06c9a6f7 Bump prettier from 1.17.1 to 1.18.0 (#5644)
Bumps [prettier](https://github.com/prettier/prettier) from 1.17.1 to 1.18.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.17.1...1.18.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-07 12:53:16 +00:00
Diamond Lewis
35524b8df9 Update Dockerfile (#5641) 2019-06-06 18:11:07 -05:00
dependabot-preview[bot]
0846ba148c Bump mongodb from 3.2.6 to 3.2.7 (#5636)
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 3.2.6 to 3.2.7.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/master/HISTORY.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v3.2.6...v3.2.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-06 22:07:20 +00:00
greenkeeper[bot]
d54e705b7c Update husky to the latest version 🚀 (#5638)
* chore(package): update husky to version 2.4.0

* chore(package): update lockfile package-lock.json
2019-06-05 17:21:40 +00:00
Olivier Allouch
7fc0d45b89 Database version in features (#5627)
* adding database.version in the serverInfo (only MongoDB, it gives undefined when using Postgres)

* . correction of old 'features' tests
. adding engine and database in the StorageAdapter interface and implementations

* . version retrieval done in performInitialization
. PostgreSQL version

* performInitialization now returns a Promise
2019-06-03 16:58:21 -05:00
greenkeeper[bot]
266d6328a3 Update flow-bin to the latest version 🚀 (#5628)
* chore(package): update flow-bin to version 0.100.0

* chore(package): update lockfile package-lock.json
2019-05-31 13:52:04 -05:00
Olivier Allouch
e370b9377a Update CONTRIBUTING.md (#5624)
* Update CONTRIBUTING.md

in "npm run test:win" , the ":win" msut be removed
I think it's because of the cross-env

* also removing the :win from coverage:win

* Update CONTRIBUTING.md
2019-05-30 16:19:34 -05:00
Diamond Lewis
cc6d474dcb Schema Cache Improvement 2 (#5616)
* schema hasClass improvement

* create object improvement

* destroy object

* update object

* hasClass test rewrite

* more tests

* improve signing up users
2019-05-30 11:14:05 -05:00
greenkeeper[bot]
9f226a254a Update flow-bin to the latest version 🚀 (#5621)
* chore(package): update flow-bin to version 0.99.1

* chore(package): update lockfile package-lock.json
2019-05-29 17:58:10 +00:00
greenkeeper[bot]
c5a1a98f03 Update flow-bin to the latest version 🚀 (#5620)
* chore(package): update flow-bin to version 0.99.0

* chore(package): update lockfile package-lock.json
2019-05-29 04:59:53 +00:00
greenkeeper[bot]
94e1bb6ec3 Update semver to the latest version 🚀 (#5619)
* fix(package): update semver to version 6.1.1

* chore(package): update lockfile package-lock.json
2019-05-28 17:41:00 +00:00
greenkeeper[bot]
b804245cbe Update express to the latest version 🚀 (#5615)
* fix(package): update express to version 4.17.1

* chore(package): update lockfile package-lock.json
2019-05-26 05:01:48 +00:00
Diamond Lewis
f7716f2f87 Schema Cache Improvements (#5612)
* Cache Improvements

* improve tests

* more tests

* clean-up

* test with singlecache

* ensure indexes exists

* remove ALL_KEYS

* Add Insert Test

* enableSingleSchemaCache default true

* Revert "enableSingleSchemaCache default true"

This reverts commit 323e7130fb8f695e3ca44ebf9b3b1d38905353da.

* further optimization

* refactor enforceFieldExists

* coverage improvements

* improve tests

* remove flaky test

* cleanup

* Learned something new
2019-05-24 16:42:27 -05:00
greenkeeper[bot]
cae858e16a Update mongodb to the latest version 🚀 (#5613)
* fix(package): update mongodb to version 3.2.6

* chore(package): update lockfile package-lock.json
2019-05-24 00:39:01 +00:00