mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 12:53:58 +00:00
temporatily disable MognoDB profiler support
This commit is contained in:
@@ -81,6 +81,7 @@
|
|||||||
import ConfirmModal from '../modals/ConfirmModal.svelte';
|
import ConfirmModal from '../modals/ConfirmModal.svelte';
|
||||||
import { apiCall } from '../utility/api';
|
import { apiCall } from '../utility/api';
|
||||||
import { openImportExportTab } from '../utility/importExportTools';
|
import { openImportExportTab } from '../utility/importExportTools';
|
||||||
|
import { isProApp } from '../utility/proTools';
|
||||||
|
|
||||||
export let data;
|
export let data;
|
||||||
$: isZipped = data.folderName?.endsWith('.zip');
|
$: isZipped = data.folderName?.endsWith('.zip');
|
||||||
@@ -187,6 +188,7 @@
|
|||||||
data.fileType.endsWith('.sql') && { text: 'Open SQL', onClick: handleOpenSqlFile },
|
data.fileType.endsWith('.sql') && { text: 'Open SQL', onClick: handleOpenSqlFile },
|
||||||
data.fileType.endsWith('.yaml') && { text: 'Open YAML', onClick: handleOpenYamlFile },
|
data.fileType.endsWith('.yaml') && { text: 'Open YAML', onClick: handleOpenYamlFile },
|
||||||
!isZipped &&
|
!isZipped &&
|
||||||
|
isProApp() &&
|
||||||
data.fileType == 'jsonl' && {
|
data.fileType == 'jsonl' && {
|
||||||
text: 'Open in profiler',
|
text: 'Open in profiler',
|
||||||
submenu: getExtensions()
|
submenu: getExtensions()
|
||||||
|
|||||||
@@ -430,6 +430,7 @@ await dbgateApi.executeQuery(${JSON.stringify(
|
|||||||
driver?.databaseEngineTypes?.includes('sql') &&
|
driver?.databaseEngineTypes?.includes('sql') &&
|
||||||
hasPermission(`dbops/sql-generator`) && { onClick: handleSqlGenerator, text: 'SQL Generator' },
|
hasPermission(`dbops/sql-generator`) && { onClick: handleSqlGenerator, text: 'SQL Generator' },
|
||||||
driver?.supportsDatabaseProfiler &&
|
driver?.supportsDatabaseProfiler &&
|
||||||
|
isProApp() &&
|
||||||
hasPermission(`dbops/profiler`) && { onClick: handleDatabaseProfiler, text: 'Database profiler' },
|
hasPermission(`dbops/profiler`) && { onClick: handleDatabaseProfiler, text: 'Database profiler' },
|
||||||
// isSqlOrDoc &&
|
// isSqlOrDoc &&
|
||||||
// isSqlOrDoc &&
|
// isSqlOrDoc &&
|
||||||
|
|||||||
@@ -42,7 +42,8 @@ const driver = {
|
|||||||
defaultPort: 27017,
|
defaultPort: 27017,
|
||||||
supportsDatabaseUrl: true,
|
supportsDatabaseUrl: true,
|
||||||
supportsServerSummary: true,
|
supportsServerSummary: true,
|
||||||
supportsDatabaseProfiler: true,
|
// temporatily disable MongoDB profiler support
|
||||||
|
supportsDatabaseProfiler: false,
|
||||||
profilerFormatterFunction: 'formatProfilerEntry@dbgate-plugin-mongo',
|
profilerFormatterFunction: 'formatProfilerEntry@dbgate-plugin-mongo',
|
||||||
profilerTimestampFunction: 'extractProfileTimestamp@dbgate-plugin-mongo',
|
profilerTimestampFunction: 'extractProfileTimestamp@dbgate-plugin-mongo',
|
||||||
profilerChartAggregateFunction: 'aggregateProfileChartEntry@dbgate-plugin-mongo',
|
profilerChartAggregateFunction: 'aggregateProfileChartEntry@dbgate-plugin-mongo',
|
||||||
|
|||||||
Reference in New Issue
Block a user