Skip to content

Conversation

@lidiazuin
Copy link
Contributor

No description provided.

@lidiazuin lidiazuin added bug Something isn't working cherry-pick-this-to-4.4 Cherry pick this PR changes to the 4.4 branch cherry-pick-this-to-dev 5.x Applies to all Neo4j 5 docs labels Dec 8, 2022
@neo-technology-commit-status-publisher
Copy link
Collaborator

Looks like you've updated the documentation!

Check out your changes at https://neo4j-docs-cypher-252.surge.sh

@mnd999
Copy link
Contributor

mnd999 commented Dec 8, 2022

The difficulty is you need some mechanism to differentiate between the character { in they cypher syntax and the character { in the formal definition of they syntax. I don't think quote marks are incorrect here, although there may be better ways to express it. Removing them seems wrong to me. e.g.

Does ()-[r:TYPE_NAME]-() mean that r:TYPE_NAME is optional, or does it mean that it should be in square brackets?

@Hunterness
Copy link
Collaborator

Hunterness commented Dec 9, 2022

To add on to Marks comment:
The quotes are there on purpose and the syntax for these summaries is described in https://neo4j.com/docs/cypher-manual/current/access-control/#access-control-syntax

(In #225 I've added a note and link to that section to make it easier to find, those notes might be nice to backport even if nothing else from the PR should be backported)


[NOTE]
====
The syntax descriptions use xref:access-control/index.adoc#access-control-syntax[the style] from access control.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This comment should also be added in:

Since the syntax summary descriptions lives in the access control chapters intro I don't think it needs to be added to all the sections in that part, but otherwise it could be added to these as well:

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks, @Hunterness 👍


[NOTE]
====
The syntax descriptions use xref:access-control/index.adoc#access-control-syntax[the style] from access control.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd put this higher up, between the Syntax header and the Syntax for creating constraints header as it applies to the full syntax chapter and not just the creates part

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!


[NOTE]
====
The syntax descriptions use xref:access-control/index.adoc#access-control-syntax[the style] from access control.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you added it above the syntax descriptions in all other places?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, because there was this sentence "The syntax of the database management commands is as follows:" and I thought putting the note right after that would look weird, but I'll change that so we can decide which way is better!


[NOTE]
====
The syntax descriptions use xref:access-control/index.adoc#access-control-syntax[the style] from access control.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you added it above the syntax descriptions in all other places?

Copy link
Collaborator

@Hunterness Hunterness 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 okej like this at least :D

@lidiazuin lidiazuin changed the title Removing additional quotation marks that were incorrectly added to code Adding notes about syntax to explain the use of quotation marks Dec 16, 2022
@lidiazuin lidiazuin merged commit a568f73 into neo4j:5.x Dec 16, 2022
@lidiazuin lidiazuin deleted the 5.x-quotationsbug branch December 16, 2022 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5.x Applies to all Neo4j 5 docs bug Something isn't working cherry-pick-this-to-4.4 Cherry pick this PR changes to the 4.4 branch cherry-pick-this-to-dev

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants