Problem/Motivation

The Media library currently implements an install hook that changes the path of the default "media" view so that the Grid appears first at /admin/content/media. This works fine if the library is installed after the Media and Views modules, but if the library is installed as a profile dependency the "media" view does not exist when the library's install hook is invoked. This is due to a quirk in profile installs where optional config is installed _after_ all modules are installed.

Proposed resolution

Handle the case where the "media" view is created _after_ the library is installed.

Remaining tasks

Review the patch.

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

samuel.mortenson created an issue. See original summary.

samuel.mortenson’s picture

StatusFileSize
new1.09 KB

Patch.

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.

eric morand’s picture

StatusFileSize
new1.21 KB

The previous patch doesn't apply anymore with 8.7.1. Here is a new one that does.

shaal’s picture

StatusFileSize
new1.25 KB
new2.14 KB

I re-rolled this patch for 8.8.x

phenaproxima’s picture

Title: The Media library doesn't modify the "media" view if installed in a profile » [PP-1] The Media library doesn't modify the "media" view if installed in a profile
Status: Needs review » Postponed

I think we should postpone this one on #2981105: Media Library should not modify the media view, since that one will probably dramatically change how the media view is modified.

phenaproxima’s picture

phenaproxima’s picture

Status: Postponed » Closed (outdated)

Now that #2981105: Media Library should not modify the media view is in, this should no longer be an issue. Media Library no longer modifies the Media view in any way upon install. Closing as oudated :)