Commit Graph

1897 Commits

Author SHA1 Message Date
Jeremy May
121d151af9 Add master key override to live query ACL checks (#4133)
* Add master key override to live query ACL checks

* Fix mockClient so masterKey tests work correctly
2017-09-09 13:26:18 -04:00
Worathiti Manosroi
52c4dd3704 Refactor masterKeyIps and update readme (#4050)
* update choose_password to have the confirmation

* just a revert to the old one

* refactor and update readme

* just revert some spaces
2017-09-09 13:24:43 -04:00
Stephen Tuso
952e64d94a Update FilesAdapter comments (#4065) 2017-09-09 13:11:16 -04:00
greenkeeper[bot]
1914083942 fix(package): update body-parser to version 1.18.0 (#4139) 2017-09-09 13:09:46 -04:00
Florent Vilmart
139b9e1cb3 Finding areas that are untested and need love (#4131)
* Makes InstallationRouter like others

* Adds testing for Range file requests

- Fixes issue with small requests (0-2)

* Revert "Makes InstallationRouter like others"

This reverts commit e2d2a16ebf2757db6138c7b5b33c97c56c69ead6.

* Better handling of errors in FilesRouter

* Fix incorrectness in range requests

* Better/simpler logic

* Only on mongo at it requires Gridstore

* Open file streaming to all adapters supporting it

* Improves coverage of parsers

* Ensures depreciation warning is effective

* Removes unused function

* de-duplicate logic

* Removes necessity of overriding req.params.className on subclasses routers

* Use babel-preset-env to ensure min-version compatible code

* removes dead code

* Leverage indexes in order to infer which field is duplicated upon signup

- A note mentioned that it would be possible to leverage using the indexes on username/email to infer which is duplicated

* Small nit

* Better template to match column name

* Restores original implementation for safety

* nits
2017-09-05 17:51:11 -04:00
Florent Vilmart
3079270b3e Optimizations (#4135)
* removes costly json serialization to InMemoryCacheAdapter

* Always cache a copy of the array

* Use own mapValues

* Makes sure we dont make unnecessary calls to the logger

* Do not bypass loggers with silent logging (only applies to stdout)

* warn is not warning

* use ===

* Wrap logRequest / logResponse in the loggerController for more granular control

Also give the ability to pass functions to the logger so we don't serialize too early in JSON (costly)

* reconfiguring winston would override the transports levels and make subsequent tests fail
2017-09-04 20:47:49 -04:00
greenkeeper[bot]
17f4dcd176 chore(package): update nodemon to version 1.11.1 (#4134) 2017-09-04 15:17:33 -07:00
Diamond Lewis
5aafc93476 Text Index Support (#4081)
* add text index support

* additional validation

* multiple text index error

* rename function

* Delete text indexes message
2017-09-02 12:31:19 -04:00
Florent Vilmart
0bace67bb1 Adds push localization feature flag on serverInfo (#4130) 2017-09-01 18:08:02 -04:00
Florent Vilmart
6df944704c Adds support for localized push notification in push payload (#4129)
* Adds support for localized push data keys

- passign alert-[lang|locale] or title-[lang|locale] will inject the
  proper locale on the push body based on the installation

* Better handling of the default cases

* Updates changelog

* nits

* nits
2017-09-01 15:22:02 -04:00
Florent Vilmart
540daa4c4a Release 2.6.0 (#4126) 2017-08-30 14:08:20 -04:00
Florent Vilmart
2e1ba66fd2 Fix/user update issue (#4123)
* Adds failing test,

the _User object is not updated as soon as you pass some authData part of the PUT

* Do not run the DB call when updating the user with new auth data, just part of the rest
2017-08-29 16:34:59 -04:00
Arthur Cinader
a103871cbc fix some typos. (#4112)
* fix some typos.

* more typos....
2017-08-29 14:20:51 -04:00
Arthur Cinader
f8403943ab Greenkeeper/parse server s3 adapter 1.2.0 (#4118)
* fix(package): update parse-server-s3-adapter to version 1.2.0

* Add changelog note to explain the adapter change.
2017-08-29 14:20:25 -04:00
greenkeeper[bot]
da2bfca618 fix(package): update ws to version 3.1.0 (#4053) 2017-08-29 10:08:25 -07:00
greenkeeper[bot]
1798c07874 fix(package): update mime to version 1.4.0 (#4120) 2017-08-29 09:46:10 -07:00
greenkeeper[bot]
e2d1fd3fe0 fix(package): update semver to version 5.4.0 (#4044) 2017-08-29 09:14:54 -07:00
Florent Vilmart
ea67d23ef4 Improvements for sending push performance (#4122)
* Adds test for stalled pushStatus when audience is empty

* fixup! Adds test for stalled pushStatus when audience is empty

* Do not enqueue when count is 0, enforce deviceToken exists, stop badge ordering
2017-08-29 11:47:01 -04:00
greenkeeper[bot]
cfd7bc0f3b chore(package): update uws to version 8.14.1 (#4078) 2017-08-28 10:17:13 -07:00
greenkeeper[bot]
c4d921e3eb chore(package): update jasmine to version 2.8.0 (#4115) 2017-08-24 12:49:46 -07:00
greenkeeper[bot]
8513b697e9 chore(package): update bcrypt to version 1.0.3 (#4113) 2017-08-24 10:15:23 -04:00
Arthur Cinader
ff4ae55e34 Fix minor comment typo (#4110)
* Fix minor comment typo

* get the rest of the typos.  use US spelling for behavior.
2017-08-23 10:41:27 -07:00
greenkeeper[bot]
5d359c3b63 chore(package): update babel-register to version 6.26.0 (#4097) 2017-08-23 11:35:52 -04:00
greenkeeper[bot]
6e23822f99 chore(package): update babel-core to version 6.26.0 (#4096) 2017-08-23 11:35:40 -04:00
greenkeeper[bot]
b45f308ff9 fix(package): update mongodb to version 2.2.31 (#4089) 2017-08-23 11:35:23 -04:00
greenkeeper[bot]
3ed6dd2685 fix(package): update redis to version 2.8.0 (#4087) 2017-08-23 11:35:08 -04:00
Vitaly Tomilov
2b4c7570ea Update PostgresStorageAdapter.js (#4094)
* proper use of the connections
* proper integrity: creating tables within a single transaction.
2017-08-23 11:34:57 -04:00
Diamond Lewis
c6546218f4 PG: Support for nested contains and containedIn (#4109) 2017-08-23 11:33:57 -04:00
Florent Vilmart
c2c059f625 Smaller build matrix (#3986) 2017-08-11 13:17:58 -04:00
Arthur Cinader
008cb1dbfe Fix nit whitespace issue that is breaking lint. (#4092)
* Not sure how this got introduced without lint catching either in the upgrade of a lib or a pr on these files, but innocuous enough that i don't think we need to investigate further?

* Update eslint to make all happy!
2017-08-10 23:31:32 +03:00
greenkeeper[bot]
2cec92007a chore(package): update jasmine to version 2.7.0 (#4061) 2017-08-10 11:18:36 -04:00
greenkeeper[bot]
47f00e606f chore(package): update cross-env to version 5.0.2 (#4071) 2017-08-10 08:42:51 -04:00
Florent Vilmart
92d51def6b Fixes issue affecting linking users to a 3rd party auth (#4047)
* Fixes issue affecting linking users to a 3rd party auth

* Fixes problematic test

* Better fix

* nits
2017-07-25 15:26:34 -04:00
Worathiti Manosroi
7e54265f6d Security: limit Masterkey remote access (#4017)
* update choose_password to have the confirmation

* add comment mark

* First version, no test

* throw error right away instead of just use masterKey false

* fix the logic

* move it up before the masterKey check

* adding some test

* typo

* remove the choose_password

* newline

* add cli options

* remove trailing space

* handle  in case the server is behind proxy

* add getting the first ip in the ip list of xff

* sanity check the ip in config if it is a valid ip address

* split ip extraction to another function

* trailing spaces
2017-07-23 12:26:30 -04:00
Diamond Lewis
811d8b0c7a pg support for null in containedAll (#4026) 2017-07-23 12:11:02 -04:00
Miguel Serrano
3c79cae1b2 feat: add request headers to trigger functions (#4012)
* add request headers to trigger functions

* reverse changes

* add headers in request config and trigger request
2017-07-14 13:19:00 -04:00
Diamond Lewis
e6cc8204b3 Add Polygon Type To Schema / PolygonContain to Query (#3944)
* Added type polygon to schema

* refactoring and more tests

* fix tests

* update test and transform

* add support for polygonContains

* fix transform.mongoObjectToParseObject test

* add indexes for polygon

* index test

* postgres test fix

* remove invalid loop test

* add invalid loop test

* nit
2017-07-11 23:33:45 -04:00
greenkeeper[bot]
0571c6f95e fix(package): update mongodb to version 2.2.30 (#4003) 2017-07-08 14:18:24 -04:00
greenkeeper[bot]
58079f00f9 fix(package): update pg-promise to version 6.3.1 (#3992) 2017-07-08 14:18:10 -04:00
RiverAge
a26e4c7470 fix: proper error message when login with wechat fails (#4000)
* fix typo

it should be weixin not qq.

* change error message from weixin to wechat

* remove unnecessary check
2017-07-08 08:29:02 -04:00
greenkeeper[bot]
9d6b4f4cc4 fix(package): update commander to version 2.11.0 (#3988) 2017-07-03 21:27:21 -04:00
Florent Vilmart
d158023083 Release 2.5.3 (#3989) 2017-07-03 17:50:04 +03:00
Florent Vilmart
ad52ed64af Lets increment/set badges on all _Installations (#3970)
* Lets increment/set badges on all _Installations

* Makes sure PG update where query is properly formed with empty query
2017-07-03 10:16:04 -04:00
Florent Vilmart
5931aa8851 Release 2.5.2 (#3985)
* Adds ability to configure cache from cli

* dont use array.includes for node 4.6

* Changelog and version bump

* Removes runtime check for version

* Build releases on 4.6
2017-07-02 20:50:13 -04:00
rihadavid
287810443b Include username in password reset email (#3969)
When user resets his password, he does it by filling his email. But often he could also not remember his username, which he needs for logging in. I think it's better to include the username in the password reset email, what do you think?
2017-07-02 16:20:25 -04:00
Florent Vilmart
457e21d80f Release 2.5.1 (#3984)
* Update CHANGELOG.md

* Update package.json
2017-07-02 16:02:55 -04:00
Florent Vilmart
f42ccba5b1 fix(package): update pg-promise to version 6.3.0 (#3982)
* fix(package): update pg-promise to version 6.3.0

Closes #3954

* Restores PG adapter after tests that close the connection

* investigation

* Use isolated parse-server to not impeed on other specs

* Update PostgresInitOptions.spec.js
2017-07-02 14:29:54 -04:00
greenkeeper[bot]
d8a257d951 Update parse-server-push-adapter to the latest version 🚀 (#3983)
* fix(package): update parse-server-push-adapter to version 2.0.0

* Update helper.js

* default push config to android as ios is pickier
2017-07-01 23:34:47 -04:00
greenkeeper[bot]
2f00e4afda chore(package): update parse-server-s3-adapter to version 1.1.0 (#3981) 2017-07-01 19:26:21 -04:00
Florent Vilmart
95430bb4e8 Use LRU cache as default mechanism for caching in memory (#3979)
* Use LRU cache as default mechanism for caching in memory

* Return null as what’s expected
2017-06-30 16:54:35 -04:00