Bundle storage report with bulk retention-limit management (pins focus)

Aperta
#488 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

@kellobri ci sta già lavorando.

Dal 23/11/2026.

  • #489 di @kellobri — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
analytics, api

Direzione di ricerca

This is a multi-feature proposal, so start by agreeing on scope with the maintainers before coding. Read the endpoints named in the issue: GET /v1/content, GET /v1/content/{guid}/storage (admin-only), the /bundles fallback, and the content update API for the retention limit. Done would mean a reporting view with sorting, filtering and CSV export, plus a bulk retention-limit action, all tested against an admin API key.

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

Descrizione

enhancement

Admins want to see which content items use the most bundle storage, especially pins, where every version is a separate bundle. Then they want to cut that storage down. Connect now lets you set a bundle retention limit for each content item, but you can only do it one item at a time. Admins have no single view that shows storage across the server and lets them act on it.

This proposes a Gallery extension that reports bundle storage and lets an admin apply retention limits in bulk.

Proposed features

Reporting
• List content with bundle storage per item: total, active and inactive bytes, plus the number of bundles/versions.
• Filter by content type, with a quick "pins only" filter (content_category == "pin").
• Sort by total or inactive storage so the largest items show first.
• Show the owner, so admins can contact publishers about migrating very large pins to more suitable storage.
• Show each item's current retention limit, whether it's the per-item setting or the server default.
• Export to CSV.

Actions
• Select multiple items and set a bundle retention limit on all of them in one action.
• Link through to each item's settings in the Connect UI so an admin can adjust its retention limit by hand.

Implementation notes

• Content list: GET /v1/content
• Storage: GET /v1/content/{guid}/storage (admin-only; returns bundle_bytes_total / bundle_bytes_active / bundle_bytes_inactive). Fall back to summing size from GET /v1/content/{guid}/bundles on older servers.
• Retention limit: the per-content bundle retention setting via the content update API
• Needs to run with an admin API key / visitor admin role to see all content.

Lingua principale
R
Stelle
10
Fork
8
Merge medio
9h 43m
PR unite (30g)
2

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 posit-dev/connect-extensions

Tutte le issue di posit-dev/connect-extensions

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.