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

Update constraint syntax #1238

Merged
merged 3 commits into from
Sep 3, 2021

Conversation

HannesSandberg
Copy link
Contributor

Syntax changed to FOR ... REQUIRE instead of ON ... ASSERT

@HannesSandberg
Copy link
Contributor Author

Should we add FOR & REQUIRE to the list of reserved keywords?

@Hunterness
Copy link
Contributor

Hunterness commented Aug 31, 2021

Copy link
Contributor

@Lojjs Lojjs left a comment

Choose a reason for hiding this comment

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

Overall it looks good, only file I found which you should also consider updating is PrettifierTest.scala. And then I have some smaller thoughts I put in the comments.

I have built the Cypher manual and confirmed everything looks ok, not sure how to build the refcard these days though.

@Hunterness
Copy link
Contributor

Overall it looks good, only file I found which you should also consider updating is PrettifierTest.scala.

There are three such files, but I think I remember something about those being unused so that's why we skipped them (PrettifierParser and PrettifierParserTest or something like that) (looks like maybe this was what stopped using it: #889)

Copy link
Contributor

@Lojjs Lojjs left a comment

Choose a reason for hiding this comment

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

I'm happy with this now

@AlexicaWright AlexicaWright self-assigned this Sep 2, 2021
Copy link
Contributor

@AlexicaWright AlexicaWright left a comment

Choose a reason for hiding this comment

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

Apart from the comment I left, I think this looks good. It's a fairly straightforward update. 👍

testQuery(
title = "Create a unique constraint using deprecated syntax",
text = "The unique constraint ensures that your database " +
"will never contain more than one node with a specific label and one property value.",
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
"will never contain more than one node with a specific label and one property value.",
"never contains more than one node with a specific label and one property value.",

We like to use present tense and active voice, but I am aware that this has not been consistently implemented, and not in this section either. Perhaps it is better to leave it as is, for consistency's sake.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I think this is just copy paste from another test in the same file, so perhaps it is better to make a cleanup card on either your Trello board our ours about updating it across the board.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, it's best dealt with separately. And with that, I have no more objections. Should I merge?

Copy link
Contributor

Choose a reason for hiding this comment

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

please do :)

@AlexicaWright AlexicaWright merged commit 2d1e1c4 into neo4j:dev Sep 3, 2021
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.

4 participants