Test Data GUI
Opened this issue · 4 comments
benjaminpick commented
- 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 commented
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 commented
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)
KoolPal commented
Hi,
Any update on this?
Please expedite. Thanks
benjaminpick commented
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?