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

Aberta
#232 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
28/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
csharp
Domínio
api, backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C#
Estrelas
13
Forks
3
Merge médio
12h 33min
PRs com merge (30d)
13

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de fboucher/NoteBookmark

Todas as issues de fboucher/NoteBookmark

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.