beta3 blocker: Usability and string freeze: rename admin/logs to admin/reports

dww - August 7, 2007 - 07:01
Project:Drupal
Version:6.x-dev
Component:base system
Category:task
Priority:critical
Assigned:dww
Status:closed
Description

When moving update_status into D6 as update.module (http://drupal.org/node/94154), Dries pointed out that admin/logs/* didn't seem like an obvious place to look for the available updates page, but I pointed out it's right next to the status report. We agreed that renaming this section of the admin menu to be "admin/reports" makes much more sense. The log pages you get to from there all seem like reports already ("Top pages", "Recent log entries", "Recent hits", etc), and the "Status report" and "Available updates" fit more naturally.

#1

Michelle - September 18, 2007 - 20:26

+1 from me. I'm all for giving the menus clearer names and reports is much better, IMO.

Michelle

#2

yoroy - September 18, 2007 - 20:34

+1. Reports is much better. Less geeky and just a better term for what you'll find there.

#3

dww - September 19, 2007 - 04:34
Component:system.module» base system
Assigned to:Anonymous» dww
Status:active» patch (code needs review)

This patch assumes you've already applied the fix for http://drupal.org/node/176805. If you don't apply that first, you'll get a single hunk that fails against update.php, but that's minor and can basically be ignored if you still want to review/test everything else.

Also, please note that this patch does *not* fix http://drupal.org/node/139015. I'll re-roll that patch when/if this one lands.

AttachmentSize
165140_reports.patch.txt29.07 KB

#4

hass - September 21, 2007 - 12:20
Status:patch (code needs review)» patch (code needs work)

use url() or l() for urls index.php?q=admin/reports/dblog or basepath may not work.

#5

hass - September 21, 2007 - 12:23

and try to move URLs out of translatable strings and replace them with url placeholders...

#6

dww - September 21, 2007 - 16:46
Status:patch (code needs work)» patch (code needs review)

@hass: your review is of the wrong patch, but i see you commented in http://drupal.org/node/176805, too, which is where this code originates. setting this back to needs review, since everything else in here is still valid.

#7

hass - September 21, 2007 - 17:00
Status:patch (code needs review)» patch (code needs work)

this patch contains such a link, too.

-    $log_message = ' All errors have been <a href="index.php?q=admin/logs/dblog">logged</a>.';
+    $log_message = ' All errors have been <a href="index.php?q=admin/reports/dblog">logged</a>.';

#8

dww - September 21, 2007 - 17:25
Status:patch (code needs work)» patch (code needs review)

Here's a new patch based on the latest from http://drupal.org/node/176805

@hass: for the 3rd time...

This patch assumes you've already applied the fix for http://drupal.org/node/176805. If you don't apply that first, you'll get a single hunk that fails against update.php, but that's minor and can basically be ignored if you still want to review/test everything else.

*sigh*

Please either understand the issues and the patches, or leave them alone. Thanks.

AttachmentSize
165140_reports.patch_2.txt29.08 KB

#9

Gábor Hojtsy - October 2, 2007 - 08:43

176805 is resolved now, so this patch can stand on its own.

While I am fine with renaming admin/logs to admin/reports, it can be taken as a usability / simplification fix. I am not sure it is the best idea to do it now, but if carefully done, it could work well, IMHO. Still, if I were dww, I would wait for Dries to approve :)

#10

dww - October 2, 2007 - 09:06

Thanks for committing that other patch, Gabor, makes this one easier to work with. Yup, #8 still applies (with minor offsets). But yeah, let's see what Dries has to say about this... ;)

#11

Ralf Stamm - October 12, 2007 - 16:30
Status:patch (code needs review)» patch (code needs work)

patch #8 patched function system_update_177()

#12

Ralf Stamm - October 12, 2007 - 16:32
Status:patch (code needs work)» patch (code needs review)

patch rerolled.

AttachmentSize
logs-reports.txt26.11 KB

#13

dww - October 12, 2007 - 18:45

@Ralf, thanks good catch. However, we're still waiting for Dries to at least comment here about his intentions before I spend any more time getting reviews and tests for this. I'm tired of wasting time on core patches that aren't going to be committed.

#14

Ralf Stamm - October 19, 2007 - 11:00

this improves the usability, I hope it gets in soon.

#15

Gábor Hojtsy - October 19, 2007 - 12:10

Discussed this with Dries and we agree that this should be brought forward. It will be committed. Needs testing still.

#16

dww - October 20, 2007 - 19:33
Title:Usability and string freeze: rename admin/logs to admin/reports» beta3 blocker: Usability and string freeze: rename admin/logs to admin/reports
Priority:normal» critical

Great, glad to see it's going to get committed. #12 still applies (with minor fuzz) and in my testing seems to work fine. Obviously, we could use some other testers and reviewers in here. If this is going to make it in for D6, we need to bump the visibility and priority of this, to hopefully get more eyes on the patch...

#17

JirkaRybka - October 20, 2007 - 21:03

Re-rolled to remove the fuzz, otherwise the same patch.

I read the patch file, did a fresh 6.x-dev install with the patch applied, enabled all modules affected by the patch, and browsed all logs/reports pages and other admin pages which I thought may be related, checking for links to logs/reports working. All fine, and no more places to be updated, as far as I can see (which is NOT all pages existing in the UI, no time to check all).

I think this may be RTBC, but preferrably with some more review.

AttachmentSize
logs-reports-2.patch26.04 KB

#18

ChrisKennedy - October 20, 2007 - 21:31

I grepped through the Drupal source and found one minor admin/logs reference in system.install that needed to be converted.

AttachmentSize
logs_reports.patch28.05 KB

#19

dww - October 20, 2007 - 21:42

@ChrisKennedy: That's exactly what comment #12 was about. You (re)changed system_update_177(), but at the time system_update_177() runs, it is still going to be admin/logs, not admin/reports.

So, #18 should be ignored, #17 is our current patch to review...

#20

ChrisKennedy - October 20, 2007 - 21:50
Status:patch (code needs review)» patch (reviewed & tested by the community)

dww: ah, sorry about that, should have read the issue more thoroughly.

Anyway, I tested a D5 -> D6 upgrade and the relevant links for #17; everything worked fine.

#21

Gábor Hojtsy - October 20, 2007 - 21:58
Status:patch (reviewed & tested by the community)» patch (code needs work)

Thanks, committed. The update docs need to have this change listed, so marking as code needs work.

#22

ChrisKennedy - October 20, 2007 - 22:23
Status:patch (code needs work)» fixed

Documented at http://drupal.org/node/114774#admin_logs_to_admin_reports

#23

dww - October 20, 2007 - 22:47

Excellent, thanks folks!

#24

Anonymous - November 12, 2007 - 22:41
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.