Page MenuHomePhabricator

Show different labels for IP info when data isn't available vs when there is no access
Closed, ResolvedPublic2 Estimated Story Points

Description

CaseLabelMock
If the data is not available in MaximindNot available
image.png (80×268 px, 9 KB)
If the user doesn't have access to the data because of rightsNo access
image.png (80×268 px, 9 KB)

Event Timeline

AGueyte set the point value for this task to 2.Jun 13 2022, 3:12 PM

Change 806898 had a related patch set uploaded (by Tchanders; author: Tchanders):

[mediawiki/extensions/IPInfo@master] Show different labels when access is restricted to MaxMind data

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

@Prtksxna 'Connection type' is currently not displayed if it is the same as 'Connection owner', and instead is shown as 'Not available'. Since this now means the data is missing, I've changed this in the patch I've uploaded, so that it now displays even if it's the same. Is this ok? If not, what should we do?

@Prtksxna 'Connection type' is currently not displayed if it is the same as 'Connection owner', and instead is shown as 'Not available'. Since this now means the data is missing, I've changed this in the patch I've uploaded, so that it now displays even if it's the same. Is this ok? If not, what should we do?

Yep that makes sense! Showing the data twice is better than confusion around what data is available (I feel this way especially after reading the feedback).

Change 806898 merged by jenkins-bot:

[mediawiki/extensions/IPInfo@master] Show different labels when access is restricted to MaxMind data

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

dom_walden subscribed.

User with full viewing rights but no data:

not_available.png (341×1 px, 41 KB)

User with basic viewing rights for the same IP:

no_access.png (338×1 px, 40 KB)

Test environment: local docker IP Info 0.0.0 (a84b4cc) 06:18, 27 June 2022.