To improve the usability of installing projects (d.o. projects of packages) in the Plugin Manager, being able to give users an interface to enable modules which only shows them the modules in a given project would be useful.

So post install of views, I would be given a link to:

admin/config/modules/views

Which would just filter the list of modules to remove anything not in the "views" project.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dww’s picture

Yeah, I can see how that'd be useful.

I'm not sure that path is going to work, though, since we already have admin/config/modules/[action], where [action] can be any of uninstall, install, and update. So, we're going to have namespace collisions this way, if any projects are named that. I think we're going to need another layer in the path, something like:

admin/config/modules/by-project/[project_name]

Although I bet someone's going to have a hissy fit about having "project" appear in the UI like that. *shrug*

But yeah, this could be cool, and a potentially nice UX cleanup once #538660: Move update manager upgrade process into new authorize.php file (and make it actually work) and 10/15 is behind us...

dww’s picture

Issue tags: +Usability

Tagging for UX folks...

webchick’s picture

Derek asked me whether or not this falls under UX clean-up. IMO this is just a different view of a page we already have, so is not the kind of thing that's going to cause a big fall-out mess to clean up (unlike #607008: Fix bugs in https support and force using https for authorize.php if available), so I'm fine with this coming up under UX clean-up.

Bojhan’s picture

So, I am somewhat disturbed by the possible fall-out from this patch. Can't we just redirect to the certain part of the admin/config page? I am asking this, because we want to avoid confusing people straight off - as to where a certain module lives in our categorisation.

JacobSingh’s picture

What is your solution to the problem at hand, which is that post install, the modules in the package are not enabled and the user doesn't know where to go to enable them or what they just installed.

Sending them to the modules page is not a great solution. In WP, after you install it says "would you like to enable xyz", but since there a module really is a module, not a package of modules, it's pretty simple. In our case, the thought was, just show users the modules included in said package and let them enable them without dealing with the pain of the larger modules page and finding them again.

I don't see how this is a bomb with fall-out or whatever there is to be disturbed about. But it is something we should make simpler. The proposal is just a trimmed down modules screen with only modules in a given package/Project.

-J

Bojhan’s picture

So A filterd module page on project name?

JacobSingh’s picture

Yup, that's the plan.

The other idea was a version of the modules page group by project, and then we link to an #anchor on the page.

Bojhan’s picture

Title: Make a special view of admin/config/modules which just contains modules in a project specified in the URL » Filter module page on project name

Jacob: The latter in 3.5 weeks no way, the former - Sure. Lets do it.

sun.core’s picture

Version: 7.x-dev » 8.x-dev
marvil07’s picture

Status: Active » Needs review
FileSize
3.88 KB
yoroy’s picture

Thanks for the patch. I'm still struggling with applying patches, could somebody provide some screenshots?

marvil07’s picture

FileSize
66.97 KB
37.36 KB

Here two snapshots.

by-project.png

by-project-devel.png

BTW Please notice that I have added manually a line to all devel info files(Since I was using devel 8.x branch). The only visible project is devel, because project key is not included on core dev branch module info files(only by the packager).

yoroy’s picture

Thanks for that. I'm not sure though I understand what's happening here. There's a new tab 'List by project' with links to what? Newly installed contrib or all contrib? Then click a link there to show all modules that belong to that module package?

How do you get to this 'list by project' tab: do you have to click it yourself or is there a link in the 'succes, x modules enabled' message after enabling new modules?

These seem related:
#89205: Usability: Better message on module activation/deativation
#396478: Searchable modules page

marvil07’s picture

Hey, I forgot completely to provide a good message that explains what I have tried, so let's try to do it here.

  • Add a 'project' parameter to the system_modules form callback, which does the filter based on the module info project key.
  • Add two menu entries.
    • One for 'List by Project' tab, which lists(and links to the other menu entry) all the projects known(again based on module info project key).
    • The other, which based on the last parameter pass it to the modified system_module form callback.

So, now let's try to answer the questions:

There's a new tab 'List by project' with links to what? Newly installed contrib or all contrib? Then click a link there to show all modules that belong to that module package?

It uses the parsed information, and iterates through all projects known(it doesn't matter if they are core or contrib, but only showing devel in the list because project key on info files are added only with release tarballs, and locally I was using current 8.x branch), showing them with a link to the new menu entry with the needed filter(the project name).

How do you get to this 'list by project' tab: do you have to click it yourself or is there a link in the 'succes, x modules enabled' message after enabling new modules?

There is no currently a link on that message, but adding it will be trivial ;-), and maybe it can be part of #89205: Usability: Better message on module activation/deativation.

I have taken a look to #396478: Searchable modules page, and that issue kind-of trying to solve the similar problem(actually this is a subset), but with a different approach, they use javascript to make the filter(and search within all table data), I use a menu callback and search only by the module info project key.

thedavidmeister’s picture

Status: Needs review » Needs work
error: patch failed: core/modules/system/system.admin.inc:761
error: core/modules/system/system.admin.inc: patch does not apply
error: patch failed: core/modules/system/system.module:2445
error: core/modules/system/system.module: patch does not apply

patch no longer applies.

https://drupal.org/project/module_filter seems like a better implementation of this idea imo.

yoroy’s picture

Status: Needs work » Closed (duplicate)

#396478: Searchable modules page introduced a filter on the modules page. I think this can be closed as a duplicate of that one.