Stats: remove the Jetpack Social Connections insight if its endpoint is dead
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
First inspect the iOS Stats insight implementation for InsightType.publicize, StatsPublicizeInsight, and the pinned insights customization flow. Before removing anything, the issue requires checking WordPress.com server code to establish endpoint behavior and current clients, then coordinating with Android. If removal is confirmed, remove the insight, fetch and cache, and ensure pinned cards leave no empty slot.
索引モデルが issue の本文から書いたものです。
説明
The "Jetpack Social Connections" card in Stats Insights (InsightType.publicize) reads from an endpoint that appears to be unused everywhere else and returns no data for nearly every site. If that holds up, we should remove the card.
What we found
The card is built from GET /rest/v1.1/sites/<id>/stats/publicize (StatsPublicizeInsight in WordPressKit), which returns follower counts per social network.
- It returns nothing in practice. It returned
{"services": []}for 387 of the 389 sites on one account, includingjetpack.wpmt.co. The other 2 don't have the Stats module. - It only knows about old networks. Calypso maps each returned service through a fixed table (
PUBLICIZE_SERVICES_LABEL_ICONinclient/state/stats/lists/constants.js) and would throw on any name it doesn't know. The table has 6 entries: Twitter, Facebook, Tumblr, Google+, LinkedIn and Path. It hasn't changed since 2016, and Path and Google+ no longer exist. - The newer Jetpack Social networks aren't covered. Jetpack Social now supports Bluesky, Facebook, Instagram, LinkedIn, Mastodon, Nextdoor, Threads and Tumblr (
wpcom/v2/sites/<id>/publicize/services). We could not find follower counts for any of them in Calypso or in Jetpack's open-source Publicize package. - Calypso no longer shows it. The web Stats UI has no Publicize module anymore. Only a leftover
STAT_TYPE_PUBLICIZEconstant and its strings remain.
Requirement before removing anything
We have not looked at the WordPress.com server code for stats/publicize, because it isn't public. Before removing the card, someone must check it and confirm:
- Which services the endpoint can return today, and whether any of the current Jetpack Social networks are included.
- Whether the endpoint is deprecated or still maintained.
- Whether any other client (Android, Calypso, Jetpack) still uses it.
If it is dead
- Remove the
publicizeinsight type, its card, and theStatsPublicizeInsightfetch and cache from the iOS app. - Make sure users who had the card pinned in "Customize your insights" don't end up with an empty slot.
- Coordinate with Android, which likely has the same card.
Related
- Found while converting the Stats xibs to code. The card renders the same before and after that work.
- The card has a latent bug: with
limitRowsDisplayed: false, only the first 6 rows are ever shown and there is no "View more". The endpoint can return at most 6 services, so real data can't trigger it. Removing the card makes it moot.
- 主要言語
- Swift
- スター
- 3.9k
- フォーク
- 1.2k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 136
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wordpress-mobile/WordPress-iOS のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
wordpress-mobile/WordPress-iOS#26423 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Pri] Low [Status] Ready for Dev [Type] Bug /Me
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wordpress-mobile/WordPress-iOS#26279 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Pri] Low [Status] Ready for Dev [Type] Bug Share Extension
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
wordpress-mobile/WordPress-iOS#26276 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Pri] Low [Status] Ready for Dev [Type] Bug Blogging Prompts Notifications
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
wordpress-mobile/WordPress-iOS#26256 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Status] Ready for Dev [Type] Bug Reader
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
wordpress-mobile/WordPress-iOS#26254 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
wordpress-mobile/WordPress-iOS の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Optional callbacks log "Unable to create JSCallback" when passed null対応中かも @cmsj が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
cmsj/Hammerspoon2#464 ·
-
android bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
VocaHQ/vocaphone#470 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
new-compilers request
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
compiler-explorer/compiler-explorer#9640 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
RevenueCat/purchases-ios#8312 ·
メンテナーはふだん 1 日以内に返信