Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Data GUI #82

Open
benjaminpick opened this issue May 4, 2020 · 4 comments
Open

Test Data GUI #82

benjaminpick opened this issue May 4, 2020 · 4 comments

Comments

@benjaminpick
Copy link
Member

benjaminpick commented May 4, 2020

  • 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
Copy link
Member Author

benjaminpick commented Dec 13, 2020

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
Copy link
Member Author

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
Copy link

KoolPal commented Oct 31, 2021

Hi,

Any update on this?

Please expedite. Thanks

@benjaminpick
Copy link
Member Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants