apache-superset/superset-roadmap

[Explore]search metrics and columns by properties in data panel

Closed this issue · 0 comments

Allow users to search column and metrics by their properties, in data panel search bar, rank by below order.

  • Column name
  • Description
  • Info
  • Verbose_name

Screen Shot 2021-01-14 at 8 38 33 AM

Ranking rules

  • CASE SENSITIVE EQUALS: Case-sensitive equality trumps all. These will be first. (ex. France would match France, but not france)
  • EQUALS: Case-insensitive equality (ex. France would match france)
  • STARTS WITH: If the item starts with the given value (ex. Sou would match South Korea or South Africa)
  • WORD STARTS WITH: If the item has multiple words, then if one of those words starts with the given value (ex. Repub would match Dominican Republic)
  • CONTAINS: If the item contains the given value (ex. ham would match Bahamas)
  • ACRONYM: If the item's acronym is the given value (ex. us would match United States)
  • SIMPLE MATCH: If the item has letters in the same order as the letters of the given value (ex. iw would match Zimbabwe, but not Kuwait because it must be in the same order). Furthermore, if the item is a closer match, it will rank higher (ex. ua matches Uruguay more closely than United States of America, therefore Uruguay will be ordered before United States of America)