mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 13:30:24 +08:00
Annotations: Add typeahead support for tags in builtin annotations (#36377)
* Annotations: create React component, naive attempt at hooking together * Annotations: Use query object instead of passing annotation * Annotations: Hook up the new api to get annotation tags * Annotations: Use InlineFieldRow instead of gf-form-inline * Annotations: Use InlineSwitch instead of gf-form-switch * TagFilter: Add support for allowCustomValue * Annotations: Update to match backend api * Annotations: Add basic tests, expose inputId on `TagFilter` * Annotations: Fix test name and reorder tests slightly * Annotations: Use FieldSet instead of gf-form-group * Refactor: fixes annotation queries * Annotations: Everything working, just types to fix... * Annotations: Fix types? * Revert "Annotations: Fix types?" This reverts commit 6df0cae0c9eadfb08ee15a86bd69fa7d562f9f19. * Annotations: Fix types again? * Annotations: Remove old angular code * Annotations: Fix unit tests for AnnotationQueryEditor * Annotations: Check if it's an annotation query immediately * Annotations: Prevent TagFilter overflowing container when there are a large number of tags * Change to new form styles * Annotations: Add id's + fix unit tests * Updated wording * Annotations: Allow custom value to preserve being able to use template variables Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com> Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
@ -175,10 +175,12 @@ export default class StandardAnnotationQueryEditor extends PureComponent<Props,
|
||||
data={response?.panelData}
|
||||
range={getTimeSrv().timeRange()}
|
||||
/>
|
||||
{this.renderStatus()}
|
||||
|
||||
<AnnotationFieldMapper response={response} mappings={annotation.mappings} change={this.onMappingChange} />
|
||||
<br />
|
||||
{datasource.type !== 'datasource' && (
|
||||
<>
|
||||
{this.renderStatus()}
|
||||
<AnnotationFieldMapper response={response} mappings={annotation.mappings} change={this.onMappingChange} />
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user