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

Allow invalidating empty site #17519

Merged
merged 3 commits into from May 5, 2021
Merged

Conversation

diosmosis
Copy link
Member

Description:

Some sites can legitimately have 0 visits, like sites imported from google. While debugging the GoogleAnalyticsImporter test failures I noticed nothing was being invalidated because of this check. Removing it in this PR.

Review

  • Functional review done
  • Potential edge cases thought about (behavior of the code with strange input, with strange internal state or possible interactions with other Matomo subsystems)
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

@diosmosis diosmosis added Needs Review PRs that need a code review Regression Indicates a feature used to work in a certain way but it no longer does even though it should. labels May 4, 2021
@diosmosis diosmosis added this to the 4.3.0 milestone May 4, 2021
@diosmosis
Copy link
Member Author

Noticed this has other changes in it, will remove them...

…ut need to be invalidated at week or higher periods)
@diosmosis diosmosis force-pushed the allow-invalidating-empty-site branch from bbbe655 to 6633a57 Compare May 4, 2021 04:29
@diosmosis
Copy link
Member Author

Updated.

@tsteur
Copy link
Member

tsteur commented May 4, 2021

@diosmosis do you remember why it was maybe added in f5e9420#diff-88e28f71aefcd536256f874d55fa5d6eb2783391010861ed67461ea6bbda4ef2R261-R265 ? I suppose this also impacts roll ups. Looks good otherwise

@diosmosis
Copy link
Member Author

@tsteur it was an optimization. IIRC you suggested it in a review (I can't remember the exact reasoning), then decided it wasn't that important, but I added it anyway because "why not?". (I guess this is "why not" :) ). I guess we could still do the check, though, if we use the event in Loader.php (isSiteUsingTracker or something similar).

@diosmosis
Copy link
Member Author

@tsteur found another regression causing the importer tests to fail, added in the latest commit.

@diosmosis diosmosis merged commit 929d2ff into 4.x-dev May 5, 2021
@diosmosis diosmosis deleted the allow-invalidating-empty-site branch May 5, 2021 02:09
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 Regression Indicates a feature used to work in a certain way but it no longer does even though it should.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants