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
Improve the configuration of excluded User Agents #8586
Conversation
Before this commit, users can configure excluded user agents by separating them with commas. Enclosing quotes are not trimmed. With this commit, users can configure excluded user agents one per line. Enclosing quotes are trimmed. This is meant to be simpler and more consistent. It also allows to exclude user agents containing both commas and quotes. This change applies both to global settings as well as site-specific settings. This commit also changes the help text, which now explicitly says that user agents should be separated by new lines. A migration script is included: it will replace commas by new lines. Related: #7978, #8050
…turns Before this commit, users can configure excluded query parameters by separating them with commas. With this commit, users can configure them one per line. This is meant to be simpler and more consistent (see #8448). This is now also consistent with form inline helps. This change applies both to global settings as well as site-specific settings. A migration script is included: it will replace commas by new lines. Related: #7978, #8050
* The following API methods are now returning an array of strings instead of a list encoded in CSV: * `SitesManager.getExcludedQueryParametersGlobal` * `SitesManager.getExcludedUserAgentsGlobal`
Before this commit, users can configure excluded IPs by separating them with commas. With this commit, users can configure them one per line. This is meant to be simpler and more consistent (see #8448). This is now also consistent with form inline helps. This change applies both to global settings as well as site-specific settings. A migration script is included: it will replace commas by new lines. Related: #7978, #8050
# Conflicts: # core/Version.php
# Conflicts: # core/Version.php
This pull request contains commits from master that were not merged in 3.0. Master needs to be merged in 3.0 so that this branch can be merged (rebasing this branch with the intertwined history would be way too long, too complicated, and wouldn't fix the root issue). |
fd504e4
to
6725a57
Compare
a0b23c7
to
713a124
Compare
@mattab I have to close this one. We need to have this fix in Piwik 3 but there all this logic completely changed as they are now all part of the "Plugin Settings / Fields API". There we can eventually make a change to the API and it will be applied everywhere a textarea with multiple entries is expected. |
Replaces #8482 that was opened against master.
Fixes #7978, replaces #8050
Problems:
These problems apply to global and site-specific settings.
Goals:
Notes:
SitesManager.getExcludedIpsGlobal
SitesManager.getExcludedQueryParametersGlobal
SitesManager.getExcludedUserAgentsGlobal
SitesManager.setGlobalExcludedIps
SitesManager.setGlobalExcludedQueryParameters
SitesManager.setGlobalExcludedUserAgents