Feeds 2/5: fetch feed items in the API with cache and per-feed errors

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
28/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
api, backend

調査の方向性

This is part 2 of 5 and depends on part 1, so start with the data model that part 1 introduces and with the parent issue #230. The work is a fetch-and-cache service behind an API endpoint, with RSS and Atom parsing through System.ServiceModel.Syndication, a 10 s per-feed timeout, and per-feed error results. Done means the unit tests with fake feed XML pass: RSS, Atom, a failing feed, a timeout, and script-tag sanitizing, plus the 30-day, already-a-Post and Added/Skipped filters working.

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

説明

enhancement in-progress ready-for-agent

Sub-issue of #230, written with an AI assistant. Part 2 of 5, depends on part 1.

Goal

An API endpoint that returns the current feed items for all feeds, one group, or one feed.

Scope

  • Fetch RSS and Atom in parallel (System.ServiceModel.Syndication or equivalent), 10 s timeout per feed.
  • In-memory cache of about 15 minutes per feed; a refresh=true parameter bypasses it.
  • Per-feed result: feed id, items, and an error message when the fetch failed (other feeds still return).
  • Item: Url, Title, FeedId, FeedTitle, Published, one-line Excerpt, LeadImageUrl, sanitized HTML Body.
  • Filters: drop items older than 30 days, items whose URL already exists as a Post, items with an Added/Skipped state.
  • Pending counts per group and per feed (for the left pane).
  • Unit tests with fake feed XML (RSS and Atom, a failing feed, a timeout, sanitizing script tags).

Out of scope

UI, background polling.

主要言語
C#
スター
13
フォーク
3
平均マージ
12時間 33分
マージ済み PR(30日)
13

環境構築

はじめの一歩

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

fboucher/NoteBookmark のほかの issue

fboucher/NoteBookmark の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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