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

Deleting a PolicyGroup does not delete its associated attachments #3858

Open
floehopper opened this issue Mar 14, 2018 · 1 comment
Open

Comments

@floehopper
Copy link
Contributor

This is inconsistent with what happens when you discard a draft edition. In that case, all the edition's attachments are marked as deleted and they are no longer visible, even in the draft stack:

Conversely:

@floehopper
Copy link
Contributor Author

Having just thought about this a bit more, I'm not sure the attachments should be marked as deleted when a policy group is deleted.

A policy group is immediately public when it is created. Similarly attachments on a policy group are immediately public when they are added to the policy group.

If we think of policy group creation as the equivalent of the publishing of an edition, and policy group destruction as the equivalent of the un-publishing of an edition, it could be argued that the attachments should stay visible when the policy group is destroyed. Or at least the attachment URLs should still do something sensible, e.g. redirect to some kind of "un-publishing page".

It looks as if policy groups are published via the Publishing API, so perhaps there is a mechanism to display some kind of "un-publishing page" when a policy group is destroyed.

Anyway, I'm not planning to look into this any further at this stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant