Allow event batching
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- api
調査の方向性
Start by reading the Push API specification around PushManager.subscribe and push event delivery; the issue does not name a file or test. Define how opt-in coalescing affects queued messages and event handling, then add specification text and tests that show a subscription with coalesce: true delivers a batch that developers can use to make one request and choose a notification.
索引モデルが issue の本文から書いたものです。
説明
Right now, Safari fires push events sequentially, as in it fires the event, then waits for all the event.waitUntil calls to settle, before it fires the next one.
Assuming that events are generally processed like this:
- Look at push payload
- Show notification based on that payload
Or:
- Look at push payload
- Make network request for data
- Show notification based on payload + response
In cases where the device has a queue of push messages, it seems advantageous to batch these into a single event. This would allow developers to make a single network request, rather than a series of network requests, and be smart about the notification displayed, e.g. "You have 7 new messages".
There's prior art here with getCoalescedEvents.
This would need to be opt-in as part of pushManager.subscribe, eg:
await serviceWorkerRegistration.pushManager.subscribe({
coalesce: true,
});
- 主要言語
- HTML
- スター
- 158
- フォーク
- 43
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
w3c/push-api のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
-
Do we want to allow a subscription from window.pushManager to fire push event for non-DWP messages?オープン
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
zold-io/wts.zold.io#620 ·
メンテナーはふだん 1 日以内に返信
-
bug file-compat priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
storytold/wordcraft#6209 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
backlog multiple issues priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
storytold/pdfcraft#6911 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信