Add optional pagination to the incidents API

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

@ishitatrivedi-dell がすでに取り組んでいます。

2026年12月2日 から。

評価

この issue はまだ評価されていません。

説明

dashboard enhancement good first issue help wanted python

Problem

The GET /api/incidents endpoint currently returns every incident from the security report.

As incident volume increases, returning the complete collection may become inefficient.

Suggested Implementation

Add optional limit and offset query parameters with appropriate validation.

Preserve the existing response structure and behavior when pagination parameters are not supplied.

Relevant File

dashboard_api/main.py

Acceptance Criteria

  • Support optional limit and offset parameters.
  • Reject negative offsets and invalid limits.
  • Handle offsets beyond the available incident count.
  • Preserve compatibility with existing API consumers.
  • Add automated tests covering pagination behavior.
主要言語
Python
スター
1
フォーク
3
平均マージ
47分
マージ済み PR(30日)
4

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

hrittijab/SecureOps のほかの issue

hrittijab/SecureOps の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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