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

Dump user feedback #1347

Merged
merged 24 commits into from Apr 13, 2021
Merged

Dump user feedback #1347

merged 24 commits into from Apr 13, 2021

Conversation

mayhem
Copy link
Member

@mayhem mayhem commented Mar 16, 2021

The spark cluster needs to get period user and recommendation feedback data and this PR adds the functionality to dump a feedback dump and the rsync it to the FTP server. I anticipate that we'll add more spark data dumps in the future, so its good to have separate FTP dir for it.

Also in this PR is the change to keep 30 incremental feedback items. This gives users a complete month to catch up on incremental dumps -- 6 dumps was not enough for this.

@pep8speaks
Copy link

pep8speaks commented Mar 16, 2021

Hello @mayhem! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 181:131: E501 line too long (143 > 130 characters)

Comment last updated at 2021-04-12 17:00:21 UTC

@mayhem
Copy link
Member Author

mayhem commented Mar 17, 2021

@brainzbot test again please

@mayhem mayhem marked this pull request as ready for review March 17, 2021 11:44
@paramsingh
Copy link
Collaborator

Thinking out loud, would the recording_recommendation events in the user_timeline_event table be useful wherever this dump is gonna be used?

@mayhem
Copy link
Member Author

mayhem commented Mar 18, 2021

Eventually yes. But realistically we're not there yet -- but with this in mind I created the spark FTP dir so that we can create more "out of replication sequence" dumps timed to be fresh for spark ingestion.

admin/create-dumps.sh Outdated Show resolved Hide resolved
admin/create-dumps.sh Outdated Show resolved Hide resolved
listenbrainz/db/dump.py Show resolved Hide resolved
listenbrainz/db/dump.py Show resolved Hide resolved
listenbrainz/db/dump.py Show resolved Hide resolved
listenbrainz/db/dump_manager.py Outdated Show resolved Hide resolved
listenbrainz/db/dump_manager.py Show resolved Hide resolved
listenbrainz/db/dump_manager.py Outdated Show resolved Hide resolved
listenbrainz/db/dump_manager.py Show resolved Hide resolved
Copy link
Collaborator

@alastair alastair left a comment

Choose a reason for hiding this comment

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

thanks

@mayhem mayhem merged commit 191eafe into master Apr 13, 2021
@mayhem mayhem deleted the dump-user-feedback branch April 13, 2021 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants