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

Check for instanceIds when checking for currently running archive processes #16974

Merged
merged 1 commit into from Dec 17, 2020

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Dec 17, 2020

Description:

fix #16973

Review

  • Functional review done
  • 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

@tsteur tsteur 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 Dec 17, 2020
@tsteur tsteur added this to the 4.0.x milestone Dec 17, 2020
$lines = array_filter($lines, function ($line) use ($instanceId) {
if (!empty($instanceId) && strpos($line, 'matomo-domain=' . $instanceId) === false) {
return false;
}
Copy link
Member

Choose a reason for hiding this comment

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

not sure if this is a problem for cloud, but should we also check if empty($instanceId) && strpos($line, 'matomo-domain=') !== false? Will merge regardless after tests run, just thought it might be important.

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 should be not needed. When an instanceId is configured in the config, then we expect it to be always called with matomo-domain. And if no instanceId is set we assume it doesn't matter.

@diosmosis diosmosis merged commit 00f0c9d into 4.x-dev Dec 17, 2020
@diosmosis diosmosis deleted the m16973 branch December 17, 2020 23:43
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.

core:archive Detection of archive process already in progress does not check for instance ID
2 participants