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

Sync tree: cascade unpublish, move and delete #7984

Merged
merged 9 commits into from
Apr 17, 2022

Conversation

zerolab
Copy link
Contributor

@zerolab zerolab commented Feb 14, 2022

This PR fixes #7592. It:

  • adds a hook
  • uses it in
    • single unpublish view
    • single delete view
    • single move view
  • adds tests

⚠️ bulk actions will be tackled separately

@zerolab zerolab marked this pull request as draft February 14, 2022 17:10
@squash-labs
Copy link

squash-labs bot commented Feb 14, 2022

Manage this branch in Squash

Test this branch here: https://featuresync-tree-unpublish-cas-ls1vx.squash.io

@zerolab zerolab changed the title Ssync tree: unpublish cascade Sync tree: unpublish cascade Feb 14, 2022
@zerolab zerolab force-pushed the feature/sync-tree-unpublish-cascade branch from 039fa7e to e933187 Compare February 14, 2022 17:26
@zerolab zerolab force-pushed the feature/sync-tree-unpublish-cascade branch from e933187 to 3c08275 Compare February 23, 2022 16:45
@zerolab zerolab marked this pull request as ready for review March 9, 2022 21:39
@zerolab zerolab force-pushed the feature/sync-tree-unpublish-cascade branch 2 times, most recently from 9fd2e81 to ce78949 Compare March 25, 2022 11:06
@zerolab zerolab changed the title Sync tree: unpublish cascade Sync tree: cascade unpublish, move and delete Mar 25, 2022
@zerolab zerolab requested a review from kaedroho March 25, 2022 11:08
Copy link
Member

@KalobTaulien KalobTaulien left a comment

Choose a reason for hiding this comment

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

We definitely need someone else to review this since I did a bunch of work on this PR. But the initial hook seems to work exactly as expected, and the docs make sense imo.

Copy link
Contributor

@kaedroho kaedroho left a comment

Choose a reason for hiding this comment

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

Just a very nitpicky comment about wording and a comment about the naming of the hook.

The rest of the implementation all looks good to me! Nice work!

docs/reference/hooks.rst Outdated Show resolved Hide resolved
zerolab and others added 6 commits April 14, 2022 13:58
…SIMPLETRANSLATION_SYNC_PAGE_TREE are enabled

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>
…ILSIMPLETRANSLATION_SYNC_PAGE_TREE are true

Co-Authored-By: Kalob Taulien <4743971+KalobTaulien@users.noreply.github.com>
@zerolab zerolab force-pushed the feature/sync-tree-unpublish-cascade branch from 1353d3d to 21494a5 Compare April 14, 2022 16:05
@zerolab zerolab force-pushed the feature/sync-tree-unpublish-cascade branch from 21494a5 to ac292e4 Compare April 14, 2022 16:12
@zerolab zerolab requested a review from kaedroho April 14, 2022 16:15
@kaedroho kaedroho merged commit 4cc1032 into main Apr 17, 2022
@kaedroho kaedroho deleted the feature/sync-tree-unpublish-cascade branch April 17, 2022 16:34
@zerolab zerolab added this to the 4.0 milestone May 20, 2022
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.

Unpublish / Delete / Move a page should optionally cascade to other locales
4 participants