Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

visState title is always "New Visualization" instead of actual title #5901

Closed
LeeDr opened this issue Jan 13, 2016 · 4 comments
Closed

visState title is always "New Visualization" instead of actual title #5901

LeeDr opened this issue Jan 13, 2016 · 4 comments
Labels
bug Fixes for quality problems that affect the customer experience

Comments

@LeeDr
Copy link

LeeDr commented Jan 13, 2016

Version 4.4.0-snapshot
Build 9684
Commit SHA 57ca6dc

  1. Create a new visualization
  2. save it with any unique name
  3. go to Settings > Objects and export the new visualization
  4. open the exported JSON file
  5. In the JSON below you see the "title" is "New Line Chart", but in visState the title is "New Visualization"

This is a regression from Kibana 4.3.1. But I don't know what that visState title is used for so I'm not sure of the priority of this issue.

[
  {
    "_id": "New-Line-Chart",
    "_type": "visualization",
    "_source": {
      "title": "New Line Chart",
      "visState": "{\"title\":\"New Visualization\",\"type\":\"line\",\"params\":{\"shareYAxis\":true,\"addTooltip\":true,\"addLegend\":true,\"showCircles\":true,\"smoothLines\":false,\"interpolate\":\"linear\",\"scale\":\"linear\",\"drawLinesBetweenPoints\":true,\"radiusRatio\":9,\"times\":[],\"addTimeMarker\":false,\"defaultYExtents\":false,\"setYExtents\":false,\"yAxis\":{}},\"aggs\":[{\"id\":\"1\",\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"@timestamp\",\"interval\":\"auto\",\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{}}}],\"listeners\":{}}",
      "uiStateJSON": "{}",
      "description": "",
      "version": 1,
      "kibanaSavedObjectMeta": {
        "searchSourceJSON": "{\"index\":\"logstash-*\",\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}},\"filter\":[]}"
      }
    }
  }
]
@LeeDr LeeDr added the bug Fixes for quality problems that affect the customer experience label Jan 13, 2016
@LeeDr
Copy link
Author

LeeDr commented Jan 13, 2016

I just retested in 4.3.1 and it's not saving title in visState at all. I think it was an upgrade case from 4.3.1 to 4.4.0 where I saw the visState.title matching the title. I'll try to go through the upgrade again.

@LeeDr
Copy link
Author

LeeDr commented Jan 13, 2016

If I import a visualization JSON that was created in 4.3.1 (and doesn't have visState.title) into 4.4.0, then when I export it again it has the visState.title matching the title (see below). I don't know if it got the visState.title added during import or export.

But if I create a new visualization in 4.4.0 it gets a visState.title "New Visualization". And import/export doesn't change that.

[
  {
    "_id": "Pie-created-in-4.3.1",
    "_type": "visualization",
    "_source": {
      "title": "Pie created in 4.3.1",
      "visState": "{\"type\":\"pie\",\"params\":{\"shareYAxis\":true,\"addTooltip\":true,\"addLegend\":true,\"isDonut\":false},\"aggs\":[{\"id\":\"1\",\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"type\":\"terms\",\"schema\":\"segment\",\"params\":{\"field\":\"extension\",\"size\":5,\"order\":\"desc\",\"orderBy\":\"1\"}}],\"listeners\":{},\"title\":\"Pie created in 4.3.1\"}",
      "uiStateJSON": "{}",
      "description": "",
      "version": 1,
      "kibanaSavedObjectMeta": {
        "searchSourceJSON": "{\"index\":\"logstash-*\",\"query\":{\"query_string\":{\"query\":\"*\",\"analyze_wildcard\":true}},\"filter\":[]}"
      }
    }
  }
]

@panda01
Copy link
Contributor

panda01 commented May 11, 2016

This doesn't appear to be an issue anymore.

@panda01
Copy link
Contributor

panda01 commented May 11, 2016

On Master!
titlearound

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience
Projects
None yet
Development

No branches or pull requests

3 participants