Skip to content
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

Fix the neo4j cypher warnings #971

Open
pagrubel opened this issue Dec 6, 2024 · 1 comment
Open

Fix the neo4j cypher warnings #971

pagrubel opened this issue Dec 6, 2024 · 1 comment
Assignees

Comments

@pagrubel
Copy link
Collaborator

pagrubel commented Dec 6, 2024

Git rid of these:
Received notification from DBMS server: {severity: WARNING} {code: Neo.ClientNotification.Statement.UnknownLabelWarning} {category: UNRECOGNIZED} {title: The provided label is not in the database.} {description: One of the labels in your query is not available in the database, make sure you didn't misspell it or that the label is available when you run this statement in your application (the missing label name is: Hint)} {position: line: 1, column: 45, offset: 44} for query: 'MATCH (:Task {id: $task_id})<-[:HINT_OF]-(h:Hint) RETURN h'
Received notification from DBMS server: {severity: WARNING} {code: Neo.ClientNotification.Statement.UnknownRelationshipTypeWarning} {category: UNRECOGNIZED} {title: The provided relationship type is not in the database.} {description: One of the relationship types in your query is not available in the database, make sure you didn't misspell it or that the label is available when you run this statement in your application (the missing relationship type is: REQUIREMENT_OF)} {position: line: 1, column: 33, offset: 32} for query: 'MATCH (:Task {id: $task_id})<-[:REQUIREMENT_OF]-(r:Requirement) RETURN r'

@arhall0 arhall0 self-assigned this Dec 18, 2024
@arhall0
Copy link
Collaborator

arhall0 commented Dec 19, 2024

To clarify, did you just want to turn off these warnings?

I looked into what appears when running the cat-grep-tar workflow. They seem to be due to queries concerning hints or requirements when these don't exist in the workflow:

hints_query = "MATCH (:Task {id: $task_id})<-[:HINT_OF]-(h:Hint) RETURN h"

reqs_query = "MATCH (:Task {id: $task_id})<-[:REQUIREMENT_OF]-(r:Requirement) RETURN r"

We could turn off warnings for the category UNRECOGNIZED. I also saw a warning about deprecated syntax, which could just be changed:

Received notification from DBMS server: {severity: WARNING} {code: Neo.ClientNotification.Statement.FeatureDeprecationWarning} {category: DEPRECATION} {title: This feature is deprecated and will be removed in future versions.} {description: The semantics of using colon in the separation of alternative relationship types will change in a future version. (Please use ':DEPENDS_ON|RESTARTED_FROM' instead)} {position: line: 1, column: 92, offset: 91} for query: "MATCH (m:Metadata)-[:DESCRIBES]->(t:Task {workflow_id: $wf_id}) WHERE NOT (t)<-[:DEPENDS_ON|:RESTARTED_FROM]-(:Task) AND m.state <> 'COMPLETED' RETURN t IS NOT NULL LIMIT 1"

"WHERE NOT (t)<-[:DEPENDS_ON|:RESTARTED_FROM]-(:Task) "

"WHERE NOT (t)<-[:DEPENDS_ON|:RESTARTED_FROM]-(:Task) "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants