misskey-dev / misskey

🌎 A completely free and open interplanetary microblogging platform 🚀
https://misskey-hub.net/
GNU Affero General Public License v3.0
9.95k stars 1.35k forks source link

fix(backend): correct `admin/abuse-user-reports` schema #14711

Closed zyoshoka closed 1 week ago

zyoshoka commented 1 week ago

What

admin/abuse-user-reports のスキーマ修正

Why

https://github.com/misskey-dev/misskey/pull/14675#discussion_r1788545775

Additional info (optional)

forwarded がリクエストのスキーマに入ってしまっていたのは以前からのようなので CHANGELOG 更新しています

Checklist

codecov[bot] commented 1 week ago

Codecov Report

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

Project coverage is 41.33%. Comparing base (9d02697) to head (86bf9fa). Report is 4 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #14711 +/- ## =========================================== + Coverage 39.61% 41.33% +1.71% =========================================== Files 1551 1555 +4 Lines 194866 200643 +5777 Branches 3625 3653 +28 =========================================== + Hits 77201 82934 +5733 - Misses 117065 117108 +43 - Partials 600 601 +1 ```

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

github-actions[bot] commented 1 week ago

このPRによるapi.jsonの差分

差分はこちら ```diff --- base +++ head @@ -854,10 +854,6 @@ "remote" ], "default": "combined" - }, - "forwarded": { - "type": "boolean", - "default": false } } } @@ -923,6 +919,23 @@ "$ref": "#/components/schemas/UserDetailedNotMe" } ] + }, + "forwarded": { + "type": "boolean" + }, + "resolvedAs": { + "type": [ + "string", + "null" + ], + "enum": [ + "accept", + "reject", + null + ] + }, + "moderationNote": { + "type": "string" } }, "required": [ @@ -934,7 +947,11 @@ "targetUserId", "assigneeId", "reporter", - "targetUser" + "targetUser", + "assignee", + "forwarded", + "resolvedAs", + "moderationNote" ] } } ``` [Get diff files from Workflow Page](https://github.com/misskey-dev/misskey/actions/runs/11192162814)
syuilo commented 1 week ago

🙏🏻