Comments block not displaying as expected in HTML / PDF export

Bug #1873122 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Lisa Seeto

Bug Description

Reported that this is not working - so needs some testing to make sure

Test as
1) full export of user
2) export of a page/collection

Robert Lyon (robertl-9)
Changed in mahara:
milestone: none → 20.04rc1
Lisa Seeto (lisaseeto)
Changed in mahara:
status: New → In Progress
assignee: nobody → Lisa Seeto (lisaseeto)
Revision history for this message
Lisa Seeto (lisaseeto) wrote :

The patch found here: https://reviews.mahara.org/#/c/10910/1/htdocs/export/lib.php made it possible for comments to be included in pdf exports. Currently on a page containing a comment block both the HTML and PDF export is displaying the comments in the comment block AND in the page comments.

If the includefeedback flag is true, and a comment block is encountered, either we display the comment block and not the page comments or we skip the block and only display the page comments.

Lisa Seeto (lisaseeto)
Changed in mahara:
milestone: 20.04rc1 → 20.04rc2
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/10922

Revision history for this message
Robert Lyon (robertl-9) wrote :

We still need to check if we respect the include comments switch when a comment block is on a page

if 'include comments' is false we should not display the comments block

Changed in mahara:
importance: Undecided → Medium
Revision history for this message
Robert Lyon (robertl-9) wrote :

Using 3 different images
I added a user and set their profile icon to a new image (image 1)
I made 2 pages, one with an image block (image 2) and comment block, and the other just with an image block (image 3)
I added the 2 pages I made to a new collection
I then went into the collection and commented on both of the pages

I did an export of the collection only and set 'Include comments' to 'Yes'

Things that I noticed that need fixing:

1) Both the html and pdf results have a broken profile icon image for the commenter
- also the block version is missing the alt text for the image

2) The block version is displaying the 'edit' button if you export with a few seconds of making the comment (the base version doesn't) so the edit button needs to not be seen in export

I did an export of the collection only and set 'Include comments' to 'No'

The page with comments at base did not show comments (this is correct)
The page with comments in the block did show comments - I believe this is not correct - when one chooses not to include comments then the content of the comment block should be either empty or have some text mentioning that comments were not exported

Revision history for this message
Lisa Seeto (lisaseeto) wrote :

It was decided that issue 1) of comment #4 concerning profile icon images would be addressed here:
https://bugs.launchpad.net/mahara/+bug/1874341

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10922
Committed: https://git.mahara.org/mahara/mahara/commit/395d4e890104d4d22407e04dc839b62554f4805b
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 395d4e890104d4d22407e04dc839b62554f4805b
Author: Lisa Seeto <email address hidden>
Date: Wed Apr 22 15:28:07 2020 +1200

Bug 1873122: Comments block not displaying as expected in HTML / PDF export

- added feedback->position conditional to export template
- add exporting to comment options to prevent editing form on exported page
- add check for exporter->includefeedback for comment block & alter .tpl

Change-Id: I4d651f17b31a83078f69df5a6d470647ee27d105
Signed-off-by: Lisa Seeto <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "20.04_STABLE" branch: https://reviews.mahara.org/10928

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10928
Committed: https://git.mahara.org/mahara/mahara/commit/8afe70132c8a4961efaf6e32a3097ba31dbb8714
Submitter: Robert Lyon (<email address hidden>)
Branch: 20.04_STABLE

commit 8afe70132c8a4961efaf6e32a3097ba31dbb8714
Author: Lisa Seeto <email address hidden>
Date: Wed Apr 22 15:28:07 2020 +1200

Bug 1873122: Comments block not displaying as expected in HTML / PDF export

- added feedback->position conditional to export template
- add exporting to comment options to prevent editing form on exported page
- add check for exporter->includefeedback for comment block & alter .tpl

Change-Id: I4d651f17b31a83078f69df5a6d470647ee27d105
Signed-off-by: Lisa Seeto <email address hidden>
(cherry picked from commit 395d4e890104d4d22407e04dc839b62554f4805b)

Revision history for this message
Robert Lyon (robertl-9) wrote :

The profile icon issue is not specific to comments but a generic issue with exports and is handled by https://bugs.launchpad.net/mahara/+bug/1874341

Changed in mahara:
milestone: 20.04rc2 → 20.04.0
status: In Progress → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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