Skip to content

saved object tagging phase 1 #16484

@nreese

Description

@nreese

Create a new saved object type for storing tags

{
  "type": "tag",
  "updated_at": "2017-11-01T11:29:45.060Z",
  "tag": {
     "name": <string containing tag name that is displayed in tag pill, limited to 50 characters (like github)>,
     "color": <hex string - tag pill color>
   }
}

New kibana tag API

We will not be storing tag counts in the tag saved object. The tag counts will be generated on the fly by querying all saved objects, building a snapshot of counts, and adding the generated counts with the tag saved object results . This will avoid all the complexities of managing tag counts during saved object writes.

  • get
    • query string parameter to include counts
  • delete - delete tag saved object, remove tag from all other other saved objects

Saved object API updates

  • add tag to saved object (saved search, visualization, dashboard)
  • delete tag from saved object
  • Update read to translate tag ids to tag names?

Manage tags on visualizations, saved-searches, and dashboards

  • Tag management is done in save UI
  • Ability to create new tags in save UI.
  • Link to tag CRUD GUI for deleting/editing tags.

Use tags to filter visualizations, saved-searches, and dashboards lists

  • dashboard list view
  • dashboard add panels view
  • visualize list view
  • saved search list view
  • index pattern

Questions

  • Where should tags live in saved objects? Should tags live at the top level or should they live inside each saved object type?
  • Where will tag ids get converted to tag name? Where should tag joining be done? In the saved object API? On the client?
  • Where should tag CRUD GUI live? Should this be placed under management? Is this just going to be a pop-out?
  • Tag colors: Should any color be allowed? Should there just be a static list of colors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions