Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`/api/tree` API applies unneeded time filter by default

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python
領域
api, web-dev

調査の方向性

/api/tree エンドポイントとダッシュボードの / および /tree ルートを追跡することから始め、interval_in_days にデフォルト値が設定される箇所に注目してください。現在の動作を確認し、これらのエントリーポイント全体でデフォルト値が未設定になるようにしたうえで、パラメーターなしのリクエストが利用可能な最新のチェックアウトをすべて返し、リダイレクトにハードコードされたインターバルがないことを確認してください。

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

説明

Description

/api/tree queries for the latest checkout for each tree. By default, it filters by checkouts in the last 7 days. However, this operation is really fast now (queries a pre-computed table), and there should be no reason to have this limit by default.

Related to this, there is a misagreement between the API and the dashboard here:

  • API default is interval_in_days=7 (as mentioned above)
  • The dashboard root / redirects to /tree?i=7 and queries with interval_in_days=7 (not present in production)
  • Dashboard /tree queries with interval_in_days=30

Proposed solution

Therefore, I suggest:

  • Keep interval_in_days as optional, but do not filter if unset
  • Make / redirect to /tree without hardcoded parameters
  • Make /tree query with interval_in_days unset by default
    • Alternatively, grab the default directly from the backend
主要言語
Python
スター
10
フォーク
32
平均マージ
5日 22時間
マージ済み PR(30日)
19

環境構築

はじめの一歩

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

kernelci/dashboard のほかの issue

kernelci/dashboard の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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