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

Make sure that all segment archives are invalidated when invalidating all visits archives #17617

Merged
merged 3 commits into from Jun 1, 2021

Conversation

diosmosis
Copy link
Member

Description:

When we invalidate an All Visits archive (segment = '') we also invalidate all segment archives for the same site and period. This is because if the data for the main archive needs to be recomputed, then the segment archives may need to be recomputed as well.

Any archive that is invalidated needs to also show up in the archive_invalidations table. However, currently, we are not inserting the extra segment archives into that table. This is fixed by 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

…validation table, when invalidating normal archives
@diosmosis diosmosis added Bug For errors / faults / flaws / inconsistencies etc. Needs Review PRs that need a code review labels May 25, 2021
@diosmosis diosmosis added this to the 4.4.0 milestone May 25, 2021
@mattab mattab modified the milestones: 4.4.0, 4.3.0 May 26, 2021
Copy link
Contributor

@flamisz flamisz left a comment

Choose a reason for hiding this comment

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

I reviewed the code and tested it locally. It looks OK to me. 👍

@diosmosis diosmosis merged commit a6fa6f9 into 4.x-dev Jun 1, 2021
@diosmosis diosmosis deleted the invalidating-segments-test branch June 1, 2021 03:13
@mattab mattab changed the title insert invalidations for segment archives that get invalidated when invalidating all visits archives Make sure that all segment archives are invalidated when invalidating all visits archives Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants