Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ランキングが空のときエラー #130

Open
h-takeyeah opened this issue Apr 17, 2024 · 0 comments · May be fixed by #140
Open

[BUG] ランキングが空のときエラー #130

h-takeyeah opened this issue Apr 17, 2024 · 0 comments · May be fixed by #140

Comments

@h-takeyeah
Copy link
Collaborator

症状

ランキングページで件数が0のときに、エラーになる(画面真っ暗)

再現手順

データベースが空でない場合は

DELETE FROM `typing-db`.scores

で消してから /ranking ページにアクセスすると
Go の API からこんなようなのが返ってくる

{
  "rankings": null,
  "total_count": 0
}

これが OpenAPI と合ってないのでどっちか OpenAPI に go の実装を寄せるか go の実装に OpenAPI を寄せるかしてほしい。
できれば null じゃなくて空の配列を返してくれると嬉しいです(= OpenAPI に go の実装を寄せる)。

@h-takeyeah h-takeyeah changed the title [BUG]API 仕様書とサーバ実装の乖離を直す2 [BUG] ランキングが空のときエラー Apr 17, 2024
@KinjiKawaguchi KinjiKawaguchi self-assigned this Aug 7, 2024
@KinjiKawaguchi KinjiKawaguchi added this to the v0.0.3 milestone Aug 7, 2024
@KinjiKawaguchi KinjiKawaguchi added Status: In Progress 対応中 and removed Status: On Hold 保留 labels Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants