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

Fixes #8217 regression, make sure temporary metrics are available to UserCountryMap for cities layer #8228

Merged
merged 8 commits into from Jun 26, 2015

Conversation

diosmosis
Copy link
Member

As title, also includes UI tests for cities/regions layer, plus change that allows UI tests to send mouse events to specific coordinates.

In order to get some visits to show up on the city map, I had to set the IPs in UITestFixture visits to IPs that have locations. And force the use of GeoIP there.

@diosmosis diosmosis self-assigned this Jun 26, 2015
@diosmosis diosmosis added this to the 2.14.0 milestone Jun 26, 2015
@diosmosis diosmosis added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Jun 26, 2015
// for proper geolocation
LocationProvider::setCurrentProvider(LocationProvider\GeoIp\Php::ID);
IPAnonymizer::deactivate();

Copy link
Contributor

Choose a reason for hiding this comment

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

Would it make sense to make a more specific fixture? This change + adding self::downloadGeoIpDbs() makes the base fixture more complex (and maybe slower, not sure about that), that's why I'm asking.

Copy link
Member Author

Choose a reason for hiding this comment

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

Base fixture?

Copy link
Contributor

Choose a reason for hiding this comment

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

default fixture? Isn't that the default fixture used for ui tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I don't see how it will slow the tests down, the GeoIP database will only be downloaded if it doesn't exist already. So it will happen once per test run (on travis). Is that what you're worried about?

Copy link
Contributor

Choose a reason for hiding this comment

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

OK no worries :)

diosmosis pushed a commit that referenced this pull request Jun 26, 2015
diosmosis added a commit that referenced this pull request Jun 26, 2015
Fixes #8217 regression, make sure temporary metrics are available to UserCountryMap for cities layer + add regions/cities UI tests.
@diosmosis diosmosis merged commit 156ab80 into master Jun 26, 2015
@diosmosis diosmosis deleted the 8217_city_regression branch June 26, 2015 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

2 participants