Commit Graph

1282 Commits

Author SHA1 Message Date
Greenkeeper
1fb7679b22 chore(package): update pg-promise to version 5.1.2 (#2243)
https://greenkeeper.io/
2016-07-09 12:54:04 -07:00
Greenkeeper
83f686355e chore(package): update request to version 2.73.0 (#2242)
https://greenkeeper.io/
2016-07-09 10:53:14 -07:00
Drew
6ca1351b8f Revert "Update PostgresStorageAdapter.js" (#2241) 2016-07-08 22:52:14 -07:00
Vitaly Tomilov
a92b23b97d Update PostgresStorageAdapter.js (#2093)
If it really needs to reject with `undefined`, then this is the right way. Usually one just returns the result, let the caller provide the `.catch` ;)

This way real errors can be swallowed, not very good ;)
2016-07-08 22:51:22 -07:00
Florent Vilmart
a55466fde8 Fixes #2221: Nested Or queries (#2231)
* Adds repro for #2221

* Fixes nested or queries

* not for PG yet
2016-07-08 22:03:13 -07:00
Florent Vilmart
61aa5a8d62 Let auth data be updated on login (#2219)
* Let user update authData token upon login

* Adds tests that ensures linked authData isnt overriden

* fixes focused testing problem
2016-07-08 21:49:46 -07:00
Eric Raio
4e9e817a80 Adding amazon ses adapter to README (#2226)
We've been using this parse server amazon SES email adapter and would like to share with the rest of the community.
2016-07-07 11:32:05 -04:00
Blayne Chard
8338783075 Adding more information to the permission denied error (#2210) 2016-07-07 11:30:29 -04:00
Greenkeeper
944e5addd3 chore(package): update babel-istanbul to version 0.11.0 (#2174)
https://greenkeeper.io/
2016-07-05 12:49:06 -07:00
Greenkeeper
9de347872f chore(package): update babel-istanbul to version 0.10.0 (#2173)
https://greenkeeper.io/
2016-07-05 12:48:46 -07:00
Greenkeeper
5bf878be22 chore(package): update pg-promise to version 5.1.0 (#2177)
https://greenkeeper.io/
2016-07-05 12:44:04 -07:00
Tyler Brock
2f2ff377eb Better e-mail adapter testing (#2208) 2016-07-05 12:08:46 -07:00
Greenkeeper
48b33d3889 chore(package): update babel-istanbul to version 0.9.0 (#2172)
https://greenkeeper.io/
2016-07-05 07:45:13 -07:00
Diwakar Cherukumilli
08c63f324a Adds ability to prevent login with unverified emails (#2175) 2016-07-04 13:56:35 -04:00
Andrew Lane
b641712d4d Improve error message for Parse.Error.INCORRECT_TYPE failure condition (#2185) 2016-07-02 06:11:35 -07:00
Steven Shipton
d1cdea00af Expose InMemoryCacheAdapter. Update tests (#2186) 2016-07-02 06:08:13 -07:00
Tyler Brock
d599fdd4fe Changelog 2.2.15 (#2183) 2016-07-01 08:08:51 -07:00
Greenkeeper
04dc2d2233 chore(package): update pg-promise to version 5.0.5 (#2170)
https://greenkeeper.io/
2016-06-29 12:03:01 -07:00
Greenkeeper
d2098d7ee4 chore(package): update pg-promise to version 5.0.4 (#2168)
https://greenkeeper.io/
2016-06-29 12:01:49 -07:00
Andrew Lane
9e725f616b Fix typo in description for Parse.Error.INVALID_QUERY (#2164) 2016-06-28 19:40:25 -07:00
Tyler Brock
799e59618c Stop requiring verifyUserEmails for password reset functionality (#2166) 2016-06-28 22:25:44 -04:00
Greenkeeper
a73f150a1a chore(package): update pg-promise to version 5.0.3 (#2156)
https://greenkeeper.io/
2016-06-27 13:15:55 -07:00
Greenkeeper
a2474fa0f1 chore(package): update ws to version 1.1.1 (#2139)
https://greenkeeper.io/
2016-06-26 22:25:01 -07:00
David Keita
19080ed7e7 #506 fix: Deleting a file does not delete from fs.files (#1758)
* #506 fix: Deleting a file does not delete from fs.files

* test added to check that GridStoreAdapter deleteFile removes from fs.files and fs.chunks
2016-06-27 00:40:43 -04:00
Greenkeeper
b7d15cc37f chore(package): update gaze to version 1.1.0 (#2144)
https://greenkeeper.io/
2016-06-27 00:38:18 -04:00
Vitaly Tomilov
1f2f831cbe Update PostgresStorageAdapter.js (#2094)
this isn't just a simplification, but also fixing a bug: the result of `count(*)` is always returned as a string that needs conversion, not as a number, because it is 64-bit, and all 64-bit numbers are returned as strings. So, the previous `=== 0` would have never worked.
2016-06-26 23:56:01 -04:00
Drew
e4cfe5af24 Kill without validation (#2089)
* remove WithoutValidation from config and push

* remove one use of WithoutValidation

* remove another WithoutValidation

* Kill WithoutValidation and skipValidation
2016-06-26 23:50:40 -04:00
Florent Vilmart
147b493e23 Results invalid session when providing an invalid session token (#2154)
* Results invalid session when providing an invalid session token

* Reverts unsafe loggers

* Fixes failing tests

- The tests were failin when run in sequence as we called done() before the JSSDK had a chance to register the session token, therefore having a proper logout call in afterEach
2016-06-26 23:20:02 -04:00
Hussam Moqhim
a861c4e506 Fix issue #2134: creating an anonymous user (#2155)
* fix issue #2134

* username is returned only when generated

* fix unit tests

* incorporate @flovilmart review
2016-06-26 23:19:37 -04:00
Greenkeeper
2a4fbf7a15 chore(package): update pg-promise to version 5.0.2 (#2151)
https://greenkeeper.io/
2016-06-26 12:26:12 -07:00
Glenn Reyes
98d1ae808a Add postmark email adapter alternative (#2146)
* Add postmark email adapter alternative

* Link postmark adapter to npm package

* Link mandrill adapter to npm package

* List email adapters
2016-06-25 16:14:07 -04:00
Florent Vilmart
c32ed52f04 Changelog 2.2.14 (#2148) 2016-06-25 15:22:06 -04:00
Florent Vilmart
3e413683f7 Makes HTTPResponse serializable (#2143)
* Use the callback body instead of response.body that may not be set

* Adds test to handle undefined responses

* Adds toJSON method to properly serialize HTTPResponse

* Use ES5 defineProperty to make keys enumerable

* removes body key from serialization

* Indent nits
2016-06-25 10:56:02 -07:00
Greenkeeper
35b4c063fb chore(package): update pg-promise to version 4.8.0 (#2129)
https://greenkeeper.io/
2016-06-23 09:25:17 -07:00
Greenkeeper
29ffbabd3d chore(package): update babel-core to version 6.10.4 (#2119)
https://greenkeeper.io/
2016-06-21 18:53:56 -07:00
Greenkeeper
57cecd800c chore(package): update body-parser to version 1.15.2 (#2107)
https://greenkeeper.io/
2016-06-21 12:54:16 -07:00
Greenkeeper
c36ca0c44e chore(package): update pg-promise to version 4.7.5 (#2111)
https://greenkeeper.io/
2016-06-21 10:59:28 -07:00
Nikita Lutsenko
a96b0afac5 Merge pull request #2118 from ParsePlatform/greenkeeper-babel-core-6.9.1
Update babel-core to version 6.9.1 🚀
2016-06-21 10:36:42 -07:00
greenkeeperio-bot
1feedef21d chore(package): update babel-core to version 6.9.1
https://greenkeeper.io/
2016-06-21 09:54:14 -07:00
Drew
006540cda5 Implement pointer types in postgres. (#2086)
* Support pointers in postgres

* implement count

* Fix bug in createClass
2016-06-17 11:09:42 -07:00
Drew
ab06055369 Postgres exclude failing tests (#2081)
* reload the right data

More passing postgres tests

Handle schema updates, and $in for non array columns

remove authdata from user and implement ensureUniqueness

Make some tests work, detect existing classes

Throw proper error for unique index violation

fix findOneAndUpdate

Support more types

support more type

Support boolean, fix _rperm/_wperm, add TODO

Support string types and also simplify tests

Move operator flattening into Parse Server and out of mongo adapters

Move authdata transform for create into Parse Server

Move authdata transforms completely in to Parse Server

Fix test setup

inline addSchema

Inject default schema to response from DB adapter

* Mark tests that don't work in Postgres

* Exclude one more test

* Exclude some more failing tests

* Exclude more tests
2016-06-17 12:59:16 -04:00
Vitaly Tomilov
7da4debbe0 Update PostgresStorageAdapter.js (#2087)
1. Deleting tables in a transaction, as opposed to just a task.
2. Added transaction where it was supposed to be. However, it is not enough, the logic is still broken there...

First, do not use `.catch` before `.then`. It is dangerous without good understanding how it actually works.

Check this out:
```js
        .catch(error => {
          if (error.code === PostgresRelationDoesNotExistError) {
            return this.createClass(className, {fields: {[fieldName]: type}}) // this gets into the following `.then`
          } else if (error.code === PostgresDuplicateColumnError) {
            // Column already exists, created by other request. Carry on to
            // See if it's the right type.
           
// this will get the following `.then` with `undefined` as the value

          } else {
            throw error;
          }
        })
```
2016-06-17 00:04:58 -07:00
Drew
c37a4ea1a1 Incorporate vitaly-t changes (#2085) 2016-06-16 19:34:00 -07:00
Drew
9d078003a6 Pin pg-postgres version (#2084) 2016-06-16 18:44:31 -07:00
Vitaly Tomilov
a685ed8814 Update package.json (#2083)
upgrading pg-promise version.
2016-06-16 18:43:08 -07:00
Drew
0ff35e18f0 Add more postgres support (#2080)
* reload the right data

More passing postgres tests

Handle schema updates, and $in for non array columns

remove authdata from user and implement ensureUniqueness

Make some tests work, detect existing classes

Throw proper error for unique index violation

* fix findOneAndUpdate
2016-06-16 15:39:05 -07:00
Drew
1a75101146 Fix flaky test (#2078)
* Debug flaky test

* create new object instead of modifying and assigning existing object

* use getOneSchema instead of this.data when updating fields

* Remove debug stuff

* Don't try to validate existing fields

* run just one test

* Verbose test all

* Use schema instead of this.data

* Switch to all tests
2016-06-16 15:34:33 -07:00
Greenkeeper
627b4164bb chore(package): update express to version 4.14.0 (#2079)
https://greenkeeper.io/
2016-06-16 10:39:13 -07:00
Fosco Marotto
d1f77a9a98 Merge pull request #2053 from drew-gross/postgres-3
Continue with postgres support
2016-06-16 10:19:07 -07:00
Greenkeeper
35ed09a7b4 chore(package): update redis to version 2.6.2 (#2076)
https://greenkeeper.io/
2016-06-16 08:53:30 -07:00