canvas-lms
canvas-lms copied to clipboard
Could not query user's page views
Summary:
I have a self-hosted canvas(prod 2024/09/23), and configed a cassandra, copyed analytics. I found the file cassandra.yml has gone, so I created a cassandra.yml, and executed "rake db:migrate" again, the system created tables in cassandra. But I could not query any user's pageviews , and the table page_views is empty in cassandra. I can access "views courses analytics", and canvas display course related data information on the page.
Steps to reproduce:
1.git analytics 2.rake db:migrate successfuly, Setting.set('enable_page_views', 'cassandra') 3.fail to rake db:migrate_pageviews_to_cassandra. rake aborted! Don't know how to build task 'db:migrate_pageviews_to_cassandra' (See the list of available tasks with
Expected behavior:
canvas can display course related data information in analytics pages. administrator can query page view history.
Actual behavior:
the page view history is empty
Additional notes:
I have not found db:migrate_pageviews_to_cassandra in the list of available tasks with rake --tasks
I found some explanatory text in gems/canvas_cassandra, I'm not sure if there are more detailed explanations or guidance documents available