Send actual dashboard product (rather than hardcoded mode) to ES
@@ -79,7 +79,6 @@ class Neo4jSearchDataExtractor(Extractor):
"""
)
- # todo: 1. change mode to generic once add more support for dashboard
DEFAULT_NEO4J_DASHBOARD_CYPHER_QUERY = textwrap.dedent(
"""
MATCH (db:Dashboard)
@@ -96,7 +95,7 @@ class Neo4jSearchDataExtractor(Extractor):
coalesce(db_descr.description, '') as description,
coalesce(dbg.description, '') as group_description, dbg.dashboard_group_url as group_url,
db.dashboard_url as url, db.key as uri,
- 'mode' as product, toInt(last_exec.timestamp) as last_successful_run_timestamp,
+ split(db.key, '_')[0] as product, toInt(last_exec.timestamp) as last_successful_run_timestamp,
COLLECT(DISTINCT query.name) as query_names,
total_usage
order by dbg.name
