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

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3520073: Fixed Autosave Form Settings to Exclude Media Bundles from Allowed Content Entity Types and Focal Points

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Category: Task » Bug report

  • rajab natshah committed 380f570e on 10.0.x
    Issue #3520073: Fix Autosave Form Settings to Exclude Media Bundles from...

  • rajab natshah committed 2c919351 on 10.1.x
    Issue #3520073: Fix Autosave Form Settings to Exclude Media Bundles from...
rajab natshah’s picture

Assigned: rajab natshah » s.halawani
Issue summary: View changes
Status: Active » Needs review
Issue tags: +varbase-10.0.5, +varbase_core-10.0.46, +varbase-10.1.0-alpha1, +varbase_core-10.1.0-alpha3
rajab natshah’s picture

Assigned: s.halawani » Unassigned
Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes
Related issues: +#3511969: Add Autosave Form ~1 module
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
Issue tags: +varbase_core-10.1.47
rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-10.0.5

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.