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

only look for done_ok archives when doing usable archive check #16610

Merged
merged 2 commits into from Oct 28, 2020

Conversation

diosmosis
Copy link
Member

Fixes #16594

@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 Oct 26, 2020
@diosmosis diosmosis added this to the 4.0.0-RC milestone Oct 26, 2020
@tsteur tsteur requested a review from sgiehl October 28, 2020 00:47
return false;
}

return Date::factory($archiveIdAndVisits[4])->getDatetime();
Copy link
Member

Choose a reason for hiding this comment

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

Not really related to this PR: But should we maybe change getArchiveIdAndVisits to return something more meaningful. Without looking into the method it's hard to understand what the forth element of the returned array actual is.
Personally I would prefer to have at least named array keys or an object (or class) with defined properties, that would make the code easier to read and to understand...

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.

Imho the changes look good. But haven't tested it that much

@tsteur tsteur merged commit 9c7300e into 4.x-dev Oct 28, 2020
@tsteur tsteur deleted the 16594-invalidate-existing-archive-check branch October 28, 2020 20:48
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.

Invalidated report should be archived
3 participants