Strings missing in overview report for an institution

Bug #1864337 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Invalid
Medium
Gold

Bug Description

When you are on the reports page and you pull the overview report for an institution, there are strings missing in the "Pages overview" section (see screenshot). Since the screenshot was taken on a test site, there may be more strings missing for the blocks.

To replicate:

1. Create an institution on the site.
2. Add some people to the institution.
3. Add 2 pages to one of the member's accounts.
4. Go to 'Admin menu' -> 'Reports' -> Click 'Configure reports' -> Select the institution -> Double-check that the report type is 'Overview' -> Click the 'Submit' button.
Expected result:

1. 'My portfolios' is displayed under the heading 'Most frequently used blocks in portfolio pages'.
2. 'Profile' is displayed under the heading 'Pages by type'.

Actual result:

1. '[[title/blocktype.myviews]]:' is displayed instead.
2. '[[profile/view]]' is displayed instead.

To test when changes have been made: Everything still displays correctly when 'All institutions' is selected for the report.

Tags: bite-sized
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :
Gold (gold.catalyst)
Changed in mahara:
assignee: nobody → Gold (gold.catalyst)
Gold (gold.catalyst)
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Gold (gold.catalyst) wrote :

Having trouble replicating this.

Looking at the screenshot it appears to be related to blocks though. Adding blocks to the page to see if that floats the issue to the surface.

Revision history for this message
Gold (gold.catalyst) wrote :

I am unable to replicate this.

After following the instructions I am finding that the donut chart is not actually presented so the legend item [[profile/view]] isn't being presented.

The [[title/blocktype.myviews]] token (My Portfolios) is also not presented. When creating a Page the My Portfolios block is not in the list of those available.

The My Portfolios block *is* available on the /user/view.php?id=[ID] page though.

This bug is almost a year old. Is it still current?

Changed in mahara:
status: In Progress → Incomplete
Revision history for this message
Gold (gold.catalyst) wrote :

For context this testing was done on the master branch at commit c5824bfd3a83a7e5b168bd068fc654f0f82acecd.

Digging into this further, there was a commit 4 years ago that would have made the scenario of the My Profile block appearing in the list impossible. That was on Bug 1697248 which had a large amount of refactoring happen. Part of that included filtering these results so only view.type portfolio was counted.

This happened in this file/commit: https://reviews.mahara.org/#/c/7896/31/htdocs/lib/statistics.php

Removing "AND v.type = 'portfolio'" from the query on line 472 of lib/statistics.php does expose all of the other block types in the results and it *does* show the [[title/blocktype.myviews]] token rather than the actual title. In the previously mentioned refactoring there is code in one area that does fix this sort of thing for one other area (see block_type_graph() in the same file) but it does not appear to be used in the other 3 areas this sort of query is being called.

On another note, I got the Pages by type donut graph populated and can confirm that the
[[profile/view]] token is being rendered as its actual string.

Unless further details on replicating this are presented I don't see this being a valid bug at this point.

Changed in mahara:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.