Remove Flipper logs export menu
Summary: Design doc: https://docs.google.com/document/d/1HLCFl46RfqG0o1mSt8SWrwf_HMfOCRg_oENioc1rkvQ/edit# We have a universal export now. Why would we ask for logs only? Reviewed By: passy Differential Revision: D40553127 fbshipit-source-id: 674482e39746e789d70bf800daa5f021d83bb093
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2289d6c0e2
commit
14bdc87b11
@@ -72,7 +72,6 @@ import {
|
||||
showOpenDialog,
|
||||
startFileExport,
|
||||
startLinkExport,
|
||||
startFlipperLogsExport,
|
||||
ExportEverythingEverywhereAllAtOnceStatus,
|
||||
} from '../utils/exportData';
|
||||
import {openDeeplinkDialog} from '../deeplink';
|
||||
@@ -238,11 +237,6 @@ function ExtrasMenu() {
|
||||
() => startFileExport(store.dispatch),
|
||||
[store.dispatch],
|
||||
);
|
||||
const startLogsExportTracked = useTrackedCallback(
|
||||
'Logs export',
|
||||
startFlipperLogsExport,
|
||||
[],
|
||||
);
|
||||
const startLinkExportTracked = useTrackedCallback(
|
||||
'Link export',
|
||||
() => startLinkExport(store.dispatch),
|
||||
@@ -278,11 +272,6 @@ function ExtrasMenu() {
|
||||
key="extras"
|
||||
title={<LeftRailButton icon={<SettingOutlined />} small />}
|
||||
className={submenu}>
|
||||
{canFileExport() ? (
|
||||
<Menu.Item key="exportLogs" onClick={startLogsExportTracked}>
|
||||
Export Flipper logs
|
||||
</Menu.Item>
|
||||
) : null}
|
||||
{canOpenDialog() ? (
|
||||
<Menu.Item key="importFlipperFile" onClick={startImportTracked}>
|
||||
Import Flipper file
|
||||
|
||||
@@ -613,13 +613,6 @@ export function canFileExport() {
|
||||
return !!getRenderHostInstance().showSaveDialog;
|
||||
}
|
||||
|
||||
export async function startFlipperLogsExport() {
|
||||
const serializedLogs = exportLogs
|
||||
.map((item) => JSON.stringify(item))
|
||||
.join('\n');
|
||||
await getRenderHostInstance().exportFile?.(serializedLogs);
|
||||
}
|
||||
|
||||
async function startDeviceFlipperFolderExport() {
|
||||
return await getRenderHostInstance().flipperServer.exec(
|
||||
{timeout: 3 * 60 * 1000},
|
||||
|
||||
Reference in New Issue
Block a user