Stats: remove the Jetpack Social Connections insight if its endpoint is dead
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Swift
- Estrellas
- 3.9k
- Forks
- 1.2k
- Merge medio
- 1 d 23 h
- PR fusionados (30 d)
- 136
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de wordpress-mobile/WordPress-iOS
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
wordpress-mobile/WordPress-iOS#26423 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Pri] Low [Status] Ready for Dev [Type] Bug /Me
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wordpress-mobile/WordPress-iOS#26279 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Pri] Low [Status] Ready for Dev [Type] Bug Share Extension
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
wordpress-mobile/WordPress-iOS#26276 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Pri] Low [Status] Ready for Dev [Type] Bug Blogging Prompts Notifications
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
wordpress-mobile/WordPress-iOS#26256 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[Status] Ready for Dev [Type] Bug Reader
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
wordpress-mobile/WordPress-iOS#26254 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de wordpress-mobile/WordPress-iOS
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Optional callbacks log "Unable to create JSCallback" when passed nullPosiblemente ocupada @cmsj la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
cmsj/Hammerspoon2#464 ·
-
android bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
VocaHQ/vocaphone#470 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
new-compilers request
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
compiler-explorer/compiler-explorer#9640 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
RevenueCat/purchases-ios#8312 ·
Los mantenedores suelen responder en 1 día