Commit Graph

2066 Commits

Author SHA1 Message Date
Florent Vilmart
d0184f438d Live Query basic monitoring (#4168)
* Adds uuid based client identification to prevent overflows

* no-super

* Adds cloud code monitoring

* fixes test

* nit
2017-09-15 17:20:51 -04:00
greenkeeper[bot]
7ecb36e71e chore(package): update nodemon to version 1.12.1 (#4166) 2017-09-15 09:23:48 -04:00
greenkeeper[bot]
be9f27493d fix(package): update ws to version 3.2.0 (#4165) 2017-09-15 08:10:18 -04:00
greenkeeper[bot]
64df33157d chore(package): update mongodb-runner to version 3.6.0 (#4164) 2017-09-15 08:09:35 -04:00
Florent Vilmart
d598d73f36 Adds ability to track sent/failed PerUTCOffset in the PushWorker (#4158)
* Adds ability to track sent/failed PerUTCOffset in the PushWorker

- for scheduled push notifications at a certain time, it helps keep track of the state

* Makes sure we track it all correctly

* Adds to Postgres
2017-09-13 17:28:20 -04:00
greenkeeper[bot]
be2760f9dd fix(package): update pg-promise to version 6.5.3 (#4154) 2017-09-13 09:32:26 -04:00
greenkeeper[bot]
c121b9787e fix(package): update winston-daily-rotate-file to version 1.5.0 (#4151) 2017-09-12 18:26:08 -04:00
Florent Vilmart
3a17904ce8 Push: Cleanup invalid device tokens (#4149)
* Adds collecting invalid / expired device tokens from GCM / APNS

* Cleanup invalid installations based on responses from the adapters

* Adds test for cleanup

* Adds tests for removal
2017-09-12 14:53:05 -04:00
greenkeeper[bot]
a1554d04ab fix(package): update body-parser to version 1.18.1 (#4148) 2017-09-12 14:19:03 -04:00
greenkeeper[bot]
956f1df0f0 chore(package): update babel-eslint to version 8.0.0 (#4147) 2017-09-12 14:18:26 -04:00
Anthony Mosca
4dce3bd63c Add support for more audience fields. (#4145)
* Add support for more audience fields.

* Only update audience when defined audience_id.
2017-09-11 22:06:21 -04:00
Florent Vilmart
9fbb5e29e8 Release 2.6.1 (#4146)
*  Release 2.6.1

* Update CHANGELOG.md
2017-09-11 11:23:07 -04:00
Florent Vilmart
a660a0c25f fix: Issue #4142 (#4144)
* Tweaks test in order to show the error

- Session is effectively created when it should not

* Do not create a session when users need verified accounts on signup
2017-09-11 11:07:39 -04:00
Florent Vilmart
839a117246 Fixes #2885 duplicate sessions (#4143)
* Adds test to repro the issue

* Improved test

* Destroy duplicate sessions for User/Installation-id pair

- Sessions will also be created with action login instead of signup when using 3rd party auth
2017-09-11 09:52:18 -04:00
marvelm
bc3cef2cd9 Support local time for scheduled pushes (#4137)
* Handle local push time

* PR feedback

* Improve timezone detection with regex

* Use indexOf instead of endsWith

* Add documentation

* Add end to end test for scheduled pushes in local time

* Revert changes to npm-git script

* clean up
2017-09-11 09:31:46 -04:00
greenkeeper[bot]
21f4411571 fix(package): update pg-promise to version 6.3.2 (#4009) 2017-09-09 14:02:54 -04:00
greenkeeper[bot]
0fb16a7848 chore(package): update babel-cli to version 6.26.0 (#4098) 2017-09-09 14:02:36 -04:00
Florent Vilmart
0f840b6bb8 Fix/issue pointer permissions (#4141)
* Makes sure we don't override roles

* Reduces the query size whith pointer permissions

- Does not return as $and if not needed
- Returns just the query with the additional constraint

* Do not use $in if include is just of length 1
2017-09-09 14:02:07 -04:00
Antonio Davi Macedo Coelho de Castro
019f9e55e1 Fix(MongoTransform): Ignore Audience legacy fields (#4018) 2017-09-09 13:27:54 -04:00
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