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
test for trim action name #17266
test for trim action name #17266
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flamisz Looks fine. Maybe you could add a new test for that case where the delimiter is set empty and an actions (url) with pre- or appending spaces is tracked. Guess this could be added here: https://github.com/matomo-org/matomo/blob/4.x-dev/tests/PHPUnit/Integration/Tracker/ActionTest.php
@tsteur and @sgiehl I found something interesting with this matomo/core/Tracker/ActionPageview.php Lines 28 to 29 in b176160
and then: matomo/core/Tracker/Action.php Lines 212 to 215 in b176160
So this couldn't be the original issue. I can add the tests and not modifying the code, so we will see actually it is trimmed. |
@flamisz Had a closer look at the code myself now and it seems the action name is trimmed in all cases already. I guess there are actually no changes needed. Will comment the original issue as well. |
Merging this one as an additional test can't hurt ;-) |
Description:
ref #15501
Turned out it's not fixing the original issue. For more details see the comments on that issue.
Review