AACraiu / AACraiu/golfr_backend
Limit the number of scores in the feed
未關閉
適合新手
- 主要語言
- Ruby
- 星號
- 1
- 分支
- 65
- PR 合併指標
- 30 天內沒有已合併 PR
描述
The scores table can get big pretty fast, so as a performance measure, we should limit the number of scores returned for the feed.
Normally, we would add some pagination, but for now, let's just return the most recent 25 scores. Add a test for this.
Make sure `rubocop` and `rspec` pass.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
查找取得 scores 的 feed endpoint 或 query,可能在 controller 或 service 檔案中。修改它,將結果限制為依建立日期排序的最新 25 筆 scores。在對應的 spec 檔案中撰寫一個 test,驗證該限制有效。執行 rubocop 和 rspec 以確保所有內容都通過。
由索引模型根據 Issue 內容生成。
評估
- 領域
- api, backend, databases
- Issue 類型
- 功能
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 70/100