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

Merged
merged 1 commit into from
Nov 26, 2024

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.

@ofr1tz ofr1tz requested a review from kopitek8 October 30, 2024 14:18
@kopitek8 kopitek8 requested a review from thenav56 November 5, 2024 09:05
@ofr1tz ofr1tz merged commit c925753 into dev Nov 26, 2024
1 check passed
@ofr1tz ofr1tz deleted the fix/taskcontributioncount branch November 26, 2024 09:37
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