Problem/Motivation
Follow up issue after #3511969: Add Autosave Form ~1 module
Currently, autosave form settings incorrectly apply to media bundles, which are not intended content entity types for autosave behavior. This leads to unintended behavior and potential performance issues, especially with media focal point fields.
Steps to reproduce
Facing a failed automated functional testing scenario
@javascript @local @development @staging @production
Scenario: Check if we do have a file named Flag Earth, if not then upload the file dependently
When I go to "/media/add/image"
And wait
Then I should see "Allowed types: png gif jpg jpeg webp."
When I attach the file "flag-earth.jpg" to "edit-field-media-image-0-upload"
And wait
And I press the "Save" button
And wait 2s
Then I should see "Alternative text"
Then I should see "Title"
When I fill in "Flag Earth in space" for "field_media_image[0][alt]"
And I fill in "Flag Earth all earth in space" for "field_media_image[0][title]"
And I fill in "Flag Earth" for "name[0][value]"
And I check the box "Show in media library"
And I press the "Save" button
And wait
Then I should see "Flag Earth"
And wait
When I go to "admin/content/media"
Then I should see "Add media"
And I should see the "Edit" in the "Flag Earth" row
Proposed resolution
Remove media bundles from allowed content entity types for auto-saving.
Update autosave form settings to exclude media bundles from the list of allowed content entity types and skip focal point fields, ensuring the autosave functionality only targets relevant content types.
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release varbase-10.0.5, varbase_core-10.0.46, varbase-10.1.0-alpha1, varbase_core-10.1.0-alpha3, varbase_core-10.1.47
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
API changes
Data model changes
Release notes snippet
- Issue #3520073: Fixed Autosave Form Settings to Exclude Media Bundles from Allowed Content Entity Types and Focal Points
Comments
Comment #2
rajab natshahComment #5
rajab natshahComment #6
rajab natshahComment #7
rajab natshahComment #8
rajab natshah✅ Released varbase_core-10.0.46
Comment #9
rajab natshah✅ Released varbase_core-10.1.0-alpha3
Comment #10
rajab natshahComment #11
rajab natshah✅ Released varbase_core-10.1.47
Comment #12
rajab natshah✅ Released varbase-10.0.5