Skip to content

Conversation

@Hunterness
Copy link
Contributor

@Hunterness Hunterness commented Sep 3, 2024

to drop any aliases blocking the deletion of the database

Documenting https://github.com/neo-technology/neo4j/pull/26465, needs to wait until that has been merged.

to drop any aliases blocking the deletion of the database
@mnd999 mnd999 self-assigned this Sep 4, 2024
@renetapopova renetapopova self-requested a review September 9, 2024 11:11
@Hunterness
Copy link
Contributor Author

@renetapopova I guess you are busy with the linked users PR, but I'm just looking at the status of my open PRs and want to know that this one hasn't been forgotten about :)

@renetapopova
Copy link
Collaborator

@renetapopova I guess you are busy with the linked users PR, but I'm just looking at the status of my open PRs and want to know that this one hasn't been forgotten about :)

Actually, I added some comments, but I wanted to look at it again. I'll submit them now and look at the PR again later today.

Copy link
Collaborator

@renetapopova renetapopova left a comment

Choose a reason for hiding this comment

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

I added some suggestions.

@Hunterness
Copy link
Contributor Author

Actually, I added some comments, but I wanted to look at it again. I'll submit them now and look at the PR again later today.

I've updated some of them so hopefully that helps when looking at it again


This behavior is the same for the more general command `DROP DATABASE name` when using it to drop a composite database.

The option `RESTRICT` explicitly requests the default behavior of the command.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

since this section don't have a syntax description nor mention RESTRICT before this point, this sentence sticks out weirdly

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, I had this question in my mind: What is the default behavior of the command?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to throw an error when there exists aliases (for composite its constituent aliases and for standard it's local ones targeting it), so the behaviour if you don't write CASCADE ALIASES

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah ok. And when or why would one use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't really see people using it as it means the same as leaving it out, but it is there for consistency. We do allow you to specify the default behaviours of DUMP DATA/NOWAIT so why wouldn't we allow you to specify RESTRICT

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not sure what to write then. I'll leave it out until we come up with something useful for the user.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think leaving it out on the composite page is fine

Copy link
Collaborator

@renetapopova renetapopova 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 now. @Hunterness, could you please take a look? Thanks

…/delete-composite-databases.adoc

Co-authored-by: Therese Magnusson <[email protected]>
renetapopova and others added 2 commits September 24, 2024 14:35
…delete-databases.adoc

Co-authored-by: Therese Magnusson <[email protected]>
…delete-databases.adoc

Co-authored-by: Therese Magnusson <[email protected]>
Copy link
Contributor Author

@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.

this I think would fix the example formatting

@renetapopova
Copy link
Collaborator

@Hunterness, any final comments?


This behavior is the same for the more general command `DROP DATABASE name` when using it to drop a composite database.

The option `RESTRICT` explicitly requests the default behavior of the command.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't really see people using it as it means the same as leaving it out, but it is there for consistency. We do allow you to specify the default behaviours of DUMP DATA/NOWAIT so why wouldn't we allow you to specify RESTRICT

…delete-databases.adoc

Co-authored-by: Therese Magnusson <[email protected]>
@neo-technology-commit-status-publisher
Copy link
Collaborator

neo-technology-commit-status-publisher commented Sep 24, 2024

Thanks for the documentation updates.

The preview documentation has now been torn down - reopening this PR will republish it.

@renetapopova renetapopova merged commit a809d33 into neo4j:dev Sep 24, 2024
8 checks passed
JPryce-Aklundh added a commit to neo4j/docs-cypher that referenced this pull request Sep 25, 2024
Companion Pr to neo4j/docs-operations#1805,
~~should probably wait for that to go in.~~

Documenting neo-technology/neo4j#26465, ~~needs
to wait until that has been merged.~~

---------

Co-authored-by: Jens Pryce-Åklundh <[email protected]>
JPryce-Aklundh added a commit to JPryce-Aklundh/docs-cypher that referenced this pull request Sep 26, 2024
Companion Pr to neo4j/docs-operations#1805,
~~should probably wait for that to go in.~~

Documenting neo-technology/neo4j#26465, ~~needs
to wait until that has been merged.~~

---------

Co-authored-by: Jens Pryce-Åklundh <[email protected]>
renetapopova added a commit to renetapopova/docs-operations that referenced this pull request Sep 26, 2024
to drop any aliases blocking the deletion of the database

Documenting neo-technology/neo4j#26465, ~~needs
to wait until that has been merged.~~

---------

Co-authored-by: Mark Dixon <[email protected]>
Co-authored-by: Reneta Popova <[email protected]>
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