Skip to content

Commit

Permalink
Revert "chore: test e2e patch"
Browse files Browse the repository at this point in the history
This reverts commit 13df68d.
  • Loading branch information
matyax committed Jul 23, 2024
1 parent 13df68d commit 7795455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
8 changes: 1 addition & 7 deletions src/services/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ export const VAR_LOGS_FORMAT = 'logsFormat';
export const VAR_LOGS_FORMAT_EXPR = '${logsFormat}';
export const VAR_LINE_FILTER = 'lineFilter';
export const VAR_LINE_FILTER_EXPR = '${lineFilter}';
let STREAM_SELECTOR_EXPR = `${VAR_LABELS_EXPR} ${VAR_PATTERNS_EXPR} ${VAR_LOGS_FORMAT_EXPR} ${VAR_LEVELS_EXPR} ${VAR_FIELDS_EXPR} ${VAR_LINE_FILTER_EXPR}`;
// @TODO: patch for e2e tests. Remove when Grafana 11.1+ is released.
// @ts-expect-error
if (typeof E2E_ENV !== 'undefined') {
STREAM_SELECTOR_EXPR = `${VAR_LABELS_EXPR} ${VAR_PATTERNS_EXPR} ${VAR_LOGS_FORMAT_EXPR} ${VAR_FIELDS_EXPR} ${VAR_LINE_FILTER_EXPR}`;
}
export const LOG_STREAM_SELECTOR_EXPR = STREAM_SELECTOR_EXPR;
export const LOG_STREAM_SELECTOR_EXPR = `${VAR_LABELS_EXPR} ${VAR_PATTERNS_EXPR} ${VAR_LOGS_FORMAT_EXPR} ${VAR_LEVELS_EXPR} ${VAR_FIELDS_EXPR} ${VAR_LINE_FILTER_EXPR}`;
export const LOG_VOLUME_STREAM_SELECTOR_EXPR = `${VAR_LABELS_EXPR} ${VAR_PATTERNS_EXPR} ${VAR_LOGS_FORMAT_EXPR} ${VAR_FIELDS_EXPR} ${VAR_LINE_FILTER_EXPR}`;
export const EXPLORATION_DS = { uid: VAR_DATASOURCE_EXPR };
export const ALL_VARIABLE_VALUE = '$__all';
Expand Down
7 changes: 1 addition & 6 deletions webpack.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Configuration, DefinePlugin } from 'webpack';
import type { Configuration } from 'webpack';
import { merge } from 'webpack-merge';
import grafanaConfig from './.config/webpack/webpack.config';

Expand All @@ -9,11 +9,6 @@ const config = async (env): Promise<Configuration> => {
// Required to load WASM modules.
asyncWebAssembly: true,
},
plugins: [
new DefinePlugin({
E2E_ENV: JSON.stringify(process.env.CI && process.env.NODE_ENV !== 'production'),
}),
]
});
};

Expand Down

0 comments on commit 7795455

Please sign in to comment.