-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: async imports from frontend in LOCAL
mode
#106
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClemDoum
changed the title
feature: async imports
feature: async imports from frontend in Oct 11, 2023
LOCAL
mode
ClemDoum
force-pushed
the
feature/task-creation-in-java
branch
from
October 11, 2023 11:14
bfa7d1b
to
abc7395
Compare
ClemDoum
force-pushed
the
feature/graph-import
branch
2 times, most recently
from
October 12, 2023 10:12
e49691b
to
93283e9
Compare
ClemDoum
force-pushed
the
feature/task-creation-in-java
branch
from
October 17, 2023 11:04
abc7395
to
7095123
Compare
ClemDoum
force-pushed
the
feature/graph-import
branch
from
October 17, 2023 12:10
379c664
to
91e3b8c
Compare
ClemDoum
force-pushed
the
feature/task-creation-in-java
branch
2 times, most recently
from
October 17, 2023 15:16
ac79b72
to
9eeed1f
Compare
ClemDoum
force-pushed
the
feature/graph-import
branch
2 times, most recently
from
October 18, 2023 12:00
e934960
to
f2497a3
Compare
ClemDoum
force-pushed
the
feature/task-creation-in-java
branch
2 times, most recently
from
October 19, 2023 15:00
aa5338f
to
d230d9f
Compare
ClemDoum
force-pushed
the
feature/graph-import
branch
from
October 19, 2023 15:08
492e6e3
to
627d2a2
Compare
ClemDoum
force-pushed
the
feature/task-creation-in-java
branch
from
October 20, 2023 14:23
d230d9f
to
f7adb3f
Compare
ClemDoum
force-pushed
the
feature/graph-import
branch
4 times, most recently
from
October 23, 2023 16:13
365601e
to
4632ec9
Compare
This was referenced Oct 25, 2023
ClemDoum
force-pushed
the
feature/task-creation-in-java
branch
from
October 30, 2023 16:37
6f61000
to
83d7af2
Compare
ClemDoum
force-pushed
the
feature/graph-import
branch
from
October 31, 2023 17:31
9245e77
to
e4d9c56
Compare
Self mergin this one as it pretty monolitic and hard to review, will submit later PRs for proper review |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TODOs
PR description
This PR adds the
Graph statistics
andImport tasks
sections to the neo4j widget. Previously the widget only add aExport
section was availabe.The statistic section can be used to compare the number of entities found inside neo4j and trigger import (only available in
LOCAL
mode) if the graph is empty or outdated.The following screenshot shows an empty neo4j graph:
When the user see that the graph is empty, the
Create graph
button can be hit and the graph import can be monitored:The number of documents and entities found in the graph is then updated like this:
Counting graph document and named entities
The widget now displays the number of documents and named entity in the graph. In order to match the number of documents and named entities in Datashare (ES), some aggregation is performed on graph nodes. Indeed the named entity graph model, compresses the information available in ES and there are less named entities nodes in the graph that documents in the ES index.
Changes
plugins/neo4j-dump-widget
Added
Neo4jGraphCount.vue
component to display the counts of document and entities found inneo4j
Neo4jGraphImport.vue
component to monitor full import tasks and trigger graph updateEllipseStatus.vue
component fromdatashare-client
in order to display tasks progreshumanDate
utils from the main client to the extension to nicely display datesnamedEntities
utils from the main client to the extension to nicely display named entities FA iconsNeo4jModule.js
to refhresh the list of initialized project and project graph countsChanged
Neo4jGraphCount.vue
to trigger the initialization of the current project (creation of the neo4j DB, migration of the DB etc etc)Neo4jModule.js
to poll running importsWidgetNeo4jDump.vue
neo4j-app
Added
GET /graphs/count?project=
API route to retrieve the number of entities and documents in the graphPOST /tasks/search?project=
API route to search for tasks, optionally filtering by task type and statusesfull_import
async task to the worker, the task upserts all documents and named entities from ES to neo4jFixed
src
Added
GET /api/neo4j/graphs/count?project=
API route to retrieve the number of entities and documents in the graphPOST /api/neo4j/full-imports?project=
API route to trigger full import. The route is restricted to theLOCAL
usageGET /api/neo4j/full-imports?project=
API route to list full import tasksChanged
GET /ping
route to check underlying component availability_lifespan_worker_pool
intolifespan_worker_pool
WorkerCancelled
error rather than aRuntimeError
when worker gets killed on purposeFixed
GET /config
to correclty return neo4j supportESClientABC.to_neo4j
when concurrently polling ES (error from concurrent tasks were silent and not reraised)"emailHeaderField"
vs."emailHeader"
) and added the"tika_metadata_dc_creator"
tag to the list of sending tagsDEBUG
for ES