Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmendsenProject
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shaik Janipasha
AmendsenProject
Commits
81305061
Unverified
Commit
81305061
authored
Apr 10, 2020
by
Tao Feng
Committed by
GitHub
Apr 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change default ES dashboard search query (#239)
parent
8cc4e6b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
neo4j_search_data_extractor.py
databuilder/extractor/neo4j_search_data_extractor.py
+2
-2
setup.py
setup.py
+1
-1
No files found.
databuilder/extractor/neo4j_search_data_extractor.py
View file @
81305061
...
@@ -82,9 +82,9 @@ class Neo4jSearchDataExtractor(Extractor):
...
@@ -82,9 +82,9 @@ class Neo4jSearchDataExtractor(Extractor):
OPTIONAL MATCH (db)-[read:READ_BY]->(user:User)
OPTIONAL MATCH (db)-[read:READ_BY]->(user:User)
OPTIONAL MATCH (db)-[:HAS_QUERY]->(query:Query)
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
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(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,
db.dashboard_url as url, db.key as uri,
'mode' as product, last_exec.timestamp as last_successful_run_timestamp,
'mode' as product, last_exec.timestamp as last_successful_run_timestamp,
COLLECT(DISTINCT query.name) as query_names,
COLLECT(DISTINCT query.name) as query_names,
...
...
setup.py
View file @
81305061
...
@@ -2,7 +2,7 @@ import os
...
@@ -2,7 +2,7 @@ import os
from
setuptools
import
setup
,
find_packages
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'
)
requirements_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'requirements.txt'
)
with
open
(
requirements_path
)
as
requirements_file
:
with
open
(
requirements_path
)
as
requirements_file
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment