feat(payments): per-plan event rate limits and retention
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Is your feature request related to a problem? Please describe.
Rate limits (limits.event.rateLimits) and retention (limits.event.retention) are global, so a paying subscriber on a premium plan gets the same limits as everyone else. Tiered access (#673) needs these to depend on the sender's active plan.
Describe the solution you'd like
- Plans can define their own event rate limits;
EventMessageHandler.isRateLimiteduses the plan's set for a subscriber and the global set otherwise, keyed the same way as today. - Plans can define their own retention (
maxDays); the maintenance purge applies it per subscriber instead of one global value, keeping the existing kind/pubkey whitelists. - The plan lookup reuses the admission cache so no extra database read happens per event.
- Documentation in
CONFIGURATION.mdand tests for both limit paths, including expiry falling back to the global limits.
Additional context
- Design: #673. Per-plan connection/subscription-count limits are more invasive (adapter level) and left for a follow-up unless maintainers want them here.
- 主要言語
- TypeScript
- スター
- 829
- フォーク
- 234
- 平均マージ
- 15時間 58分
- マージ済み PR(30日)
- 73
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cameri/nostream のほかの issue
-
Website
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
feat(payments): let clients see their subscription tier対応中かも @Priyanshubhartistm が今日担当しました。 オープンenhancement
cameri/nostream#925 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
chore: sunset the StaticMirroringWorker in favour of negentropy sync対応中かも @Priyanshubhartistm が今日担当しました。 オープンenhancement
cameri/nostream#923 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Three repositories have no unit tests (notification-outbox, notification-delivery-log, nip05-verification)対応中かも @Priyanshubhartistm が 1 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 72/100
cameri/nostream#905 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
cameri/nostream の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
zts212653/clowder-ai#1678 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
Progressive-Victory/the-website#680 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100