Closed cyp3rius closed 2 years ago
:exclamation: No coverage uploaded for pull request base (
develop@9716494
). Click here to learn what that means. The diff coverage isn/a
.
@@ Coverage Diff @@
## develop #133 +/- ##
==========================================
Coverage ? 40.04%
==========================================
Files ? 9
Lines ? 497
Branches ? 192
==========================================
Hits ? 199
Misses ? 296
Partials ? 2
Flag | Coverage Δ | |
---|---|---|
unittest | 40.04% <0.00%> (?) |
Flags with carried forward coverage won't be shown. Click here to find out more.
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 9716494...af08dae. Read the comment docs.
Ticket
https://github.com/VirtusLab/strapi-plugin-comments/issues/113
Summary
What does this PR do/solve?
Provides ability to populate author field and all fields related to it.
Test Plan
Scenario 1
api/comments/api::page.page:1/flat?populate[author][populate][0]=role
role
is part of theauthor
per each commentScenario 2
avatar
field to theUser
Collection and set it for your test usersapi/comments/api::page.page:1/flat?populate[author][populate][0]=role&populate[author][populate][1]=avatar
role
is part of theauthor
per each comment as well asavatar