Tyler Brock
fedb381925
Remove warning for invalid MongoDB driver option ( #3952 )
2017-06-25 13:00:54 -04:00
Antonio Davi Macedo Coelho de Castro
b6298feaa7
Read preference option per query ( #3865 )
2017-06-21 23:18:10 +03:00
Antonio Davi Macedo Coelho de Castro
a0d1a3517f
fix(DatabaseController): Do not match any entry when searching for null in relation field ( #3924 )
2017-06-21 08:23:20 -04:00
Antonio Davi Macedo Coelho de Castro
4509d25471
Endpoints for audiences CRUD ( #3861 )
2017-06-21 08:54:13 +03:00
greenkeeper[bot]
e94991b368
Update dependencies to enable Greenkeeper 🌴 ( #3940 )
...
* chore(package): update dependencies
* docs(readme): add Greenkeeper badge
* Fix indent issues with eslint 4.0
see http://eslint.org/docs/user-guide/migrating-to-4.0.0\#-the-indent-rule-is-more-strict
2017-06-20 09:15:26 -07:00
Florent Vilmart
f0949a1310
feat: Job Scheduling ( #3927 )
...
* Adds back _JobSchedule as volatile class
* wip
* Restores jobs endpoints for creation, update and deletion
* Adds tests
* Fixes postgres tests
* Enforce jobName exists before creating a schedule
2017-06-14 13:07:00 -04:00
Diamond Lewis
8b21d5ab80
feat: Full Text Search Support ( #3904 )
...
* Full Text Support
* invalid input test
* Support for sort
* index exist test
* clean up
* better error messaging
* postgres support
* error instructions for $diacritic and $case sensitivity
* nit
* nit
* nit
* separate test for full text
2017-06-13 21:42:59 -04:00
Diamond Lewis
4b16a72992
feat(postgres): Add Bytes to Support ( #3894 )
...
* Add bytes to schema
* postgres support
* test cases
* bytes work parse object
2017-05-31 22:23:49 -04:00
Diamond Lewis
e8be98ded2
chore(Query): $withinPolygon: 3 point minimum and boundary testing. ( #3889 )
...
* added 3 point minimum constraint to within-polygon
* test nit
* test for open and closed paths
2017-05-31 18:08:37 -04:00
Diamond Lewis
b692e8578d
fix(Postgres): Support for GeoPoint equality query ( #3875 )
...
* Postgres doesn't support this query type yet
* removing conflict
* near test
* remove trailing space
2017-05-28 20:42:51 -04:00
Florent Vilmart
c2abbae92d
fix(Users): Makes sure verifying emails triggers hooks and liveQuery ( #3851 )
...
* Use RestWrite when verifying emails so hooks are called (as master)
* Fixes tests for postgres
* nit
* Makes rest.update support a full where instead of objectId
* Use rest.update to guaranteed proper beforeSave and liveQuery calls
2017-05-28 20:34:49 -04:00
Diamond Lewis
c99fdea6fb
feat(ParseQuery): Added 'withinPolygon' support for GeoPoints ( #3866 )
...
* Added 'withinPolygon' to query
* Unit test for withinPolygon
* More Unit Test
* withinPolygon fix for Postgres
* Fix nit
nit?
2017-05-28 12:42:16 -04:00
Diamond Lewis
a380fcf2c7
fix(postgres): Geopoint issue #3285 ( #3874 )
2017-05-28 12:41:09 -04:00
Vitaly Tomilov
d149d16fce
fix(PostgresStorageAdapter): Use transactions when deleting classes ( #3869 )
...
* Update PostgresStorageAdapter.js
refactoring `deleteClass`.
* Update PostgresStorageAdapter.js
2017-05-28 10:48:32 -04:00
Vitaly Tomilov
14e2d26d12
chore(PostgresStorageAdapter): nits ( #3870 )
...
refactoring method + removing a comment that's no longer needed.
2017-05-27 15:51:09 -04:00
Florent Vilmart
9dbb89a2e4
Fixes postgres flaky test ( #3822 )
...
* Changes expected error code
* nits
2017-05-16 09:06:17 -07:00
Florent Vilmart
8d67776c2e
Removes un-necessary shutdown handler ( #3786 )
...
* Removes un-necessary shutdown handler
- When registering a shutdown hander, the node process has to be exited manually which causes issues for many users
* Proper graceful shutdown from CLI
2017-05-08 10:06:01 -07:00
Paulo Vítor S Reis
69042fbf50
[postgres] Improve performance when adding many new fields to the Schema ( #3740 )
2017-04-23 17:25:33 -04:00
Paulo Vítor S Reis
5e14147676
Fixes issue affecting deleting multiple fields of a Schema ( #3735 )
2017-04-23 17:22:55 -04:00
Florent Vilmart
fd375cb927
Fixes issue affecting queries on Pointer arrays ( #3721 )
...
* Transform array atoms on equality
* nits
2017-04-16 11:44:41 -04:00
Florent Vilmart
e7a45cecb7
Adds graceful shutdown handler for mongodb ( #3706 )
2017-04-11 09:26:25 -07:00
ren dong
f3f81b692b
support pg-promise init options ( #3613 )
...
* pg-promise init options
* add database init options
* Create PostgresInitOptions.spec.js
* Update PostgresInitOptions.spec.js
* Update PostgresInitOptions.spec.js
* add PostgresInitOptions test
* Add files via upload
* linebreaks CRLF to LF
* modify postgresURI to test environment
* modify pg error code to 42P01
* fix reconfigureServer callback
2017-04-07 07:50:55 -04:00
zhoul-HS
52828683ba
Add __type property to GeoPoint fields in PostgresStorageAdapter ( #3695 )
...
* Add __type property to GeoPoint fields in PostgresStorageAdapter
* Add test to check __type on GeoPoint queries
2017-04-07 07:44:12 -04:00
Florent Vilmart
1f9a4edacd
Ignore duplicate_object error on create _Schema if not exists ( #3668 )
2017-03-23 22:29:43 -04:00
Vitaly Tomilov
271608bc82
Update PostgresStorageAdapter.js ( #3578 )
...
* Update PostgresStorageAdapter.js
proper database API, via transaction.
* Update PostgresStorageAdapter.js
fixing bracket.
* Update PostgresStorageAdapter.js
adding the same rejection approach as before, the functionality remains identical.
* Update PostgresStorageAdapter.js
* Update PostgresStorageAdapter.js
lint fixing
* Update PostgresStorageAdapter.js
fixing misspelling.
2017-03-04 15:56:53 -08:00
Florent Vilmart
193e5a4278
Make sure we don't treat dot notation keys as topLevel atoms ( #3531 )
...
Fixing GeoPoints and Files in _GlobalConfig
2017-02-19 12:07:54 +02:00
Vitaly Tomilov
fc7f9f76f5
removing inline sql. ( #3529 )
...
* removing inline sql.
* Update index.js
trying to fix indentation.
* Update index.js
commenting out console output for errors.
* Rename json-object-set-key.sql to json-object-set-keys.sql
* Update index.js
* Update add-unique.sql
correcting sql.
* Update add.sql
correcting sql.
* Update contains-all.sql
correcting sql.
* Update contains.sql
correcting sql.
* Update remove.sql
correcting sql.
* Update json-object-set-keys.sql
fixing sql reserved words.
2017-02-18 14:26:25 -05:00
nodechefMatt
ecf422b2d9
Mongo object to Parse object date serialization - avoid re-serialization of iso of type Date ( #3389 )
...
* Mongo object to Parse object date serialization - avoid nested ios
* Mongo object to Parse object date serialization
* Remove file from previous commit
2017-02-04 08:32:35 -08:00
Florent Vilmart
deedf7b370
Push scalability ( #3080 )
...
* Update status through increment
* adds support for incrementing nested keys
* fix issue when having spaces in keys for ordering
* Refactors PushController to use worker
* Adds tests for custom push queue config
* Makes PushController adapter independant
* Better logging of _PushStatus in VERBOSE
2017-01-13 19:34:04 -05:00
Arthur Cinader
4cb6e7d209
Add lint rule space-infix-ops ( #3237 )
...
Disallows: 1+1. Must be 1 + 1.
2017-01-11 12:31:40 -08:00
Florent Vilmart
752f0e9143
Fixes #3195 ( #3201 )
...
* Adds error reproduction
* Fix transform in order to accept nested array results in $in/$nin
The error originated by the nesting of 2 array in $in [["..."]], using _.flatMap with those will guarantee at the lower level
that the query is properly resolved
* nits
* _.flatMap the $in/$nin values
2016-12-07 20:03:40 -05:00
Arthur Cinader
ca286b7108
Enable prefer-const lint rule ( #3202 )
2016-12-07 18:17:05 -05:00
Arthur Cinader
8111c3338e
turn on max empty line rule with default of max: 2. ( #3176 )
...
Run with fix.
2016-12-06 13:35:23 -08:00
Arthur Cinader
a270632570
More lint tweaking ( #3164 )
...
1. Add no space in paren rule
2. fix spec/eslintrc.json so it allow for inheriting from root rc.
Because the spce rc specified reccomended, it "turned off" all of the
rule tweaks in the root. This fixes that.
2016-12-02 19:11:54 -05:00
Arthur Cinader
11f7712651
Add no trailing whitespace and force eol at end of file. ( #3154 )
2016-12-01 13:24:46 -05:00
Bhaskar Reddy Yasa
bd1689190f
Adds password history support to passwordPolicy ( #3102 )
...
* password history support in passwordPolicy
* Refactor RestWrite.transformUser
* fix eslint issues
2016-11-29 09:01:52 -08:00
Florent Vilmart
8c2c76dd26
Adds liniting into the workflow ( #3082 )
...
* initial linting of src
* fix indent to 2 spaces
* Removes unnecessary rules
* ignore spec folder for now
* Spec linting
* Fix spec indent
* nits
* nits
* no no-empty rule
2016-11-24 15:47:41 -05:00
Bhaskar Reddy Yasa
edb7b70ced
Adds password expiry support to password policy ( #3068 )
...
* Adding support for password expiry policy
* Renamed daysBeforeExpiry -> maxPasswordAge
2016-11-21 07:46:38 -08:00
Florent Vilmart
11c6170ed1
Adds support for postgres when saving relation #3074 ( #3084 )
2016-11-21 09:22:16 -05:00
Glen Tregoning
1eff210a51
MongoStorageAdapter.findOneAndUpdate returns Parse Object ( #3053 ) ( #3064 )
2016-11-20 09:02:49 -05:00
Yuki Takeichi
4ea455b20a
support Relation object saving ( #3074 )
...
* support Parse.Relation object save
* prevent Relation object from being saved in storage
2016-11-20 09:00:33 -05:00
Bhaskar Reddy Yasa
cf6ce5b9a3
Adding support for optional Password Policy ( #3032 )
...
* adds resetTokenValidityDuration setting
* adds a validator to validate password that can be used to enforce strong
passwords
* adds unit tests for passwordPolicy.validator
* adds unit tests to to fail reset password function if password is not in a valid format
* updates README.md for passwordPolicy
* prevents duplicate check for password validator in updateUserPassword
* adds optional setting to disallow username in password
* updates test cases to use fdescribe instead of describe
* updates test cases to use request-promise instead of request
* adds ability to use a RegExp or Callback function or both for a passwordPolicy.validator
* expect username parameter in redirect to password_reset_success
* adds support for _perishable_token_expires_at in postgres
2016-11-17 08:37:51 -08:00
Tyler Brock
e9dfb68a37
Add support for maxTimeMS mongoOption ( #3018 )
2016-11-11 08:03:35 -08:00
Kulshekhar Kabra
583887c43c
Improve update of jsonb fields. Add PG 9.5 to travis. ( #2984 )
...
* Improve update of jsonb fields. Add PG 9.5 to travis.
* Replace manual escaping with pg-promise's built in
2016-11-01 20:55:53 -04:00
Kulshekhar Kabra
78646a3e91
Enable API related tests for Postgres ( #2970 )
2016-10-31 12:11:21 -04:00
Kulshekhar Kabra
edf6ab6875
Enable query related tests for Postgres ( #2969 )
2016-10-31 12:10:53 -04:00
Kulshekhar Kabra
22c790f23c
Wrap postgres class creation in a transaction ( #2958 )
2016-10-28 20:23:37 -04:00
Florent Vilmart
0e78c28146
Fix PG fails ( #2957 )
...
* Better support for arrays of objects
* No transaction in class creation
2016-10-28 16:43:52 -04:00
Kulshekhar Kabra
f23c0a57ee
Fix the error returned when class already exists ( #2955 )
...
* Fix the error returned when class already exists
* Wrap the class creation in a transaction
2016-10-28 11:46:19 -04:00
Kulshekhar Kabra
de36d9640b
Allow configuration options for Postgres ( #2873 )
...
* Allow configuration options for Postgres
* Fix the use of incorrect options object.
* Refactor and test the postgres config parser.
* Remove unnecessary try/catch
* Remove unnecessary try/catch
* Add blank line at the end of the test file
* Rename file for consistency purposes
2016-10-15 17:29:54 -04:00