Plugin Marketplace state refresh and cache
Summary: Separate dispatcher for periodic refreshing available plugins data from the Marketplace backend and caching it locally. The plugin auto update downloader subscribes to these state refreshes and automatically schedules plugin update downloads when required. Reviewed By: passy Differential Revision: D25360897 fbshipit-source-id: 5b6d95b63ff47b8ae9ad8b12e2480d1fed524ca5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5b26f36672
commit
f3e1a48ff3
@@ -766,6 +766,7 @@ test('test determinePluginsToProcess for mutilple clients having plugins present
|
||||
disabledPlugins: [],
|
||||
failedPlugins: [],
|
||||
selectedPlugins: ['TestPlugin'],
|
||||
marketplacePlugins: [],
|
||||
};
|
||||
const op = determinePluginsToProcess(
|
||||
[client1, client2, client3],
|
||||
@@ -831,6 +832,7 @@ test('test determinePluginsToProcess for no selected plugin present in any clien
|
||||
disabledPlugins: [],
|
||||
failedPlugins: [],
|
||||
selectedPlugins: ['RandomPlugin'],
|
||||
marketplacePlugins: [],
|
||||
};
|
||||
const op = determinePluginsToProcess([client1, client2], device1, plugins);
|
||||
expect(op).toBeDefined();
|
||||
@@ -874,6 +876,7 @@ test('test determinePluginsToProcess for multiple clients on same device', async
|
||||
disabledPlugins: [],
|
||||
failedPlugins: [],
|
||||
selectedPlugins: ['TestPlugin'],
|
||||
marketplacePlugins: [],
|
||||
};
|
||||
const op = determinePluginsToProcess([client1, client2], device1, plugins);
|
||||
expect(op).toBeDefined();
|
||||
@@ -955,6 +958,7 @@ test('test determinePluginsToProcess for multiple clients on different device',
|
||||
disabledPlugins: [],
|
||||
failedPlugins: [],
|
||||
selectedPlugins: ['TestPlugin'],
|
||||
marketplacePlugins: [],
|
||||
};
|
||||
const op = determinePluginsToProcess(
|
||||
[client1Device1, client2Device1, client1Device2, client2Device2],
|
||||
@@ -1033,6 +1037,7 @@ test('test determinePluginsToProcess to ignore archived clients', async () => {
|
||||
disabledPlugins: [],
|
||||
failedPlugins: [],
|
||||
selectedPlugins: ['TestPlugin'],
|
||||
marketplacePlugins: [],
|
||||
};
|
||||
const op = determinePluginsToProcess(
|
||||
[client, archivedClient],
|
||||
|
||||
Reference in New Issue
Block a user