-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Smaller varchar size for log_action.name #14859
Conversation
Not sure how it's related to this PR, but the tests appear to be failing |
Not understanding it... thought maybe we use really long action names but that doesn't seem to be the case in https://travis-ci.org/matomo-org/matomo/jobs/580980359#L848 |
Feedback:
|
Changed it to The results in The results in We actually do not show the content target in the UI (which would make it 3 level report). We're currently for some reason adding Ready for another review. Hoping the tests pass now. |
Still one test failure, but I think it's expected? |
@diosmosis it seems the tests are failing now randomly and have different IDs on every request or different results in general :( the same tests are always failing in different ways. We'll need to see how this can be fixed... will likely take quite a while. |
core/DataAccess/LogAggregator.php
Outdated
@@ -838,7 +838,7 @@ public function queryActionsByDimension($dimensions, $where = '', $additionalSel | |||
} | |||
|
|||
if ($rankingQuery) { | |||
$orderBy = '`' . Metrics::INDEX_NB_ACTIONS . '` DESC'; | |||
$orderBy = '`' . Metrics::INDEX_NB_ACTIONS . '` DESC, `name`'; |
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.
@katebutler I haven't looked at the tests but would expect a lot of tests to fail. This we might need to change to only set it for the transitions query. Maybe would need to be some parameter?
@@ -117,7 +116,7 @@ private function aggregateDayImpressions() | |||
$rankingQuery = null; | |||
if ($rankingQueryLimit > 0) { | |||
$rankingQuery = new RankingQuery($rankingQueryLimit); | |||
$rankingQuery->addLabelColumn(array('contentPiece', 'contentTarget', 'contentName')); | |||
$rankingQuery->addLabelColumn(array('contentPiece', 'contentName')); |
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.
above is a join that can be likely removed for content target
@katebutler can you also update the expected test results so the tests pass? |
@katebutler is maybe this test failing still randomly? https://travis-ci.org/matomo-org/matomo/jobs/592761199#L820-L850 |
🚀 |
fyi added |
Follow up from #14848 refs #14535
When I tried to apply this change locally, I got this error
It seems the column length is too big.
For
log_conversion.url
even onlyvarchar(16000)
works since there are so many more columns. I reckon it might be best to leave it astext
. It be not good to have different lengths of url fields and not sure if by usingvarchar(16000)
onlog_conversion
we might prevent in the future our chances of adding more columns...fyi @mattab