The default update module settings show too much red - it's hard to visually identify a serious problem like a security update.

The only seeting I can change affects both the visual display AND the threshold for sending e-mails, though there is no real reason they need to be the same. I discussed with a couple of the usability group (yoroy and ultimateboy) and both were happy with the idea of making normal updates less prominent - Heine also supported the idea so as to make secuirty updates stand out.

Comments

pwolanin’s picture

Here's a patch for D6 which adds the possibility of a gray background for unknown items, and set the color schem down to 'warning' for updates regardless of the e-mail notification threshhold. The screen shot shows how this can look on the updaes page.

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new2.66 KB
new2.7 KB

patch is the same for D6 and D7 - rerolled D6 for indentation.

webchick’s picture

Peter, can we get a "before" screenshot so people understand what is being fixed here? We could also use a summary of what you're trying to accomplish here.

pwolanin’s picture

StatusFileSize
new99.99 KB

Ok, the goal here is is 2-fold: 1) Make the default updates report more usuable by only using red for conditions that rise to the level of erros (e.g. security update available) versus a more "warning" level of there being an update. 2) Decouple the e-mail settings from having an effect on the appearance.

Below an an annotated screenshot that shows essentially the "before" compared to the above after - not that "unknown" is highighted in yellow and all updates are shown in red. We could make this more like the after by changing the notification settings - but I'm guessing few people even understand the effect of that setting, or would be frustrated that e-mail notification levels are tied to the visual presentation.

pwolanin’s picture

StatusFileSize
new109.97 KB

webchick’s picture

Component: update system » update.module

Cool. This makes a heck of a lot of logical sense to me. It would be nice to get the thoughts of the update module maintainers. Changing component accordingly.

+      case UPDATE_NOT_CHECKED:
+      case UPDATE_UNKNOWN:
+        $class = 'unknown';
+        $icon = theme('image', 'misc/watchdog-warning.png', t('warning'), t('warning'));
+        break;

I'm not sure I agree with that though. If the update hasn't been checked, don't you not have cron running or something? Isn't that an actual "warning" rather than a mere "unknown" warning? We should probably remove UPDATE_NOT_CHECKED here and have it inherit the default warning behaviour?

pwolanin’s picture

Title: Default update setting make it hard to visually distinguish security updates » Default update setting make it easier to visually distinguish security updates

opps - we want it to be "easier"

@webchick - I'm agnostic on that question, so I can roll it the other way too.

pwolanin’s picture

Title: Default update setting make it easier to visually distinguish security updates » Make it easier to visually distinguish security updates on Updates report
StatusFileSize
new2.66 KB
Bojhan’s picture

Just nothing that this is a good improvement, we received concencus on IRC that this would be the way to go - argument beign that priority should be identified by color, and a new update is not neccairy high priority unless its a security release.

catch’s picture

I also like this, 'no update information available' in grey works for me as well - I think I've seen that due to packaging script/.info issues or similar which aren't really critical.

Bojhan’s picture

catch: what about just the normal background white?

pwolanin’s picture

@Bojan - I thought an additional background with similar brightness would be easier on the eyes that having one be stark white.

gábor hojtsy’s picture

I agree that having the security update coloring stand out would be a rather good cause here. Also agree that having a gray background would be a better fit then just clear white.

dries’s picture

I support this change too (but haven't reviewed the patch yet).

dww’s picture

I'm also in favor, but haven't done a thorough review. Just starting to catch up a bit on the (very sad) update.module issue queue... :(

Re: pwolanin's excellent question in the screenshot in #5: "which of these is important?" -- the one with *slightly* more bold, silly! ;)

Re: patch #8: a few quick thoughts:

A) What does the 'update_notification_threshold' setting even do any more after this patch? It's been so long since I looked closely at any of this code that I'm not sure what else it impacts beyond how things look on this report. It probably still impacts email notifications, and perhaps what things look like at the status report page. But, it'd be a good idea to grep for it and be sure.

B) Given the results of (A), it seems like the help text for that setting needs to be updated, too. Maybe the setting itself needs to be re-thought...

webchick’s picture

Status: Needs review » Needs work

dww's right; we can indeed remove this variable and setting; afaict, the only places it impacts in the code are removed in this patch. The description of that field implies that it impacts the e-mail sending functionality, but I don't see how it does that on a quick grep.

pwolanin’s picture

@webchick - I think the variable still affects when e-mail is sent.

Oh wait - this ugly: in fact the updates are based on the error levels from hook_requirements, so the visual display and e-mail threshold are more coupled than I thought: http://api.drupal.org/api/function/_update_cron_notify/7

I'll re-roll the patch so the e-mail threshold check happens where it should.

pwolanin’s picture

Status: Needs work » Needs review
StatusFileSize
new3.66 KB

Ok, now the variable affects e-mail sending as it says it will.

dries’s picture

This looks good.

I had the same thought as dww before having read his comment. Can't we remove the setting? It seems more logical to turn that setting into an e-mail only setting at this point, or to still try to remove it.

pwolanin’s picture

@Dries - not sure I understand. The last patch makes it so the setting does apply to e-mail only.

dries’s picture

pwolanin, the help text mentions "see these error messages". I think it would be good to revise the help text to remove the non-email stuff, and maybe to rename "Notification threshold" to "E-mail notifications" or something. In short, I would make it more clear that this is about the e-mail notifications.

webchick’s picture

Status: Needs review » Needs work
pwolanin’s picture

Status: Needs work » Needs review
StatusFileSize
new5.53 KB

settings page text altered.

dww’s picture

#23 looks pretty good to me. I need to run right now and don't have time for a more thorough review, but I'll try to put this through the paces this afternoon (time permitting) or sometime on Tuesday (more likely).

However, if this is a "bug report" and we're planning to backport it to D6 (as per #1) I don't know how to reconcile the desire to make these UI changes for clarity vs. the prospect of breaking the string freeze in the stable release. I'd *love* to break the string freeze for a few other edge-case error messages in D6, but I get the feeling that's not going to fly:
#208766: Latest release from maintainer's recommended branch called "Also available", not "Recommended"
#210144: If currently installed release is not found, update.module prints bogus information
#237608: "Recommended version" for unsupported branch

If 6.11 is going to be a slightly unorthodox core release for update.module (e.g. schema update from #220592: Core cache API breaks update.module: fetches data way too often, kills site performance, etc and possible new hook from #445748: Add hook_update_projects_alter()) I'd be really happy to break the string freeze and clean up these other UI problems, too. No idea if that's going to work. @Dries/@Gabor: thoughts?

tixilite’s picture

Patch seems good, however, this line "Note that each module or theme is part of a "project", which may or may not have the same name, and might include multiple modules or themes within it" is a bit confusing and I don't really understand it. I don't find the need for it.

Bojhan’s picture

Issue tags: +Needs screenshots

Can I have a before/after?

pwolanin’s picture

@Bojhna of the updates report or the admin screen? The updates report did not change from before.

The admin screen changes are just text, but I cann add them

dww’s picture

@Bojhan:

Before: comment #5
After: comment #1

Hint: the only two images in this issue. ;)

pwolanin’s picture

StatusFileSize
new83.96 KB
new87.62 KB

see attached before and after for the admin screen.

pwolanin’s picture

Issue tags: -Needs screenshots

has screenshots..

catch’s picture

Everything looks good to me. I'd mark RTBC except dww wanted a more thorough look.

Bojhan’s picture

The interface is oke, apart from code review this issue is RTBC.

dww’s picture

Note: I also wanted an answer from Dries/Gabor about "can we break translations with this patch when we backport it?".

gábor hojtsy’s picture

Seems like the changes only affect some possibly not often used settings (ie. not critical parts of the update reporting interface), so a string change would not be a problem. If you'd need to modify the critical update reporting parts, then that would be a problem IMHO.

dww’s picture

@Gabor: Cool, thanks. Yes, the only strings changed in #23 are the title and description of a setting on the (rarely used) update module settings tab. The string changes from the other issues would potentially effect the update report itself, but only in pretty rare edge cases. Should I put any energy into D6 versions of those, or are they doomed? ;)

pwolanin’s picture

StatusFileSize
new5.55 KB

straight D6 version - the D7 patch almost applies but needed to do a couple lines by hand for one hunk (maybe whitespace changes).

dww’s picture

Status: Needs review » Reviewed & tested by the community

I've carefully reviewed and tested #37 and it is RTBC. I'm also happy to report that there are no patch conflicts if you apply both this and #220592-33: Core cache API breaks update.module: fetches data way too often, kills site performance, etc. ;)

I've reviewed #23 as well, though I don't currently have a working D7 test environment. However, since it's nearly identical to the D6 patch, and since update.module has barely changed in D7, I see no reason not to commit both.

mcrittenden’s picture

Has my vote. FWIW, I tested D7 patch and everything works as advertised, so yes, RTBC.

webchick’s picture

Version: 7.x-dev » 6.x-dev

Looks good! Committed to HEAD. Marking back to 6.x for Gábor.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Great, committed, thanks!

dww’s picture

Project: Drupal core » Update Status
Version: 6.x-dev » 5.x-2.x-dev
Component: update.module » User interface
Status: Fixed » Patch (to be ported)

We should probably backport this to D5 contrib, too.

Anonymous’s picture

Assigned: Unassigned »
Category: bug » feature
Anonymous’s picture

dww’s picture

Project: Update Status » Drupal core
Version: 5.x-2.x-dev » 7.x-dev
Component: User interface » update.module
Assigned: » Unassigned
Status: Patch (to be ported) » Fixed
StatusFileSize
new5.47 KB

#44 didn't apply to DRUPAL-5--2 (it was only a partial backport). Finished the job, tested, and committed the attached patch to update_status DRUPAL-5--2. Setting this issue back to the original values for posterity. ;)

Status: Fixed » Closed (fixed)

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