Skip to content

Commit

Permalink
Change default ES dashboard search query (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
feng-tao authored Apr 10, 2020
1 parent 8cc4e6b commit 8130506
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions databuilder/extractor/neo4j_search_data_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ class Neo4jSearchDataExtractor(Extractor):
OPTIONAL MATCH (db)-[read:READ_BY]->(user:User)
OPTIONAL MATCH (db)-[:HAS_QUERY]->(query:Query)
with db, dbg, db_descr, dbg_descr, cluster, last_exec, query, SUM(read.read_count) AS total_usage
return dbg.name as dashboard_group, db.name as dashboard_name, cluster.name as cluster,
return dbg.name as group_name, db.name as name, cluster.name as cluster,
coalesce(db_descr.description, '') as description,
coalesce(dbg.description, '') as dashboard_group_description, dbg.dashboard_group_url as group_url,
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, last_exec.timestamp as last_successful_run_timestamp,
COLLECT(DISTINCT query.name) as query_names,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages


__version__ = '2.5.2'
__version__ = '2.5.3'

requirements_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'requirements.txt')
with open(requirements_path) as requirements_file:
Expand Down

0 comments on commit 8130506

Please sign in to comment.