Live query CLP (#4387)
* Auth module refactoring in order to be reusable * Ensure cache controller is properly forwarded from helpers * Nits * Adds support for static validation * Adds support for CLP in Live query (no support for roles yet) * Adds e2e test to validate liveQuery hooks is properly called * Adds tests over LiveQueryController to ensure data is correctly transmitted * nits * Fixes for flow types * Removes usage of Parse.Promise * Use the Auth module for authentication and caches * Cleaner implementation of getting auth * Adds authCache that stores auth promises * Proper testing of the caching * nits
This commit is contained in:
@@ -144,19 +144,22 @@ const reconfigureServer = changedConfiguration => {
|
||||
});
|
||||
}
|
||||
try {
|
||||
let parseServer = undefined;
|
||||
const newConfiguration = Object.assign(
|
||||
{},
|
||||
defaultConfiguration,
|
||||
changedConfiguration,
|
||||
{
|
||||
__indexBuildCompletionCallbackForTests: indexBuildPromise =>
|
||||
indexBuildPromise.then(resolve, reject),
|
||||
indexBuildPromise.then(() => {
|
||||
resolve(parseServer);
|
||||
}, reject),
|
||||
mountPath: '/1',
|
||||
port,
|
||||
}
|
||||
);
|
||||
cache.clear();
|
||||
const parseServer = ParseServer.start(newConfiguration);
|
||||
parseServer = ParseServer.start(newConfiguration);
|
||||
parseServer.app.use(require('./testing-routes').router);
|
||||
parseServer.expressApp.use('/1', err => {
|
||||
console.error(err);
|
||||
|
||||
Reference in New Issue
Block a user