VirtusLab-Open-Source / strapi-plugin-comments

A plugin for Strapi Headless CMS that provides end to end comments feature with their moderation panel, bad words filtering, abuse reporting and more.
MIT License
405 stars 63 forks source link

Feat/multiple reports resolution #148

Closed cyp3rius closed 2 years ago

cyp3rius commented 2 years ago

Ticket

https://github.com/VirtusLab/strapi-plugin-comments/issues/145 point no. 3

Summary

What does this PR do/solve?

Provides ability to resolve multiple abuse reports at once

Test Plan

  1. Add couple reports against the comment
  2. Open the resolution panel
  3. Mark more than one and click "Resolve selected"
codecov-commenter commented 2 years ago

Codecov Report

Merging #148 (b4bbdcc) into master (e794a9b) will increase coverage by 18.82%. The diff coverage is 55.55%.

@@             Coverage Diff             @@
##           master     #148       +/-   ##
===========================================
+ Coverage   61.97%   80.79%   +18.82%     
===========================================
  Files           9        9               
  Lines         547      552        +5     
  Branches      210      211        +1     
===========================================
+ Hits          339      446      +107     
+ Misses        205      104      -101     
+ Partials        3        2        -1     
Flag Coverage Δ
unittest 80.79% <55.55%> (+18.82%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/services/common.ts 79.65% <0.00%> (+2.32%) :arrow_up:
server/services/admin.ts 89.25% <83.33%> (+84.08%) :arrow_up:
server/utils/functions.ts 39.13% <0.00%> (+4.34%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e794a9b...b4bbdcc. Read the comment docs.