feat(api): use profiles.displayName instead of email in admin review/comment joins

オープン
#2,003 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
typescript
領域
api, backend

調査の方向性

Start with packages/api/src/routes/admin/events/byId.ts and packages/api/src/routes/admin/announcements/byId.ts, tracing how reviewerName and authorName are currently resolved. Update the joins to use profiles.displayName through profiles.userId = users.id, with email as the null fallback, and ensure the admin detail pages render those fields directly. Done means both admin detail routes provide the expected names without UI changes.

索引モデルが issue の本文から書いたものです。

説明

Summary

Admin detail pages (events + announcements) currently join users.email to surface reviewer / comment-author identity. Display name is the right field for human-readable attribution; fall back to email only when display name is null.

Requirements

  • Resolve reviewer/author display name from profiles.displayName (joined on profiles.userId = users.id) in:
    • packages/api/src/routes/admin/events/byId.ts
    • packages/api/src/routes/admin/announcements/byId.ts
  • Fall back to email when displayName is null
  • Update admin detail pages to render reviewerName / authorName directly (no UI changes expected since fields are already optional)

Context

Flagged in the Plan 3 review. Audit panel and review history will also benefit (same pattern).

主要言語
HTML
スター
33
フォーク
107
平均マージ
14時間 6分
マージ済み PR(30日)
19

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

USRSE/usrse.github.io のほかの issue

USRSE/usrse.github.io の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。