Diamond Lewis
a02014f557
Improve single schema cache ( #7214 )
...
* Initial Commit
* fix flaky test
* temporary set ci timeout
* turn off ci check
* fix postgres tests
* fix tests
* node flaky test
* remove improvements
* Update SchemaPerformance.spec.js
* fix tests
* revert ci
* Create Singleton Object
* properly clear cache testing
* Cleanup
* remove fit
* try PushController.spec
* try push test rewrite
* try push enqueue time
* Increase test timeout
* remove pg server creation test
* xit push tests
* more xit
* remove skipped tests
* Fix conflicts
* reduce ci timeout
* fix push tests
* Revert "fix push tests"
This reverts commit 05aba62f1cbbca7d5d3e80b9444529f59407cb56.
* improve initialization
* fix flaky tests
* xit flaky test
* Update CHANGELOG.md
* enable debug logs
* Update LogsRouter.spec.js
* create initial indexes in series
* lint
* horizontal scaling documentation
* Update Changelog
* change horizontalScaling db option
* Add enableSchemaHooks option
* move enableSchemaHooks to databaseOptions
2021-03-16 16:05:36 -05:00
Diamond Lewis
32fc45d2d2
Add KeyPromiseQueue to Push and Job StatusHandlers ( #7267 )
...
* Add KeyPromiseQueue to Push and Job StatusHandlers
* Update CHANGELOG.md
* Update CHANGELOG.md
2021-03-15 18:51:46 -05:00
Antonio Davi Macedo Coelho de Castro
f7d2e09de6
Upgrade apollo-server-express to 2.21.0 ( #7266 )
2021-03-15 02:13:16 -05:00
Diamond Lewis
1666c3e382
[WIP] Enable test suite to be randomized ( #7265 )
...
* initial run
* Update ParseGraphQLServer.spec.js
* temporarily enable reporter
* Bump retry limit
* fix undefined database
* try to catch error
* Handle LiveQueryServers
* Update Config.js
* fast-fail false
* Remove usage of AppCache
* oops
* Update contributing guide
* enable debugger, try network retry attempt 1
* Fix ldap unbinding
* move non specs to support
* add missing mock adapter
* fix Parse.Push
* RestController should match batch.spec.js
* Remove request attempt limit
* handle index.spec.js
* Update CHANGELOG.md
* Handle error: tuple concurrently updated
* test transactions
* Clear RedisCache after every test
* LoggerController.spec.js
* Update schemas.spec.js
* finally fix transactions
* fix geopoint deadlock
* transaction with clean database
* batch.spec.js
2021-03-15 02:04:09 -05:00
Diamond Lewis
9563793303
Allow single server instance in test suite ( #7262 )
...
* initial pass
* reconfigureServer when needed
* finish postgres tests
* mongo tests
* more tests
* clean up
* re-add skipped test
* Fix transaction tests
* handle batch
* AuthenticationAdapter fix
* More reconfiguration
* clean up
* properly terminate cli servers
* handle Parse.Push
* Flaky PushController
* ensure reconfigureServer when changed
* fix postgres tests
* remove console.log
* LiveQuery spec remove duplicates and listeners
2021-03-13 09:05:22 -06:00
Diamond Lewis
8b0e8cd02c
Fix Parse.Push flaky tests ( #7263 )
...
* Fix Push Notification Flaky Tests
* handle all tests
2021-03-12 15:50:13 -08:00
Antonio Davi Macedo Coelho de Castro
687f4b7cf2
fix: upgrade mime from 2.5.0 to 2.5.2 ( #7261 )
...
Snyk has created this PR to upgrade mime from 2.5.0 to 2.5.2.
See this package in npm:
https://www.npmjs.com/package/mime
See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2021-03-12 00:56:42 -06:00
Diamond Lewis
39fa17f914
Postgres: Properly initialize database on startup and debugger ( #7255 )
...
* PG: Properly initialize database
* fix flaky tests
* flaky test
* correct test
* no idea
* clean up debugger
2021-03-10 11:31:35 -08:00
Manuel
bee889a329
Add security check ( #7247 )
...
* added Parse Server security option
* added SecurityRouter
* added Check class
* added CheckGroup class
* moved parameter validation to Utils
* added CheckRunner class
* added auto-run on server start
* added custom security checks as Parse Server option
* renamed script to check
* reformat log output
* added server config check
* improved contributing guideline
* improved contribution guide
* added check security log
* improved log format
* added checks
* fixed log fomat typo
* added database checks
* fixed database check
* removed database auth check in initial version
* improved contribution guide
* added security check tests
* fixed typo
* improved wording guidelines
* improved wording guidelines
2021-03-10 13:19:28 -06:00
Manuel
36c2608400
Improve changelog design ( #7253 )
...
* Changelog redesign
* condensed master section
* imrroved wording
* removed user links
* fixed version links
* fixed another version link
* removed verbose heading
* merged "bug fixes" into "other commits"
* fixed typos
* fixed typo in CONTRIBUTING
2021-03-10 16:55:36 +01:00
Manuel
de50b7b23d
Add custom routes to pages router ( #7231 )
...
* added custom routes
* fixed docs typos
* added page.customRoutes config validation
* added 404 response if missing custom route response
* added docs
* minor README formatting
* added CHANGELOG entry
* fixed bug in definitions builder that did not recognize array of custom type
* added missing route handler definition
* fixed custom routes definition
2021-03-07 13:51:35 +01:00
Antonio Davi Macedo Coelho de Castro
cac6951be0
Bump Node 15.11.0 for automated tests ( #7243 )
2021-03-05 11:32:34 +01:00
Brett Ponder
b20aa0c677
Remove Stage name check on aggregate pipelines ( #7237 )
...
* add search for atlas search index
* added test for search in pipeline
* removed stage name check in pipeline
* removed spec for invalid query invalid key
* updated changelog
Co-authored-by: Diamond Lewis <findlewis@gmail.com >
2021-03-03 14:46:49 -08:00
Diamond Lewis
d10e99007b
fix: upgrade apollo-server-express from 2.19.2 to 2.20.0 ( #7239 )
...
Snyk has created this PR to upgrade apollo-server-express from 2.19.2 to 2.20.0.
See this package in npm:
https://www.npmjs.com/package/apollo-server-express
See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2021-03-03 14:31:02 -08:00
Manuel
d789ca6b40
Fix password reset, email verification for custom endpoint ( #7236 )
...
* fixed incorrect endpoint for password reset and email verification
* added tests
2021-03-03 00:53:02 +01:00
Diamond Lewis
add67fdd22
fix: upgrade graphql-tag from 2.10.1 to 2.12.0 ( #7234 )
...
Snyk has created this PR to upgrade graphql-tag from 2.10.1 to 2.12.0.
See this package in npm:
https://www.npmjs.com/package/graphql-tag
See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2021-03-02 15:49:23 -08:00
dblythy
3833868709
New: Validate Cloud Validators ( #7154 )
...
* new: validate cloud validators
* add otherKey
* Update CHANGELOG.md
* Update CloudCode.Validator.spec.js
* Update CloudCode.Validator.spec.js
* new: validate cloud validators
* add otherKey
* Update CHANGELOG.md
* Update CloudCode.Validator.spec.js
* Update CloudCode.Validator.spec.js
* Update Parse.Cloud.js
* Update CHANGELOG.md
* Change to throw error
Co-authored-by: Antonio Davi Macedo Coelho de Castro <adavimacedo@gmail.com >
2021-03-02 00:52:21 +01:00
Antonio Davi Macedo Coelho de Castro
cd78f895d5
Move graphql-tag from devDependencies to dependencies ( #7183 )
...
* Move graphql-tag drom devDependencies to dependencies
* Add entry to CHANGELOG
2021-03-01 15:41:14 -08:00
Corey
2b9b336dd9
Fix flaky postgres test ( #7228 )
...
* Fix flaky postgres test
* add pgcrypto extension to test
* fix postgres ref link CONTRIBUTING guide and add pgcrypto extension
* Update CONTRIBUTING.md
2021-02-25 17:28:15 -06:00
Diamond Lewis
c4aadc974a
Upgrade parse from 3.0.0 to 3.1.0 ( #7222 )
2021-02-24 10:51:11 -06:00
Miguel Serrano
92f50f6808
Add support for Facebook Limited Login ( #7219 )
...
* Add support for Facebook Limited auth
* Add tests
* Fix tests
* Fix tests
* Add entry to changelog
* Cleanup
2021-02-24 07:36:24 -06:00
Tom Fox
ec8f78424f
fix: upgrade ws from 7.4.2 to 7.4.3 ( #7224 )
...
Snyk has created this PR to upgrade ws from 7.4.2 to 7.4.3.
See this package in npm:
https://www.npmjs.com/package/ws
See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2021-02-23 23:21:06 -06:00
Diamond Lewis
f71b63b83c
chore(ci): Bump node ( #7221 )
2021-02-23 13:54:52 -06:00
dblythy
91a0108084
New: allow options to be async on Cloud Validator ( #7155 )
...
* new: allow options to be async on Cloud Validator
* Update CHANGELOG.md
* Ensure pushStatus is properly running (#7213 )
* Ensure pushStatus is properly running
* remove duplicate test
* new: allow options to be async on Cloud Validator
* Update CHANGELOG.md
* Update CloudCode.Validator.spec.js
Co-authored-by: Diamond Lewis <findlewis@gmail.com >
2021-02-23 02:56:54 -06:00
Antonio Davi Macedo Coelho de Castro
047683219d
fix: package.json & package-lock.json to reduce vulnerabilities ( #7218 )
...
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-LODASH-1018905
- https://snyk.io/vuln/SNYK-JS-LODASH-1040724
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2021-02-23 02:52:15 -06:00
Manuel
67065584e4
changed lint to be separate CI task ( #7216 )
2021-02-21 17:41:33 -06:00
Diamond Lewis
f1394a93c2
Ensure pushStatus is properly running ( #7213 )
...
* Ensure pushStatus is properly running
* remove duplicate test
2021-02-20 15:17:15 -06:00
Antonio Davi Macedo Coelho de Castro
a649a9e600
Fix flaky test4 ( #7212 )
...
* Increase timeout for redis tests
* Remove for
* Increase little bit more one of the tests since it requires two calls to be done in time-fahsion way
* increase default ttl a bit more
2021-02-20 13:32:55 -06:00
Diamond Lewis
fd3c7fc1de
Upgrade parse from 2.19.0 to 3.0.0 ( #7211 )
2021-02-19 11:52:08 -08:00
Antonio Davi Macedo Coelho de Castro
fba096a3e1
Fix session expiration test ( #7208 )
...
* Fix session expiration test
* Fix the other test with similar issue
* Remove fit
2021-02-19 13:31:06 -06:00
Diamond Lewis
5a0968721d
fix: upgrade graphql from 15.4.0 to 15.5.0 ( #7201 )
...
Snyk has created this PR to upgrade graphql from 15.4.0 to 15.5.0.
See this package in npm:
https://www.npmjs.com/package/graphql
See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2021-02-19 13:23:45 -06:00
OverDrive
a1cd631425
Fix for authenticating with instagram ( #7173 )
...
* Fix for authenticating with instagram
* Change tests for instagram authentication
* Instagram authentication for the case when data child object is presented in the response
2021-02-19 13:19:13 -06:00
Diamond Lewis
c05102b90c
fix: upgrade pg-promise from 10.9.1 to 10.9.2 ( #7209 )
...
Snyk has created this PR to upgrade pg-promise from 10.9.1 to 10.9.2.
See this package in npm:
https://www.npmjs.com/package/pg-promise
See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2021-02-18 21:00:36 -08:00
Antonio Davi Macedo Coelho de Castro
603cc1ffbc
Fix error when a not yet inserted job is updated ( #7196 )
...
* Fix error when a not yet inserted job is updated
* Add entry to changelog
* revert the upsert change and fix the test
* Revert the change so job execute a single time
* Fix other tests with potential similar problem
2021-02-18 11:27:59 -08:00
Martin Man
9c100cf17d
describe how to use forked parse-server in custom docker image ( #7206 )
2021-02-18 20:03:11 +01:00
Antonio Davi Macedo Coelho de Castro
a430d6f7b7
Fix flaky test with transactions ( #7187 )
...
* Fix flaky test with transactions
* Add CHANGELOG entry
* Fix the other transactions related tests that became flaky because now Parse Server tries to submit the transaction multilpe times in the case of TransientError
* Remove fit from tests
2021-02-18 10:18:54 -08:00
Antonio Davi Macedo Coelho de Castro
9a9fc5fa5f
Bump tests to Mongo 4.0.23 ( #7205 )
...
* Bump tests to Mongo 4.0.23
* Bump node to 15.9.0 for tests
2021-02-18 10:43:45 +01:00
Manuel
5d84085071
Add contribution economics to guide ( #7191 )
...
* added contribution economics
* reformat
* removed duplicate phrase
* more rewording
* more rewording
2021-02-16 14:09:11 +01:00
Tom Fox
738ba9fc70
fix: upgrade follow-redirects from 1.13.1 to 1.13.2 ( #7194 )
...
Snyk has created this PR to upgrade follow-redirects from 1.13.1 to 1.13.2.
See this package in npm:
https://www.npmjs.com/package/follow-redirects
See this project in Snyk:
https://app.snyk.io/org/acinader/project/8c1a9edb-c8f5-4dc1-b221-4d6030a323eb?utm_source=github&utm_medium=upgrade-pr
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2021-02-15 20:02:06 -08:00
dblythy
d42e3a16a9
Remove duplicate CHANGELOG for Parse.Cloud.sendEmail ( #7188 )
...
* Update CHANGELOG.md
* Update CHANGELOG.md
2021-02-15 15:55:21 -08:00
Corey
dcf5d24520
Update README.md ( #7189 )
2021-02-13 20:35:06 +01:00
dblythy
3d76643286
New: requireAnyUserRoles and requireAllUserRoles for Parse Cloud Validator ( #7097 )
...
* new: requireUserRole for Parse Cloud Validator
* change to requireUserRoles
* Update CHANGELOG.md
* revoke triggers
* Update triggers.js
* Update ParseLiveQueryServer.js
* Update ParseLiveQueryServer.js
* create requireUserRoles
* rename to requireAny and requireAll
* allow for a function
2021-02-12 14:01:38 -08:00
Kartal Kaan Bozdoğan
7224cde023
fix: Pass customObjectId in beforeSave ( #7167 )
...
* beforeSave custom object id fix
* Added regression test case for issue #6733
2021-02-12 15:57:22 -06:00
dblythy
72cf31a1db
Minor Spelling and Grammar improvements to README ( #7145 )
...
* Update README.md
* Update README.md
* Update README.md
* Update README.md
Co-authored-by: Antonio Davi Macedo Coelho de Castro <adavimacedo@gmail.com >
2021-02-12 14:01:48 +00:00
dblythy
e53b6c2f87
run prettier ( #7172 )
2021-02-12 10:18:49 +01:00
Antonio Davi Macedo Coelho de Castro
dc1133d355
Change tests from 4.4.3 to 4.4.4 ( #7184 )
...
* Change tests from 4.4.3 to 4.4.4
* Add entry to changelog
2021-02-12 09:59:06 +01:00
dblythy
762cdddeba
Add Github process to contributing guide ( #7105 )
...
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
* Revert "Update CONTRIBUTING.md"
This reverts commit 331d7dc6385bd25a9435a5f32e36e90922fded60.
* Update CONTRIBUTING.md
2021-02-11 23:13:20 -08:00
Corey
3f49d5154c
Test against multiple versions of Postgres ( #7176 )
...
* Update ci.yml
* Add Postgis 3.0 test
* remove POSTGRES_MAJOR_VERSION from CI and script
* update docs
* nits
* nit
* Add postgres badges
* Add Postgres to TOC
* Shorten mongo and postgres descriptions
* Add badge for node, update mongo/postgres badges
* Add nodejs to TOC
* fix node js TOC
* Nit
* more nits
2021-02-11 23:33:55 +01:00
Manuel
4a3815d857
Add tests against multiple Nodejs versions ( #7177 )
...
* added nodejs version check
* added changelog entry
* fixed MongoDB ignored versions
* fixed nodejs test versions
* fixed typo
* added changelog entry
* added node 15 to CI checks
* improved log wording
* bumped nodejs default to 14
* added Node 15 to compatibility table
2021-02-11 17:59:34 +01:00
dblythy
27d56f0801
Fix: Proper handling of arrays for cloud validator ( #7178 )
...
* fix: proper handling of arrays for cloud validator
* Update CloudCode.Validator.spec.js
2021-02-11 00:29:34 -06:00