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

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

@kellobri がすでに取り組んでいます。

2026年11月23日 から。

  • #489 @kellobri による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
領域
analytics, api

調査の方向性

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.

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

説明

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.

主要言語
R
スター
10
フォーク
8
平均マージ
9時間 43分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

posit-dev/connect-extensions のほかの issue

posit-dev/connect-extensions の issue をすべて見る

似ている issue

R の issue をもっと見る

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

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