mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Do not expose angular search components (#50562)
This commit is contained in:
parent
bd35e6917a
commit
5af04cf81d
@ -21,7 +21,6 @@ import PageHeader from '../core/components/PageHeader/PageHeader';
|
|||||||
import { MetricSelect } from '../core/components/Select/MetricSelect';
|
import { MetricSelect } from '../core/components/Select/MetricSelect';
|
||||||
import { TagFilter } from '../core/components/TagFilter/TagFilter';
|
import { TagFilter } from '../core/components/TagFilter/TagFilter';
|
||||||
import { HelpModal } from '../core/components/help/HelpModal';
|
import { HelpModal } from '../core/components/help/HelpModal';
|
||||||
import { SearchField, SearchResults, SearchResultsFilter } from '../features/search';
|
|
||||||
|
|
||||||
const { SecretFormField } = LegacyForms;
|
const { SecretFormField } = LegacyForms;
|
||||||
|
|
||||||
@ -49,35 +48,6 @@ export function registerAngularDirectives() {
|
|||||||
'infoBox',
|
'infoBox',
|
||||||
'infoBoxTitle',
|
'infoBoxTitle',
|
||||||
]);
|
]);
|
||||||
//Search
|
|
||||||
react2AngularDirective('searchField', SearchField, [
|
|
||||||
'query',
|
|
||||||
'autoFocus',
|
|
||||||
['onChange', { watchDepth: 'reference' }],
|
|
||||||
['onKeyDown', { watchDepth: 'reference' }],
|
|
||||||
]);
|
|
||||||
react2AngularDirective('searchResults', SearchResults, [
|
|
||||||
'results',
|
|
||||||
'editable',
|
|
||||||
'selectors',
|
|
||||||
['onSelectionChanged', { watchDepth: 'reference' }],
|
|
||||||
['onTagSelected', { watchDepth: 'reference' }],
|
|
||||||
['onFolderExpanding', { watchDepth: 'reference' }],
|
|
||||||
['onToggleSelection', { watchDepth: 'reference' }],
|
|
||||||
]);
|
|
||||||
react2AngularDirective('searchFilters', SearchResultsFilter, [
|
|
||||||
'allChecked',
|
|
||||||
'canMove',
|
|
||||||
'canDelete',
|
|
||||||
'tagFilterOptions',
|
|
||||||
'selectedStarredFilter',
|
|
||||||
'selectedTagFilter',
|
|
||||||
['onSelectAllChanged', { watchDepth: 'reference' }],
|
|
||||||
['deleteItem', { watchDepth: 'reference' }],
|
|
||||||
['moveTo', { watchDepth: 'reference' }],
|
|
||||||
['onStarredFilterChange', { watchDepth: 'reference' }],
|
|
||||||
['onTagFilterChange', { watchDepth: 'reference' }],
|
|
||||||
]);
|
|
||||||
react2AngularDirective('tagFilter', TagFilter, [
|
react2AngularDirective('tagFilter', TagFilter, [
|
||||||
'tags',
|
'tags',
|
||||||
['onChange', { watchDepth: 'reference' }],
|
['onChange', { watchDepth: 'reference' }],
|
||||||
|
@ -85,13 +85,6 @@ export class GrafanaDatasource extends DataSourceWithBackend<GrafanaQuery> {
|
|||||||
let channel = templateSrv.replace(target.channel, request.scopedVars);
|
let channel = templateSrv.replace(target.channel, request.scopedVars);
|
||||||
const { filter } = target;
|
const { filter } = target;
|
||||||
|
|
||||||
// Help migrate pre-release channel paths saved in dashboards
|
|
||||||
// NOTE: this should be removed before V8 is released
|
|
||||||
if (channel && channel.startsWith('telegraf/')) {
|
|
||||||
channel = 'stream/' + channel;
|
|
||||||
target.channel = channel; // mutate the current query object so it is saved with `stream/` prefix
|
|
||||||
}
|
|
||||||
|
|
||||||
const addr = parseLiveChannelAddress(channel);
|
const addr = parseLiveChannelAddress(channel);
|
||||||
if (!isValidLiveChannelAddress(addr)) {
|
if (!isValidLiveChannelAddress(addr)) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user