Add support for sub-comments to the Reviews backend

Authored by leinir on Dec 11 2019, 2:52 PM.

Description

Add support for sub-comments to the Reviews backend

Summary:
Using a similar style to the comments delegate in KNewStuffQuick, this
adds the functionality for having subcomments in the Reviews model.
The end result is that we no longer have incorrect numbers showing in
Discover, as it now shows all the items returned by the server.

  • Adds a role for the depth of reviews (used for comments on reviews)
  • Adds sub-comments (and set their depth) in the KNS backend's reviews
  • Adapts the ReviewDelegate to have indentation marks (styled like KNSQuick)

BUG: 391191
FIXED-IN: 5.17.0

Test Plan:
Without the patch, incorrect numbers of reviews are shown (as no children are shown). With this patch, children are shown (using the same indentation style as used by KNewStuffQuick):

Reviewers: Discover Software Store, Plasma, apol, ngraham

Reviewed By: Discover Software Store, ngraham

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D25886

Details

Committed
leinirDec 11 2019, 3:35 PM
Reviewer
Discover Software Store
Differential Revision
D25886: Add support for sub-comments to the Reviews backend
Parents
R134:89088f7639a6: Improve Sources page on Plasma Mobile
Branches
Unknown
Tags
Unknown