Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
update.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2009 at 21:53 UTC
Updated:
15 Jun 2009 at 20:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pwolanin commentedHere'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.
Comment #2
pwolanin commentedpatch is the same for D6 and D7 - rerolled D6 for indentation.
Comment #3
webchickPeter, 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.
Comment #4
pwolanin commentedOk, 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.
Comment #5
pwolanin commentedComment #6
webchickCool. 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.
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?
Comment #7
pwolanin commentedopps - we want it to be "easier"
@webchick - I'm agnostic on that question, so I can roll it the other way too.
Comment #8
pwolanin commentedComment #9
Bojhan commentedJust 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.
Comment #10
catchI 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.
Comment #11
Bojhan commentedcatch: what about just the normal background white?
Comment #12
pwolanin commented@Bojan - I thought an additional background with similar brightness would be easier on the eyes that having one be stark white.
Comment #13
gábor hojtsyI 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.
Comment #14
dries commentedI support this change too (but haven't reviewed the patch yet).
Comment #15
dwwI'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...
Comment #16
webchickdww'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.
Comment #17
pwolanin commented@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.
Comment #18
pwolanin commentedOk, now the variable affects e-mail sending as it says it will.
Comment #19
dries commentedThis 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.
Comment #20
pwolanin commented@Dries - not sure I understand. The last patch makes it so the setting does apply to e-mail only.
Comment #21
dries commentedpwolanin, 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.
Comment #22
webchickComment #23
pwolanin commentedsettings page text altered.
Comment #24
dww#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?
Comment #25
tixilite commentedPatch 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.
Comment #26
Bojhan commentedCan I have a before/after?
Comment #27
pwolanin commented@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
Comment #28
dww@Bojhan:
Before: comment #5
After: comment #1
Hint: the only two images in this issue. ;)
Comment #29
pwolanin commentedsee attached before and after for the admin screen.
Comment #30
pwolanin commentedhas screenshots..
Comment #32
catchEverything looks good to me. I'd mark RTBC except dww wanted a more thorough look.
Comment #33
Bojhan commentedThe interface is oke, apart from code review this issue is RTBC.
Comment #34
dwwNote: I also wanted an answer from Dries/Gabor about "can we break translations with this patch when we backport it?".
Comment #35
gábor hojtsySeems 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.
Comment #36
dww@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? ;)
Comment #37
pwolanin commentedstraight D6 version - the D7 patch almost applies but needed to do a couple lines by hand for one hunk (maybe whitespace changes).
Comment #38
dwwI'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.
Comment #39
mcrittenden commentedHas my vote. FWIW, I tested D7 patch and everything works as advertised, so yes, RTBC.
Comment #40
webchickLooks good! Committed to HEAD. Marking back to 6.x for Gábor.
Comment #41
gábor hojtsyGreat, committed, thanks!
Comment #42
dwwWe should probably backport this to D5 contrib, too.
Comment #43
Anonymous (not verified) commentedComment #44
Anonymous (not verified) commentedComment #45
dww#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. ;)