Store plugin ID
Summary: We need the build ID from GraphQL to fetch the download VPN off-VPN. Changelog: Plugin Marketplace now stores a unique ID per build Reviewed By: LukeDefeo Differential Revision: D51525419 fbshipit-source-id: d6740b3c4724d15cc996155b6e7581b0f16a9da6
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ce5527513e
commit
a9c5dd746a
@@ -82,6 +82,7 @@ export type ActivatablePluginDetails = InstalledPluginDetails;
|
|||||||
// Describes plugin available for downloading. Until downloaded to the disk it is not available for activation in Flipper.
|
// Describes plugin available for downloading. Until downloaded to the disk it is not available for activation in Flipper.
|
||||||
export interface DownloadablePluginDetails extends ConcretePluginDetails {
|
export interface DownloadablePluginDetails extends ConcretePluginDetails {
|
||||||
isActivatable: false;
|
isActivatable: false;
|
||||||
|
buildId: string;
|
||||||
downloadUrl: string;
|
downloadUrl: string;
|
||||||
lastUpdated: Date;
|
lastUpdated: Date;
|
||||||
// Indicates whether plugin should be enabled by default for new users
|
// Indicates whether plugin should be enabled by default for new users
|
||||||
|
|||||||
@@ -24,8 +24,17 @@ export function createMockDownloadablePluginDetails(
|
|||||||
lastUpdated?: Date;
|
lastUpdated?: Date;
|
||||||
} = {},
|
} = {},
|
||||||
): DownloadablePluginDetails {
|
): DownloadablePluginDetails {
|
||||||
const {id, version, title, flipperEngineVersion, gatekeeper, lastUpdated} = {
|
const {
|
||||||
|
id,
|
||||||
|
buildId,
|
||||||
|
version,
|
||||||
|
title,
|
||||||
|
flipperEngineVersion,
|
||||||
|
gatekeeper,
|
||||||
|
lastUpdated,
|
||||||
|
} = {
|
||||||
id: 'test',
|
id: 'test',
|
||||||
|
buildId: '1337',
|
||||||
version: '3.0.1',
|
version: '3.0.1',
|
||||||
flipperEngineVersion: '0.46.0',
|
flipperEngineVersion: '0.46.0',
|
||||||
lastUpdated: new Date(1591226525 * 1000),
|
lastUpdated: new Date(1591226525 * 1000),
|
||||||
@@ -36,6 +45,7 @@ export function createMockDownloadablePluginDetails(
|
|||||||
const details: DownloadablePluginDetails = {
|
const details: DownloadablePluginDetails = {
|
||||||
name: name || `flipper-plugin-${lowercasedID}`,
|
name: name || `flipper-plugin-${lowercasedID}`,
|
||||||
id: id,
|
id: id,
|
||||||
|
buildId,
|
||||||
bugs: {
|
bugs: {
|
||||||
email: 'bugs@localhost',
|
email: 'bugs@localhost',
|
||||||
url: 'bugs.localhost',
|
url: 'bugs.localhost',
|
||||||
|
|||||||
Reference in New Issue
Block a user