Unable to disable Lessons SiteStats
Description
Attachments
- 11 Apr 2019, 09:30 AM
- 11 Apr 2019, 09:30 AM
- 25 Jan 2019, 10:22 AM
- 21 Dec 2018, 06:11 PM
relates to
Activity
Alan Regan July 9, 2019 at 1:08 PMEdited
For some added context, this ticket was created initially because the statistics for Lessons back in 2017 within the "Statistics" tool was completely broken. At that time, there was a Lessons module in Statistics but it never displayed the correct stats, often just 0 activity. The goal was to have an option to completely hide that element of the Statistics tool since instructors could not rely on it back then. Basically, we wanted to hide it across the entire installation until the underlying problem was fixed.
Thankfully, the Lessons stats now display in Statistics, so the initial reason for the setting has been addressed. For consistency sake, it's great to have the property to turn off the display of Lessons stats in Statistics in the event that an institution wanted to do so. And it's awesome that the module would be hidden by default if the Lessons tool isn't deployed in a site – makes perfect sense.
So the goals of this ticket have been met. I agree with Curtis that a site-by-site setting made by an instructor or site maintainer would be a new ticket.
Curtis Van Osch July 9, 2019 at 12:35 PM
According to the description the goal of this issue is to make the lessons section in SiteStats behave like the resources section, that is to say hide it when no lessons tools are in the site or when the property says to.
Allowing the user to hide certain sections from the overview page will require another issue I think, such a feature currently does not exist in SiteStats.
Thomas Kelsey June 26, 2019 at 7:27 AM
@Curtis Van Osch, Has this issue been fixed? It seems like the user should be able to turn off lessons/resources stats without going into the code or taking all the tools off the site.
Curtis Van Osch April 11, 2019 at 12:07 PM
Take a look at the previous messages, disabling the Lessons tool in the SiteStats preferences tab does not hide the Lesson tool statistics on the main page. Only removing all Lesson tools in the site, or setting the new property in the server configuration, will do that.
This is the same behaviour as for the Ressources tool.
Prabhleen Kaur April 11, 2019 at 10:03 AM
I tested the JIRA on *server* - https://trunk-mysql.nightly.sakaiproject.org/portal/site
*Browser* - Chrome , Firefox
I did uncheck the Lessons tool under preferences but still I can see the Lesson tool statistics. I have attached the snip.
There is no option to disable the display of Lessons site statistics like there are for the others. Below is a property to disable the resources widget. There is no boolean flag to disable lessons sitestats.
enableResourceStats@org.sakaiproject.sitestats.api.StatsManager=false
Additionally to be consistent with lessons it should also not be present if lessons isn't added to a site.