geoip-detect icon indicating copy to clipboard operation
geoip-detect copied to clipboard

Test Data GUI

Open benjaminpick opened this issue 4 years ago • 4 comments

  • Add an option "Return test data for 60 Minutes" with fields Country, City, etc.
  • By default, this returns this data for all requests, but only for this client IP. [ Additional checkbox "Return test data for all IPs" ]

if manage_options permission:

  • Button at Backend Lookup - "Return this data as test data for all lookups"
  • If enabled, add a huge banner that test data is returned. Also, add this information in generated HTML and the raw data. With a Button "disable test data response now"

benjaminpick avatar May 04 '20 14:05 benjaminpick

A little less complicated :

  • [ ] On the lookup page, add a button "Return this data as test data for all lookups"
  • [ ] Add a data source called "Test Data for debugging"
  • [ ] If enabled, add a huge banner (in the backend) that test data is returned.

benjaminpick avatar Dec 13 '20 15:12 benjaminpick

Or the URL way:

  • [ ] The debug mode needs to enabled in the backend OR the URL contains a secret string ?geo_test_secret=XYZ that allows overriding the detection
  • [ ] Add param such as ?geo_test[country][iso_code]=de
  • [ ] There needs to be an indication of how this works on the lookup page (e.g. an example URL generated by the current test lookup)

benjaminpick avatar Jun 18 '21 07:06 benjaminpick

Hi,

Any update on this?

Please expedite. Thanks

KoolPal avatar Oct 31 '21 13:10 KoolPal

Hi KoolPal, thank you for your interest. I am currently working on a different feature so while I like this feature, it might take a while for me to get to it. But of course you can start workin on it and send me a pull request! I think I would go down the route of what I wrote at "the URL way", what do you think / how would you imagine this feature to be both user(developer)-friendly and not too complicated to implement?

benjaminpick avatar Nov 01 '21 10:11 benjaminpick