Commit Graph

175 Commits

Author SHA1 Message Date
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
Diamond Lewis
f71b63b83c chore(ci): Bump node (#7221) 2021-02-23 13:54:52 -06: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
Corey
dcf5d24520 Update README.md (#7189) 2021-02-13 20:35:06 +01: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
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
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
Manuel
7f47b0427e Add page localization (#7128)
* added localized pages; added refactored page templates; adapted test cases; introduced localization test cases

* added changelog entry

* fixed test description typo

* fixed bug in PromiseRouter where headers are not added for text reponse

* added page parameters in page headers for programmatic use

* refactored tests for PublicAPIRouter

* added mustache lib for template rendering

* fixed fs.promises module reference

* fixed template placeholder typo

* changed redirect response to provide headers instead of query parameters

* fix lint

* fixed syntax errors and typos in html templates

* removed obsolete URI encoding

* added locale inferring from request body and header

* added end-to-end localizaton test

* added server option validation; refactored pages server option

* fixed invalid redirect URL for no locale matching file

* added end-to-end localizaton tests

* adapted tests to new response content

* re-added PublicAPIRouter; added PagesRouter as experimental feature

* refactored PagesRouter test structure

* added configuration option for custom path to pages

* added configuration option for custom endpoint to pages

* fixed lint

* added tests

* added a distinct page for invalid password reset link

* renamed generic page invalidLink to expiredVerificationLink

* improved HTML files documentation

* improved HTML files documentation

* changed changelog entry for experimental feature

* improved file naming to make it more descriptive

* fixed file naming and env parameter naming

* added readme entry

* fixed readme TOC - hasn't been updated in a while

* added localization with JSON resource

* added JSON localization to feature pages (password reset, email verification)

* updated readme

* updated readme

* optimized JSON localization for feature pages; added e2e test case

* fixed readme typo

* minor refactoring of existing tests

* fixed bug where Object type was not recognized as config key type

* added feature config placeholders

* prettier

* added passing locale to page config placeholder callback

* refactored passing locale to placeholder to pass test

* added config placeholder feature to README

* fixed typo in README
2021-02-09 14:03:57 +01:00
Manuel
b59517fd68 Add tests against multiple MongoDB versions (#7161)
* added tests environment with mongodb 4.4.3

* added CI test for mongodb 4.4.3

* added CI tests for MongoDB versions 4.0, 4.2

* improved flaky test (seems to max out the limit of simultaneous connections)

* added spec helpers to run tests only for specific MongoDB version

* addedn npm scripts to run tests against relevant mongodb versions

* added spec helper function to exclude specific mongodb version

* added test for changed aggregate query planner results

* fixed regex test with incorrect regex syntax

* fixed test where query has select no keys (empty array)

* added changelog entry and ordered list

* fixed test that tried to simultaneously delete and build index on same collection

* added MongoDB compatibility table to readme

* updated default local tests to use MongoDB 4.4.3

* added MongoDB badges for new versions to README

* fixed typo in readme

* added new test helper filter to contribution guide

* fixed incorrect storage engine for mongodb 4.4

* changed CI to test MongoDB 3.6. with mmapv1 storage engine and standalone

* improved CI test description

* added CI self check for new MongoDB versions

* fixed CI

* removed CI

* added CI

* added throwing error if any of the checks failed

* added github action connector

* improved error message

* improved error messages

* improved error message

* updated CI environment to MongoDB 3.6.22

* improved error messages

* update CI env name

* updated CI env name

* improved error message

* removed patch versions from CI env description

* improved status message

* removed version range from core lib

* added explicit mongodb version to redis test and node 12 test

* bumped Node 12 test to 12.20.1 (version currently recommended by AWS Elastic Beanstalk)
2021-02-07 23:16:46 +01:00
Manuel
08b2ea45b0 Add account unlock on password reset (#7146)
* added account unlock on password reset

* added account policy option

* added changelog entry

* Added docs entry

* moved changelog entry to correct position

* improved tests to ensure requesting password reset email does not unlock account

* run prettier
2021-02-01 01:07:04 +01:00
Manuel
034ea5c828 add api mail adapter to mail adapter list (#7126) 2021-01-14 20:04:13 +00:00
Antonio Davi Macedo Coelho de Castro
54a61b7694 GitHub actions (#7035)
* Trying to setup GitHub Actions

* Try to fix the workflow steps

* Fix NODE_VERSION

* Fix services

* Fix services 2

* Fix redis service, remove docker service

* Missing npm install

* Fix Use Node.js step name

* Remove greenkeeper

* I believe we do not need this command

* Try to include postgres

* Fix postgres script

* Remove before install script

* Fix postgres before script

* Try to fix connection to postgres

* Fix postgress port

* Postgres host

* Still trying to connect on postgres

* Still trying to connect on postgres - localhost

* Split postgres in a separate job

* Add postgres healthcheck

* Set postgres just like github example

* Fix postgres scripts with new credentials

* Still trying to fix postgres connection

* Now it looks only the username is wrong

* Passing postgres password in the right way

* try to install postgis

* New attempt to install postgis

* Fix postgis image name

* Try to output tests

* We need to start mongo

* Increase tests timeout

* Fix flaky test

* Add GitHub Actions badge

* Badge as html

* Fix badge link

* Remove Travis

* try to fix coverage

* Fix flaky test

* Improve ci workflow

* Change the mongo default test version

* Fix the job name in the if clause

* Ubuntu18.0.4

* Downgrade to 4.0.21

* Fix cache keys:

* Trying with mongo 4.0.4

* Rever os and mongo versions

* remove latest node
2020-12-03 08:15:48 -08:00
Gunnar Oledal
dbf04f381c Absolute path is no longer required for cloud code (#6993) 2020-11-05 08:55:42 -08:00
Laode Muhammad Al Fatih
ccb6c046e2 Add cloud parameter to Docker command (#6988) (#6990)
* Add `cloud` parameter to Docker command (#6988)

* Add note to run Image with Cloud Code feature.
2020-11-03 15:57:58 -08:00
Tom Fox
b45d0c443a Replace greenskeeper badge (#6907) 2020-09-16 13:37:53 -05:00
Tom Fox
19264ba9ff Further improve issue template (#6816)
* Update ---report-an-issue.md

* mtrezza's suggestions

* remove support from readme

* Rename ---report-an-issue.md to ---1-report-an-issue.md

* Update ---feature-request.md

* Rename ---feature-request.md to ---2-feature-request.md

* Delete ---getting-help.md

* Delete ---push-notifications.md

* Delete ---parse-server-3-0-0.md

* Create config.yml

* change support link to org wide doc
2020-07-29 21:26:09 +01:00
Manuel
3bd5684f67 Add idempotency (#6748)
* added idempotency router and middleware

* added idempotency rules for routes classes, functions, jobs, installaions, users

* fixed typo

* ignore requests without header

* removed unused var

* enabled feature only for MongoDB

* changed code comment

* fixed inconsistend storage adapter specification

* Trigger notification

* Travis CI trigger

* Travis CI trigger

* Travis CI trigger

* rebuilt option definitions

* fixed incorrect import path

* added new request ID header to allowed headers

* fixed typescript typos

* add new system class to spec helper

* fixed typescript typos

* re-added postgres conn parameter

* removed postgres conn parameter

* fixed incorrect schema for index creation

* temporarily disabling index creation to fix postgres issue

* temporarily disabling index creation to fix postgres issue

* temporarily disabling index creation to fix postgres issue

* temporarily disabling index creation to fix postgres issue

* temporarily disabling index creation to fix postgres issue

* temporarily disabling index creation to fix postgres issue

* temporarily disabling index creation to fix postgres issue

* trying to fix postgres issue

* fixed incorrect auth when writing to _Idempotency

* trying to fix postgres issue

* Travis CI trigger

* added test cases

* removed number grouping

* fixed test description

* trying to fix postgres issue

* added Github readme docs

* added change log

* refactored tests; fixed some typos

* fixed test case

* fixed default TTL value

* Travis CI Trigger

* Travis CI Trigger

* Travis CI Trigger

* added test case to increase coverage

* Trigger Travis CI

* changed configuration syntax to use regex; added test cases

* removed unused vars

* removed IdempotencyRouter

* Trigger Travis CI

* updated docs

* updated docs

* updated docs

* updated docs

* update docs

* Trigger Travis CI

* fixed coverage

* removed code comments
2020-07-15 13:10:33 -05:00
Olle Jonsson
d70d0d8734 REAMDE: Fix Sponsors badge (#6711) 2020-06-23 23:15:01 +01:00
Antoine Cormouls
48beb2e4b5 Remove beta (#6565) 2020-04-05 20:21:56 +01: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
Arthur Cinader
5c7918980c Set min mongodb to 3.6 in prep for parse-server 4.0 (#6445)
* Set min mongodb to 3.6 in prep for parse-server 4.0

fixes: 6444

* don't use anonymous functions when we can just
pass the function.

Also remove the boolean argument in tests that no longer exists.

* generate the correct lock file.  ooops.
2020-02-27 10:56:14 -08:00
Jerome De Leon
06791d8f57 Add missing colon for customPages (#6393) 2020-02-07 18:25:28 -06:00
Kasra Bigdeli
4ab3665946 Added volumes to Docker command (#6356)
Added volumes to Docker command
https://github.com/parse-community/parse-server/issues/6353
2020-01-23 00:30:02 -08:00
Jerome De Leon
832a081bfb Add syntax highlighting for bash codes (#6302) 2019-12-27 12:28:13 -06:00
Priyash Patil
16af2e4fb8 Add exposing port in docker container (#6165)
Add port exposure for docker run command.
2019-10-28 13:17:25 -05:00
Andres Galante
8aa068727a Adds a line on the read me to make installation instructions easier (#6120)
* adds a line on the read me to make instalation instructions easier

* fixes instructions
2019-10-09 13:54:38 -05:00
Antonio Davi Macedo Coelho de Castro
d70474016a Update GraphQL readme section (#6056) 2019-09-17 14:49:52 -03:00
Antonio Davi Macedo Coelho de Castro
251d454dcd Update GraphQL Docs with the latest changes (#5980) 2019-08-27 14:18:15 -07:00
Diamond Lewis
750024ffcd Add Cloud Code guide to README (#5936)
Make the guide easily accessible
2019-08-17 21:53:57 -05:00
Antonio Davi Macedo Coelho de Castro
0e9462bfb5 Add GraphQL beta notice (#5886)
* Add GraphQL beta notice

* Add beta notice
2019-08-07 10:48:29 +01:00
Tom Fox
cbcca36a84 README top section overhaul + add sponsors (#5876)
* top section overhaul

add open collective sponsors

* fix bold formatting

* formatting

* add b4a logo
2019-08-01 15:11:43 +01:00
macarthuror
5398b6f667 custom pages example and an email adapter is added (#5838)
* custom pages example and an email adapter is added

* npm link of email adapter

* spelling and grammar changes

Co-Authored-By: Tom Fox <tomfox@surprises.io>

* spelling changes

Co-Authored-By: Tom Fox <tomfox@surprises.io>
2019-07-23 10:16:41 +01:00
Antonio Davi Macedo Coelho de Castro
a6f441248b GraphQL custom schema on CLI (#5828)
* Add --graphQLSchema to CLI

* Add custom graphql schema instructions to readme file

* Update README.md

Co-Authored-By: Tom Fox <tomfox@surprises.io>

* Update src/Options/Definitions.js

Co-Authored-By: Tom Fox <tomfox@surprises.io>

* Update src/Options/docs.js

Co-Authored-By: Tom Fox <tomfox@surprises.io>

* Update src/Options/index.js

Co-Authored-By: Tom Fox <tomfox@surprises.io>
2019-07-19 12:29:45 -07:00
Tom Fox
516d789491 Add contributors section, improve backers section (#5815)
* add contributors, improve backers section

* spacing
2019-07-18 17:47:16 +01:00
Antonio Davi Macedo Coelho de Castro
7222bb6af9 Running GraphQL (#5810)
* Improving GraphQL running instruction

* Improving GraphQL learning more section

* Fixing typo
2019-07-13 21:01:32 -07:00
Tom Fox
7e17e4be22 add GraphQL in contents list 2019-06-26 11:17:21 +01:00
Antonio Davi Macedo Coelho de Castro
5bc79cc3db GraphQL support via cli (#5697)
* Including GraphQL options in CLI - now it was auto-generated

* Improving the way that the headers are passed to the playground

* Including README notes about GraphQL

* Improving final text
2019-06-25 14:44:23 -07:00
Diamond Lewis
63b7146a3c Update README.md (#5583)
* Update README.md

* bump Live Queries

* Apply suggestions from code review

Co-Authored-By: Tom Fox <tomfox@surprises.io>
2019-05-11 19:14:22 -05:00
Diamond Lewis
b9c936f594 Add Docs for Server Config Definitions (#5581)
* Add Docs for Server Config Definitions

* protected field and sort alphabetically

* Add links

* nits
2019-05-11 15:25:31 -05:00
Diamond Lewis
b4d915bbbb Support direct access server option (#5550)
* Support direct access config

test options

* add test

* fix test

* fix definitions

* improve docs

* Update .travis.yml

* Revert "Update .travis.yml"

This reverts commit 407f1384953b64bad9e63068db8564c3584ca3a4.
2019-05-10 14:34:19 -05:00
Tom Fox
022b33e83c Remove video series reference (#5542) 2019-04-27 19:32:07 +01:00
Diego Vieira
c3eb256139 Update README.md (#5431)
Improve getting started for Docker.
2019-04-02 09:55:06 -07:00
Tom Fox
dd1c0fe2e8 Add twitter follow badge (#5464)
* Add twitter follow button

* fix twitter link
2019-04-02 13:06:45 +01:00
Arthur Cinader
9d064890d7 Remove an invisible that is causing display issue (#5458)
* Remove an invisible that is causing display issue

* move code transfer to bottom
2019-03-30 00:07:39 +00:00
Diamond Lewis
2c51011018 Fix Discourse Badge (#5423) 2019-03-15 17:41:35 -07:00
pateldharad
6eaefd95ae Password requirement custom message (#5399)
* Added validationError(custom message) for Password requirement fail

* Changed validationError from valodationError in README.md
2019-02-28 13:17:31 -08:00
Florent Vilmart
32de338247 Discourse (#5296)
* Update ISSUE_TEMPLATE.md

* Update ---report-an-issue.md

* Update ---parse-server-3-0-0.md

* Update ---push-notifications.md

* Update README.md

* Create ---getting-help.md
2019-01-15 12:20:57 -05:00
Florent Vilmart
c762ee4b43 run tests against mongodb 4.0 (#5250)
* run tests against mongodb 4.0

* Adds compatibility shields
2018-12-18 11:41:18 -05:00