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

Do not do unprocessed segment check if within archiving process, sinc… #14471

Merged
merged 3 commits into from Jun 11, 2019

Conversation

diosmosis
Copy link
Member

…e it is not for the main HTTP request.

Just for safety, doesn't fix a known bug.

@diosmosis diosmosis added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels May 22, 2019
@diosmosis diosmosis added this to the 3.10.0 milestone May 22, 2019
@@ -90,6 +91,11 @@ public function getKnownSegmentsToArchiveForSite(&$segments, $idSite)

public function onNoArchiveData()
{
// if we're within the archiving process, then means there's no data for a child archive, not the main one
Copy link
Member

Choose a reason for hiding this comment

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

Don't really understand the comment unfortunately... is there a way to explain it different maybe?

Copy link
Member Author

Choose a reason for hiding this comment

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

how about "if no archives are found while the archiving process is active, it means we are requesting archives to aggregate data for a period. we only want to do the segment check for the root archive query, so we ignore this" ?

Copy link
Member

Choose a reason for hiding this comment

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

I'm not so much into it, aren't we also archiving when callAggregateCoreMetrics is called etc? Do we maybe in general not want to go in here if trigger=archivephp is set? Which it might be when archiving? Of course doesn't work when browser archiving is enabled.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's for browser archiving.

Copy link
Member

Choose a reason for hiding this comment

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

@diosmosis

if no archives are found while the archiving process is active, it means we are requesting archives to aggregate data for a period.

I want to ask "Why it means we are requesting archives to aggregate data for a period. ", could you also explain this in the comment? (i'm not sure myself, didn't think too deep)

we only want to do the segment check for the root archive query, so we ignore this

also here "Why we only want to do segment check for the root archive query" ? Be good to explain (i'm not sure myself, didn't think too deep)

@diosmosis
Copy link
Member Author

@mattab updated the comment

@mattab
Copy link
Member

mattab commented Jun 11, 2019

@tsteur could you please review & merge if it looks good to you?

@tsteur tsteur merged commit d16df1e into 3.x-dev Jun 11, 2019
@tsteur tsteur deleted the segment-editor-multiple-period branch June 11, 2019 08:00
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 not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants