Skip to content

Commit 471ee06

Browse files
committed
cleanup old code
1 parent 494acbe commit 471ee06

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const defaultQuery: Partial<CmkQuery> = {
6060
};
6161

6262
export type Edition = 'CEE' | 'RAW';
63-
export type Backend = 'web' | 'rest';
63+
export type Backend = 'rest';
6464

6565
export interface DataSourceOptions extends DataSourceJsonData {
6666
url?: string;

src/ui/QueryEditor.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ export const QueryEditor = (props: Props): React.JSX.Element => {
7676
let params = {};
7777
if (datasource.getEdition() === 'RAW') {
7878
ident = qGraphType === 'single_metric' ? 'monitored_metrics' : 'available_graphs';
79-
params = { strict: 'with_source' };
80-
// 2.1.0 changed { strict: 'with_source' } to:
81-
// strict: true,
82-
// show_independent_of_context: false,
83-
// but the defaults for missing values seem to be in our favour.
79+
params = { strict: true, show_independent_of_context: false };
8480
} else {
8581
ident = 'combined_graphs';
8682
params = {

0 commit comments

Comments
 (0)