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

Script to update users' taskContributionCount in Firebase from Postgres mapping_sessions #979

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ofr1tz
Copy link
Collaborator

@ofr1tz ofr1tz commented Oct 30, 2024

This script fixes inconsistencies in Firebase caused by a bug in MapSwipe web that wrote the display name of users to taskContributionCount on sign up.

The script requests all user ids from Firebase RTDB, looks up the total number of task contributions for eachuser in the mapping_session table of Postgres DB and writes the result to taskContributionCount in the user entry in Firebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants