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

Remove the SiteSpecificUserAgentExcludeEnabled setting #15089

Merged
merged 14 commits into from Nov 28, 2019
Merged

Remove the SiteSpecificUserAgentExcludeEnabled setting #15089

merged 14 commits into from Nov 28, 2019

Conversation

katebutler
Copy link

Fixes #14880

@katebutler katebutler added the Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. label Oct 31, 2019
@katebutler katebutler added this to the 3.13.0 milestone Oct 31, 2019
@tsteur
Copy link
Member

tsteur commented Oct 31, 2019

@katebutler as discussed by good to add an entry to the changelog under the deprecations section that we will remove the API method in Matomo 4 and we would also add a test that the deprecated method will actually be removed then.

@katebutler katebutler added Needs Review PRs that need a code review and removed Pull Request WIP Indicates the current pull request is still work in progress and not ready yet for a review. labels Nov 8, 2019
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why the expected system test files changed. Can't see any changes causing that.
If those test changes aren't related to that PR, it might be better to not include the changes here...

@@ -60,7 +60,6 @@ class API extends \Piwik\Plugin\API
const OPTION_SEARCH_KEYWORD_QUERY_PARAMETERS_GLOBAL = 'SitesManager_SearchKeywordParameters';
const OPTION_SEARCH_CATEGORY_QUERY_PARAMETERS_GLOBAL = 'SitesManager_SearchCategoryParameters';
const OPTION_EXCLUDED_USER_AGENTS_GLOBAL = 'SitesManager_ExcludedUserAgentsGlobal';
const OPTION_SITE_SPECIFIC_USER_AGENT_EXCLUDE_ENABLE = 'SitesManager_EnableSiteSpecificUserAgentExclude';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if we should create Updates to remove already existing options from the database if we completely remove one. ping @tsteur @mattab

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could do as it's easy. Not 100% needed though.

@katebutler
Copy link
Author

The expected file changes are all related to the change in the OneVisitorTwoVisits fixture, which was using the site-specific useragent exclude setting.

@sgiehl
Copy link
Member

sgiehl commented Nov 16, 2019

The expected file changes are all related to the change in the OneVisitorTwoVisits fixture, which was using the site-specific useragent exclude setting.

Then I guess I don't understand why that should change the test fixtures. Before the OneVisitorTwoVisits might have set a site specific useragent exclude, but disabled the site specific exclude globally in that case before. So it actually shouldn't have had any effect on the test fixture. So removing that part should also not have any effect. Or did I get anything wrong? 🤔

@tsteur
Copy link
Member

tsteur commented Nov 17, 2019

@sgiehl I haven't tested it yet but code looks generally good. I was expecting the change eg because of https://github.com/matomo-org/matomo/pull/15089/files#diff-9cceb103a81e46f4388517c3b4c33427L245 maybe?

@mattab mattab modified the milestones: 3.13.0, 3.13.1 Nov 27, 2019
@tsteur tsteur merged commit 5d0cfbc into 3.x-dev Nov 28, 2019
@tsteur tsteur deleted the 14880 branch November 28, 2019 02:27
jonasgrilleres pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 22, 2020
jbuget pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visits with a User-Agent specified in 'Website > Excluded User Agents' are sometimes still tracked
4 participants