Splitting this off from #779998: Add support to record patches applied to release packages so we can discuss the UI separately from all the backend plumbing for how to find out and store the data about what patches are applied to a given packaged release.

Basically, we need to modify the tables of stuff included in a release (e.g. on pages like http://drupal.org/node/1006918) so that if either a project or an external library has patches applied, the table says so.

Some possible thoughts:

A) Enhance the "version" column to indicate if a thing has been patched and give you somewhere to click for more details.

B) Condense the "status" column (e.g. put the recommended/current version in a tooltip or something) and add another column about patches.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yoroy’s picture

FileSize
26.57 KB

Firebug sketch:
 1, 2"

dww’s picture

Yup, that's a great start.

However, I'm not sure 1 is all we need. Even though we might be able to link to an issue/comment where a patch file lives, it seems important to at least somehow display the actual URL of the patch file. A given issue comment might have 10 patches attached to it, so we need to know exactly *which* patch it is.

Thanks for spending time pondering this issue!

Cheers,
-Derek

yoroy’s picture

Bojhan: yhea, I would do something like "4 custom patches applied (details)". More scalable, than linking each patch

yoroy_: possibly, but then that 'details' link would have to summarize/link to each patch individually so, that page would have to be generated then

Bojhan: yes

yoroy_: cool. probably best to offload that info to somewhere else.

Bojhan’s picture

FileSize
66.28 KB

Wireframe alternative showing 3 tables.

Bojhan’s picture

FileSize
35.76 KB

Or everything in one table. everything in one table

dww’s picture

Issue tags: -Usability

I like where #4 is headed. That should be relatively easy to implement. The externals and patches tables will obviously only appear if there are any externals or patches to display. ;)

I don't like #5 for a few reasons:
- Seems impossible to cram enough info about patches into that design to make it useful
- It'll be harder to implement for backend reasons (each of these tables is a view of different kinds of stuff, so it's messy to merge them).

We could of course move to custom code to build these, but I'd rather use views whenever possible for stuff like this.

Given how few people look at these pages, I lean towards the slightly more verbose #4 since it's easier to build and will provide more useful info to the people who care (even if it's not quite as beautiful as it might otherwise be).

Removing the "Usability" tag for now. Once this is closer to reality, I might post real screenies and tag it "Needs usability review" for one last quick sign-off, but I think we're in good shape here...

Thanks!
-Derek

dww’s picture

Assigned: Unassigned » dww
Status: Active » Needs review
FileSize
130.24 KB

I've made a bunch of progress on this and wanted to post a screenie of a completely hacked dummy test node from my laptop. But, at least it's showing off most of the functionality described here. Everything here is being generated by views. All the code lives on the 779440-distro-packaging branch of project.

The one case I haven't yet done is patches applied to remote items (aka "libraries"). That's a bit more of a pain in the ass, and I don't think it's critical for initial deployment. So, I wanted to get what I've got working up here for review. Meanwhile, if I'm feeling inspired, I'll take a crack at this final edge case...

dww’s picture

Woo hoo. Here it is working on a live d.o dev site:

http://distro-drupal.redesign.devdrupal.org/node/1402264

Yee haw,
-Derek

dww’s picture

Here's a slightly more sane example:

http://distro-drupal.redesign.devdrupal.org/node/1402268

This is mostly up-to-date code, but it's also got 3 patches applied (including 2 to the same project).

Bojhan’s picture

I gave it a quick review, there are some parts we can improve:

1) More spacing around the tables for scanning,
2) Shorter patch links

However we concluded, that the most important things are there and there are no confusing parts - the suggestions would merely be tweaking. Dww can spend valuable time on solving a lot of other issues, so I suggest we put it in as currently shown.

dww’s picture

Status: Needs review » Fixed

The 779440-distro-packaging branch of project is now merged back into 6.x-1.x branch and deployed live. We won't see any changes until there are distros with patches, which is blocked on #1365536: Switch distribution packaging system to use just drush core and drupalorg_drush and #1365538: Deploy drupalorg_drush and latest drush for distribution packaging system. Just trying to get all the other plumbing in place, first...

dww’s picture

FileSize
301 bytes

Attaching a patch here for live testing for a release of drupalorg_testing. ;)

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