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

feat: CU-86934hnmg rest api skipping fields

Open CodeVoyager opened this issue 11 months ago • 2 comments

Ticket

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

Summary

What does this PR do/solve?

  • fields of comment entity can be skipped

Test Plan

  • start the server
  • make a API call like http://localhost:1337/api/comments/<id>?omit[]=blocked&omit[]=related&omit[]=author
  • response should not contain specified fields

CodeVoyager avatar Mar 16 '24 07:03 CodeVoyager

Codecov Report

Attention: Patch coverage is 92.30769% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 80.90%. Comparing base (2a49049) to head (cd39582).

Files Patch % Lines
server/services/common.ts 91.66% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #252      +/-   ##
==========================================
- Coverage   80.97%   80.90%   -0.08%     
==========================================
  Files          35       35              
  Lines         946      953       +7     
  Branches      316      321       +5     
==========================================
+ Hits          766      771       +5     
- Misses        176      178       +2     
  Partials        4        4              
Flag Coverage Δ
unittest 80.90% <92.30%> (-0.08%) :arrow_down:

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 16 '24 07:03 codecov[bot]