Where have logs gone?

Where have logs gone?

by Howard Miller -
Number of replies: 7
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
We just upgraded to 4.1 on our main site (from 3.11). This quickly became a huge irritation... I wonder if I've missed something.



...so this is an Assignment and, in particular, its menu. In 3.11, one of the menu options under the "Settings cog" was logs. It opened the logs page with the current activity selected. 

Where has it gone?

Unless I've missed something, I have to go back to the course page (only way is to spot the course in the breadcrumb), select Reports, Select Logs and then find the activity in the dropdown. Which, if the course is huge, can take ages. 

Seems like a serious omission...
Average of ratings:Useful (1)
In reply to Howard Miller

Re: Where have logs gone?

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

It looks like this was deliberate decision: MDL-73373:

This is a followup to address any general tertiary navigation issues in the activities.

Identified issues:

2. Remove 'Logs' and 'Competency breakdown' from the secondary navigation in activities (These links can be accessed through Course > Reports)

It looks like you can get the menu back by editing report/log/lib.php changing lines 129-130 from:

        $navigation->add(get_string('logs'), $url, navigation_node::TYPE_SETTING, null, 'logreport', new pix_icon('i/report', ''))
            ->set_show_in_secondary_navigation(false);

to:

        $navigation->add(get_string('logs'), $url, navigation_node::TYPE_SETTING, null, 'logreport', new pix_icon('i/report', ''));

Screenshot showing Logs menu item under More menu

Perhaps a bit more thought was required before making this change.

Average of ratings:Useful (2)
In reply to Leon Stringer

Re: Where have logs gone?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I don't think your fix will bring up the logs page with that activity already selected, will it? I could live with navigating to the logs page but it's having to find the activity for a second time in some course with 100+ activities that produces the swearing smile

I know these things are personal but this really irks me. Having a direct link to logs with that activity pre-selected was a massive time saver.

If anybod thinks the same, please vote - MDL-78624
Average of ratings:Useful (2)
In reply to Howard Miller

Re: Where have logs gone?

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

I don't think your fix will bring up the logs page with that activity already selected, will it?

It does because the line above it sets the URL and this hasn't changed from Moodle 3.11 (or, indeed, Moodle 2.2).

        $url = new moodle_url('/report/log/index.php', array('chooselog'=>'1','id'=>$cm->course,'modid'=>$cm->id));
Average of ratings:Useful (1)
In reply to Howard Miller

Re: Where have logs gone?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
An interesting aside to this is that there's also now no simple way to get back to the course page. The only way I can see is to find the course in the breadcrumb. Which, again, doesn't always jump out at you.
Average of ratings:Useful (1)
In reply to Howard Miller

Re: Where have logs gone?

by Shirley Gregorczyk -
Picture of Particularly helpful Moodlers
I voted up MDL-78624 and then went back and reviewed MDL-73373. I am puzzled how 73373 had no votes (is that true? or are they no longer counted when the ticket is closed) and no consideration for the administrative users. I need to troubleshoot student issues every day. Terrible change in functionality.
Kind Regards
In reply to Shirley Gregorczyk

Re: Where have logs gone?

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Another thing I have noticed... I have nothing to do with content in our Moodle site and can't stop people doing things like this...



Now that I'm forced to get to logs via the report link... the dropdown looks like this...


How does one tell which is the required Assignment? One does not?   And this is surprisingly common - there's not enough significant letters in that dropdown. Grrrr....
Average of ratings:Useful (2)
In reply to Shirley Gregorczyk

Re: Where have logs gone?

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Shirley, it's true that MDL-73373 has no votes. Votes are not removed when an issue is closed. The issue was created by Mihail, a development team lead at Moodle HQ to track issues identified by the team.

Average of ratings:Useful (2)