Skip to content

Commit

Permalink
- Update _template completion to work even when the index does not ex…
Browse files Browse the repository at this point in the history
…ist (#51592) (#51604)

- Update _template body completions
  • Loading branch information
jloleysens authored Nov 26, 2019
1 parent 37ec487 commit 7d9c0bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { ListComponent } from './list_component';

export class TemplateAutocompleteComponent extends ListComponent {
constructor(name, parent) {
super(name, mappings.getTemplates, parent);
super(name, mappings.getTemplates, parent, true, true);
}
getContextKey() {
return 'template';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"indices.put_template": {
"data_autocomplete_rules": {
"template": "index*",
"warmers": { "__scope_link": "_warmer" },
"index_patterns": [],
"mappings": { "__scope_link": "put_mapping" },
"settings": { "__scope_link": "put_settings" }
"settings": { "__scope_link": "put_settings" },
"version": 0,
"order": 0,
"aliases": {
"__template": {
"NAME": {}
}
}
},
"patterns": [
"_template/{template}"
Expand Down

0 comments on commit 7d9c0bc

Please sign in to comment.