Skip to content
This repository was archived by the owner on Apr 3, 2026. It is now read-only.

Fix: usernames missing in firebase - #981

Merged
Hagellach37 merged 2 commits into
mainfrom
dev
Dec 2, 2024
Merged

Fix: usernames missing in firebase#981
Hagellach37 merged 2 commits into
mainfrom
dev

Conversation

@Hagellach37

@Hagellach37 Hagellach37 commented Dec 2, 2024

Copy link
Copy Markdown
Member

This fixes #687

check how many users are affected:

select 
count(*)
from users u 
where 1=1
	and username = ''
	and user_id not LIKE 'osm:%'
	and created >= '2024-01-01'
;

--> 403 users

Post-merge steps:

docker compose run -d mapswipe_workers_creation python python_scripts/update_task_contribution_count_in_firebase.py.
docker compose run -d mapswipe_workers_creation python python_scripts/add_missing_usernames_in_firebase.py
  • update usernames in postgres --> run mapswipe_workers creation docker container

ofr1tz and others added 2 commits October 30, 2024 15:13
Script to update users' taskContributionCount in Firebase from Postgres mapping_sessions
@Hagellach37
Hagellach37 merged commit 745098b into main Dec 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants