chore(integrations): move polar off api version 2026-10 before april 2027

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
next.js, typescript
Ambito
api, backend, testing

Direzione di ricerca

Start with src/lib/adapters/polar/index.ts and the Polar fixtures and schemas, then check Polar's changelog for the current API version and verify the fixtures against its reference. Review docs/providers/polar.md for version and webhook guidance. Done means the adapter, schemas, fixtures, existing webhook endpoints, documentation, and removal-date CI check meet the acceptance criteria; run the listed typecheck, lint, and Vitest commands.

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

Descrizione

area: integrations enhancement impact: medium priority: P2 size: XS

Context

Found by the Fable pre-production review on 2026-12-02 (main at cedc1914; every line reference below re-checked on main at cde5aa3b). Sources: provider connect readiness report N9, and product triage report new issue 5.

The Polar adapter pins API version 2026-10 on every call, the OAuth token and revoke requests included (POLAR_API_VERSION, src/lib/adapters/polar/index.ts:103-112, also :370), and on webhook endpoints it creates (api_version: POLAR_API_VERSION, :1209). The code says "2026-10 is removed in the first week of April 2027, then every call answers 404" (index.ts:105), and so does docs/providers/polar.md:263 (Polar's versioning page). Today the deadline lives only in a code comment and a docs line.

Impact: from the first week of April 2027 every Polar sync fails with invalid_response and every Polar connect fails, for every user. Nothing self-heals.

Plan

  1. Before 2027-03-15, read Polar's changelog for the then Current version and move POLAR_API_VERSION and the schemas to it.
  2. Recheck the fixtures against the new reference.
  3. Handle webhook endpoints created with 2026-10: update their api_version or recreate them, and say which in docs/providers/polar.md.
  4. Add a check that fails CI within 30 days of a pinned version's removal date (a dated constant next to the pin).

Acceptance criteria

  • Adapter, schemas, and fixtures use the then Current Polar version.
  • Existing webhook endpoints are handled.
  • A test fails within 30 days of the pinned version's removal date.
  • docs/providers/polar.md names the new version and its removal date.
  • Playwright e2e: none needed, no screen changes.

Files and areas

src/lib/adapters/polar/, its fixtures, docs/providers/polar.md.

Non-goals: Polar iss handling (#227).

Verification

npm run typecheck, npm run lint, npx vitest run src/lib/adapters/polar.


Branch: <issue-number>-polar-api-version

Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown

Lingua principale
TypeScript
Stelle
13
Fork
2
Merge medio
5h 20m
PR unite (30g)
287

Preparare l'ambiente

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 eddiejaoude/StackDash

Tutte le issue di eddiejaoude/StackDash

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.