Problem/Motivation

At /admin/config/media/responsive-image-style, the machine name data is included in the table. However, this is the only table that includes machine name data, which leads to UX inconsistency.
With Machine Name

Proposed resolution

For consistency, remove the machine name data from the table at /admin/config/media/responsive-image-style so that the machine name is only visible on the edit form (i.e. /admin/config/media/responsive-image-style/narrow). Alternatively, add the machine name data to all other applicable tables, which would probably be a rather large undertaking.
Without Machine Name

Remaining tasks

If proposed resolution is justified/reasonable, write patch.

User interface changes

Above

API changes

None

Data model changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chris2 created an issue. See original summary.

Chris Matthews’s picture

Issue summary: View changes
FileSize
94.23 KB
85.06 KB
sourabh.singhal’s picture

Assigned: Unassigned » sourabh.singhal
sourabh.singhal’s picture

Hi Chris2,

I think you are correct, to make consistency everywhere we should remove machine name column from Responsive Image Styles Table.

I have created the patch as per your proposed solution, please have a look.

Thanks
Sourabh

sourabh.singhal’s picture

Status: Active » Needs review

Status: Needs review » Needs work
sourabh.singhal’s picture

Apologies for the wrong patch file upload. please consider the attached one.
Thanks

Status: Needs review » Needs work

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

jhedstrom’s picture

The patch needs to update the corresponding test, which fails because it's checking for the machine name.


1) Drupal\Tests\responsive_image\Functional\ResponsiveImageAdminUITest::testResponsiveImageAdmin
"style_one" found
Failed asserting that false is true.
longwave’s picture

Fixed test.

jhedstrom’s picture

Status: Needs review » Reviewed & tested by the community

I did a bit of checking around, and the Views admin listing still displays the machine name. This was the only other instance I could find though, so perhaps that is more of a bug in views?

Tentatively marking this as RTBC though, since all newer admin forms not counting Views do not display this information.

jhedstrom’s picture

Also note that the image style admin form definitely doesn't include machine name, so this change makes responsive images consistent with that behavior.

  • catch committed 7681f14 on 9.0.x
    Issue #2988905 by sourabh.singhal, longwave, Chris Matthews, jhedstrom:...

  • catch committed 795d6bb on 8.9.x
    Issue #2988905 by sourabh.singhal, longwave, Chris Matthews, jhedstrom:...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Makes sense for these to be consistent.

Committed 7681f14 and pushed to 9.0.x. Cherry-picked to 8.9.x. Thanks!

Status: Fixed » Closed (fixed)

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