cars10/elasticvue

[BUG] - Elasticvue doesn't show all templates

Closed this issue · 3 comments

Description

I have a few templates on my cluster. I can see them by calling _index_templates API directly, but the app doesn't show them. I tried it on a new single-node cluster on my local machine, and the result was the same.

Steps To Reproduce
List the steps to reproduce your problem:

  1. Run Elastic Search locally using docker.
  2. Put an _index_template. For example I tried this:
curl -X PUT -H 'Content-Type: application/json' 'localhost:9200/_index_template/bugreport_test1' -d '{
  "index_patterns": ["bug_test_*"],
    "template": {
      "settings": {
        "number_of_shards": 1
      },
     "mappings": {
      "properties": {
        "date": {
          "format": "yyyy-MM-dd",
          "type": "date"
        }
      }
    }
  }
}'
  1. Open Elasticvue and go to the Index Templates. The template is not there.

I tried disconnecting and re-connecting, and resetting the app. But templates didn't appear.

Screenshots

Screenshot_20240625_133032
Screenshot_20240625_132948

Environment (please include the following information):

  • Elasticsearch version: 8.14.1
  • Operating system: Ubuntu 24.04
  • Browser + version:
  • Elasticvue version: 1.0.8-stable
  • How are you running elasticvue? (docker, browser extension, web app): Linux AppImage

The API you are referring to is the legacy API. It seems like your templates are not migrated yet, see the info box at the top here: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-template-v1.html

This is also a duplicate of #170

Hi @cars10,
Thanks for looking into this!

I'm using the new API. The legacy API is /_template/, but as you see in the curl command and the screenshot, I'm using the new _index_template API.

I installed the Firefox Addon, and I can see that it's calling the legacy URI.

Please let me know if I can collect any info about this issue that helps you identify it.

Screenshot_20240702_084831