Skip to content

Conversation

@renetapopova
Copy link
Collaborator

No description provided.

README.adoc Outdated
Comment on lines 182 to 183
* `WARNING`: The query may have issues. Please review it. We might be able to give you a suggestion on how to improve it.
* `INFORMATION`: The query may have issues, even though it is correct. The provided information can still be helpful.
Copy link
Contributor

@Lojjs Lojjs Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to also add that we are generally more certain the query have issues for WARNING compared to INFORMATION. Maybe @LinneaAndersson has some feedback too

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

  • WARNING: It is about queries/commands that may have structural, syntactic, semantic, or spelling issues that prevent them from being executed in an optimal way. We need to give example(s) and suggestion(s) for improvement.
  • INFORMATION: It is about queries/commands that are correct but may have some performance issues or that have no effect because they try to do something already done. Depending on the case, we may give example(s) and suggestion(s) for improvement.

Neo.ClientNotification.Database.HomeDatabaseNotFound is the only status code that deviates from the above definition for INFORMATION.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that is better 👍

@Lojjs Lojjs requested a review from LinneaAndersson October 31, 2023 09:39
README.adoc Outdated

The severity can be one of the following:

* `WARNING`: It is about queries/commands that may have structural, syntactic, semantic, or spelling issues that prevent them from being executed in an optimal way.
Copy link
Contributor

@LinneaAndersson LinneaAndersson Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would more say that:

  • WARNING: It is about queries/commands that may have structural, syntactic, semantic, or spelling issues where the query most probably is wrong and/or should be updated. This includes: deprecations, experimental features, trying to match on entities with non-existing labels etc. It should be clear what the problem is and it is also good to tell the possible cause, and the consequences, as well as give an example(s) and suggestion(s) for improvement.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the most important part is that "we are (almost) certain it is a problem" and we know how to fix your query. So for:

  • Deprecations -> you need to update the query with new functionallity
  • Experimental features -> These can not be trusted and should be updated if used in production.
  • Non-existing label: This query will never give any result, so it's either useless to run OR misspelled label (unless you add a node with the label, but then the notification would disappear).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that, and I will add it as it is.

@renetapopova
Copy link
Collaborator Author

@LinneaAndersson and @Lojjs, are you happy as it is now? Shall I merge it?

Copy link
Contributor

@LinneaAndersson LinneaAndersson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it looks good, maybe a bit too long? But I leave that up to you to decide :)

README.adoc Outdated
* `WARNING`: It is about queries/commands that may have structural, syntactic, semantic, or spelling issues where the query most probably is wrong and/or should be updated.
This includes deprecations, experimental features, trying to match on entities with non-existing labels, etc.
It should be clear what the problem is and it is also good to tell the possible cause, and the consequences, as well as give an example(s) and suggestion(s) for improvement.
I think the most important part is that "we are (almost) certain it is a problem" and we know how to fix your query. So for:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
I think the most important part is that "we are (almost) certain it is a problem" and we know how to fix your query. So for:
The most important part is that "we are (almost) certain it is a problem" and we know how to fix your query. For example:

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Someone was distracted 😄 and forgot to amend it afterward.

@renetapopova
Copy link
Collaborator Author

I think it looks good, maybe a bit too long? But I leave that up to you to decide :)

I think it's OK to be long. The more specific the guidelines, the easier it is to follow them.

@renetapopova renetapopova merged commit 44c34c6 into neo4j:dev Nov 2, 2023
@renetapopova renetapopova deleted the dev-info-warning branch November 2, 2023 11:35
renetapopova added a commit to renetapopova/docs-status-codes that referenced this pull request Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants