Problem/Motivation
Storage entities are technically revisionable, and implementations using Inline Entity Form are able to create revisions. But there's no option to create a new revision on the storage entity's own edit form.
Steps to reproduce
Go to /storage/1/edit, see that there's no "Create new revision" checkbox.
Proposed resolution
Ideally, this would be an interface element that could be toggled on a per-bundle basis, similar to how Content bundles do it.
One possible issue is that we probably don't want to see a "Create new revision" checkbox when editing the entity via an IEF widget. In those cases, we always should apply the IEF widget setting for revisions.
Remaining tasks
Get maintainer feedback, write a patch.
User interface changes
Add "Create new revision" checkbox to the edit form.
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | storage-revision_settings-3209333-2.patch | 5.17 KB | mandclu |
Comments
Comment #2
mandclu commentedThis patch adds configuration options:
Please test and let me know if additional changes are needed.
Comment #3
andileco commentedI'll test this; however, I'm not currently using IEF, so if someone is using that, I recommend they do a second round of testing after I complete mine.
Comment #4
mandclu commentedI will confess that I'm not super familiar with how IEF is supposed to work with respect to revisions, but I did do some testing with it and this patch. Here's what I discovered:
I don't personally see anything of concern in here, but would welcome other input.
Comment #6
mandclu commentedI decided to go ahead and get this merged in so I could get out a stable release. If you have the time to test it that would be great, and feel free to open an issue for anything you find.