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

Force POST for bulk requests, fix alwaysUseSendBeacon not respected for bulk requests #15784

Merged
merged 2 commits into from Apr 8, 2020

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Apr 6, 2020

fix #15740
fix #14512
Noticed bulk requests weren't working when they had less than 2000 characters.

While fixing the issue also noticed that the alwaysUseSendBeacon flag was not respected for bulk requests so added them as well. Now we're making sure that any bulk request will be POSTed and not used as a URL parameter.

As a result, bulk requests were considered page views with an empty page title instead of the actual requests. Noticed this issue in almost all our websites.

@tsteur tsteur added the Needs Review PRs that need a code review label Apr 6, 2020
@tsteur tsteur added this to the 3.13.5 milestone Apr 6, 2020
@tsteur
Copy link
Member Author

tsteur commented Apr 6, 2020

build js

@diosmosis diosmosis merged commit fe27dcb into 3.x-dev Apr 8, 2020
@diosmosis diosmosis deleted the 15740 branch April 8, 2020 15:17
tsteur added a commit that referenced this pull request Apr 8, 2020
I think after merging #15784 (comment) the JS tests are broken. In the PR the tests were green but that's because we merged another piwikjs PR that was created afterwards that it is broken now
diosmosis added a commit that referenced this pull request Apr 16, 2020
* Avoid possible error subtable already exists but not loaded (#15779)

* Make sure to always set JSON_PIWIK to native JSON when possible (#15785)

* make sure to always set JSON_PIWIK to native JSON when possible

* rebuilt piwik.js

* Force POST for bulk requests, fix alwaysUseSendBeacon not respected for bulk requests (#15784)

* Force POST for bulk requests, fix alwaysUseSendBeacon not respected for bulk requests

* rebuilt piwik.js

* Make sure to clean up tracking failures before sending email notification (#15798)

Feedback from a customer... Eg the daily `cleanupTrackingFailures()` action might be only executed after the weekly `notifyTrackingFailures` therefore we should try to clean up failures first and then check if any are left. Avoids the case where a user opens hours later the email they receive and then there are no tracking failures reported. This could still happen but it's a bit less likely.

* 3.13.5-b1

* Faster segmented suggested values when browser archiving is disabled (#15786)

* Faster segmented suggested values when browser archiving is disabled

* make sure no segment is set

* remove wrong var type

* fix/add tests

* add more segment values

* detect if we should flatten or not

* add docs

* Fix problem when comparing segments or opening popovers (#15809)

refs #15805

* purge all old archives regardless of done value (#15800)

* purge all old archives regardless of done value, we only care about the newest usable one

* Fix test and start on new one.

* Add coverage for change in tests.

* there is no longer an inner join so should not need the idsite check

* Add more parameters to the computeNbUnique event (#15808)

* 3.13.5-b2

* One click update in two parts so new code is loaded for second. (#15770)

* One click update in two parts so new code is loaded for second.

* remove no longer needed code

Co-authored-by: Thomas Steur <tsteur@users.noreply.github.com>
Co-authored-by: Matthieu Aubry <mattab@users.noreply.github.com>
Co-authored-by: Stefan Giehl <stefan@matomo.org>
@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Apr 28, 2020
jonasgrilleres pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 22, 2020
…or bulk requests (matomo-org#15784)

* Force POST for bulk requests, fix alwaysUseSendBeacon not respected for bulk requests

* rebuilt piwik.js
jbuget pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 26, 2020
…or bulk requests (matomo-org#15784)

* Force POST for bulk requests, fix alwaysUseSendBeacon not respected for bulk requests

* rebuilt piwik.js
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