Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Extract shared query parameter building for issue list operations

Aperta
#83 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github
Ambito
api

Direzione di ricerca

Compare the query parameter building in GetRepositoryIssues.apply() and Repository.get_issues(), including their recover blocks, conditionals, and push calls. Read nearby model convenience methods to assess whether a shared helper fits the broader pattern. Done means the duplicated logic is consolidated without changing issue-list query behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The query parameter building logic in GetRepositoryIssues.apply() and Repository.get_issues() is identical — same recover block, same conditionals, same push calls. If a new parameter is added, both sites must be updated in lockstep.

Repository.get_issues() can't delegate to GetRepositoryIssues.apply() because it has a template URL from the API response rather than owner/repo strings. It could potentially delegate differently, or the shared query param building could be extracted into a helper.

This is a pre-existing pattern in the codebase (other convenience methods on models also duplicate param building), so this may be worth addressing more broadly rather than just for issues.

Lingua principale
Pony
Stelle
7
Fork
2
Merge medio
2h 26m
PR unite (30g)
7

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ponylang/github_rest_api

Tutte le issue di ponylang/github_rest_api

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.