-
Notifications
You must be signed in to change notification settings - Fork 15
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
Archive / delete action customisation #354
Comments
Can this be resolved by setting Cascade archive/delete doesn't check |
Hey @GuySartorelli thanks for the suggestion but that's not the case that we're after though. Let me try to surface more details. This is my test setup:
What we're after is having the control when deletions are applied to the live stage of the page. |
I don't understand what you mean by this.
Do you mean you want to unlink the link record from the relation on the owner record, so the owner record's draft stage has no link relation, but the relation (and link) are still available on the live stage? If so, how do you intend to resolve the fact that the link itself will still exist, and now be orphaned, when you publish the owner record? Or would we be saying "if you do this, it's up to you do deal with orphan links" - i.e. that part is out of scope for the module itself? What UX and technical solution would you propose for unlinking the link, if that is what you meant? |
Sorry for the confusion @GuySartorelli , I think the best way to describe it is via impact on data. Initial Test setup
LinkField 3 behaviour
Then publish the page (can happen at a very different time, it's not bound to the previous action)
This behaviour separates editing from publishing giving content authors greater flexibility when ti comes to control over the live content. LinkField 4 behaviour
So as far as I can see the changes are done immediately on live stage as well which is something we are aiming to avoid. |
I'm not sure how you would achieve the desired result without either:
It's possible I'm still misunderstanding something about this though - I'd be interested in what your intended technical solution would be to implement this. That might help me more fully understand what you're intending. |
i will post new updates as we're still in the middle of the upgrade. I'm currently not sure about the technical solution but the aim is to separate draft stage editing from publishing the draft content to live as two separate actions that can be executed at different times. I guess "publishing" is a bit misleading term here as we use it as "transfer current draft changes to live". |
One should be able to "publish" the "removal" of a relation though, and not be beholden to immediate changes that are public facing. This is the point of the publishing concept right? I feel the I'm curious about this statement though.
Is it wrong to not have a doc section outlining an example clean up job? |
That's the first option I mentioned above:
You're removing the relation between the records, rather than removing the record itself. So the word "delete" or "archive" isn't technically true there. I think gridfield uses the word "unlink". Though I don't know if that would cause more confusion in the case of links or not. And having orphaned links isn't ideal.
That's an option that could be considered... though not getting into a situation where there are orphaned links to begin with would be better. Having a clean up job feels like a bandaid that shouldn't be necessary. |
Description
This module supports both cases where the link model is versioned and non-versioned but it doesn't allow the customisation of related archive / deletion actions in the UI (the ability to choose specific action on top of the default choice).
There are cases where link model is versioned but the archive action is not desirable as individual edits such as archiving a link should not be executed right away at the time of edit but rather be batched together with other changes and copied to live stage as a part of page level publishing process.
GridField
allows you to decide which publishing path for deletion you need so it would be great if this ability would also be covered for LinkField UI.Additional context or points of discussion
No response
Validations
The text was updated successfully, but these errors were encountered: