[go: up one dir, main page]

Page MenuHomePhabricator

Add an auto-refresh mechanism to the nearby feature
Closed, ResolvedPublic

Description

For the MVP we'll add a simple auto-refresh that refreshes the relevant markers on move and zoom.

Possible optimizations:

  • Don't refresh when moving but always add new points ( until some limit ).
  • Don't refresh every zoom level, when the scale does not increase much ( e.g. in the very narrow zoom levels especially when zooming in ).

Event Timeline

Change 823166 had a related patch set uploaded (by WMDE-Fisch; author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Merge all incoming nearby data

https://gerrit.wikimedia.org/r/823166

Change 823174 had a related patch set uploaded (by WMDE-Fisch; author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Don't add duplicate points to the nearby layer

https://gerrit.wikimedia.org/r/823174

Change 823179 had a related patch set uploaded (by WMDE-Fisch; author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] [POC] Use more memory efficient hash function

https://gerrit.wikimedia.org/r/823179

Looking at the MVP in action it would feel nicer to actually add points instead of always replacing. At least when moving around. Otherwise the screen kind of "flickers" when a new set is loaded and replaces the old set with points vanishing. Lets look at this together.

Change 823166 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Merge all incoming nearby data

https://gerrit.wikimedia.org/r/823166

Change 824750 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] [POC] Refresh nearby articles via button instead of automatically

https://gerrit.wikimedia.org/r/824750

Change 823174 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Don't add duplicate points to the nearby layer

https://gerrit.wikimedia.org/r/823174

Change 823179 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Use more memory efficient hash function

https://gerrit.wikimedia.org/r/823179

Change 826799 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Filter nearby points to not hide user-provided points

https://gerrit.wikimedia.org/r/826799

Change 826837 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Drop nearby data that's too far away from the current zoom level

https://gerrit.wikimedia.org/r/826837

Change 826799 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Filter nearby points to not hide user-provided points

https://gerrit.wikimedia.org/r/826799

Confirmed in sprint review that the general direction is good. Not reviewed is how the points disappear when zooming out and they become too dense, since this still needs to be merged.

For now, this can move out of the PM/UX review column

Change 828012 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Fix nearby articles auto-refresh feature not being turned off

https://gerrit.wikimedia.org/r/828012

Change 828548 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Render markers from the article's GeoJSON always on top

https://gerrit.wikimedia.org/r/828548

Change 828012 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Fix nearby articles auto-refresh feature not being turned off

https://gerrit.wikimedia.org/r/828012

awight subscribed.

Let's close this task (the requested feature works), and open follow-ups for discussing further optimization.

Change 826837 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Drop nearby data that's too far away from the current zoom level

https://gerrit.wikimedia.org/r/826837

Change 831119 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Drop foreign nearby layers earlier

https://gerrit.wikimedia.org/r/831119

Change 831121 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Kartographer@master] Turn global state variable into a function argument

https://gerrit.wikimedia.org/r/831121

Change 831119 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Drop foreign nearby layers earlier

https://gerrit.wikimedia.org/r/831119

Change 831121 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Turn global state variable into a function argument

https://gerrit.wikimedia.org/r/831121

Change 824750 abandoned by Thiemo Kreuz (WMDE):

[mediawiki/extensions/Kartographer@master] [POC] Refresh nearby articles via button instead of automatically

Reason:

https://gerrit.wikimedia.org/r/824750

Change 828548 abandoned by Thiemo Kreuz (WMDE):

[mediawiki/extensions/Kartographer@master] Render markers from the article's GeoJSON always on top

Reason:

https://gerrit.wikimedia.org/r/828548

Change 824750 restored by Svantje Lilienthal:

[mediawiki/extensions/Kartographer@master] [POC] Refresh nearby articles via button instead of automatically

https://gerrit.wikimedia.org/r/824750