strapi-plugin-comments icon indicating copy to clipboard operation
strapi-plugin-comments copied to clipboard

feat: lifecycle hooks

Open CodeVoyager opened this issue 11 months ago • 1 comments

Ticket

https://github.com/VirtusLab-Open-Source/strapi-plugin-comments/issues/202

Summary

What does this PR do/solve?

  • adding lifecycle hooks to comments content types

Test Plan

  • register lifecycle hooks (see README.md)
  • start a server
  • trigger lifecycle action (afterCreate for example)
  • observe results
  • lifecycle event should be triggered

CodeVoyager avatar Mar 02 '24 08:03 CodeVoyager

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.97%. Comparing base (2aa8011) to head (8cdb699).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #251      +/-   ##
==========================================
+ Coverage   80.56%   80.97%   +0.41%     
==========================================
  Files          35       35              
  Lines         926      946      +20     
  Branches      314      316       +2     
==========================================
+ Hits          746      766      +20     
  Misses        176      176              
  Partials        4        4              
Flag Coverage Δ
unittest 80.97% <100.00%> (+0.41%) :arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 02 '24 08:03 codecov[bot]