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
Add option to disable ISP DB even if it exists in the filesystem #20027
Conversation
As this is no official config option and for now only being used for cloud, I guess we could go with that solution. |
Awesome thanks. I've just done some manual testing and it worked. I couldn't really figure out a way to test it though. Do you have any idea? Or maybe it doesn't need one? |
We could perform such tests with disabled isp and check that there aren't any results: matomo/plugins/GeoIp2/tests/Integration/LocationProviderTest.php Lines 94 to 114 in d1e15c2
|
Awesome, thanks for this @sgiehl . I've added some tests |
Description:
refs CLOUD-710. @sgiehl do you reckon something like this could be an OK solution to disable the ISP/ASN DB even if it is present in the filesystem? I'm trying to add this for multi tenant install on Cloud where we will have the file present in the filesystem but only want it to be used by very few accounts. I tried playing around by pointing
path.geoip2
into a different directory depending on the tenant but this proved very difficult in a cloud setup and ensuring files are being kept up to date etc. This would make it a lot simpler.I haven't fully tested it but do you reckon that would work and be ok like this?
If that solution would be fine I could try and add some test for it.
Review