Skip to content

Conversation

@kopitek8
Copy link
Contributor

@kopitek8 kopitek8 commented Mar 10, 2025

  • Added time calculation diagram
  • Rendered diagram in the diagrams markdown file
  • Updated diagrams markdown file to render other images as well

@kopitek8 kopitek8 marked this pull request as draft March 11, 2025 10:18
@kopitek8 kopitek8 changed the title Add time calculation diagram Add time calculation diagram and render images Mar 11, 2025
@kopitek8 kopitek8 requested a review from thenav56 March 11, 2025 10:27
@kopitek8 kopitek8 marked this pull request as ready for review March 11, 2025 10:27
@tnagorra
Copy link
Contributor

tnagorra commented Apr 4, 2025

We need to add a worker that periodically gets data from postgres and updates the data in postgres instead of adding a loop in the postgres db.

Step 2: Firebase **syncs data** with the cron job
- Every 3 minutes, a cron job syncs data for any new session records and pulls them into the backend.

Step 3: Sync Worker **saves raw data** to Postgres database
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Step 3: Sync Worker **saves raw data** to Postgres database
Step 3: Cron job **saves raw data** to Postgres database

Step 1: User Mapping Session **sends data** to Firebase
- When a user completes a mapping session in the mobile/web app, the session payload (including start/end timestamps, user ID, session metadata, etc.) is sent in real time to Firebase.

Step 2: Firebase **syncs data** with the cron job
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Step 2: Firebase **syncs data** with the cron job
Step 2: Cron job **fetches data** from the firebase

@tnagorra tnagorra force-pushed the docs/time-calculation-diagram branch from 9450454 to 90201e9 Compare April 23, 2025 08:30
@tnagorra tnagorra merged commit 1857317 into dev Apr 23, 2025
1 check failed
@tnagorra tnagorra deleted the docs/time-calculation-diagram branch April 23, 2025 08:31
@kopitek8 kopitek8 mentioned this pull request May 23, 2025
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.

3 participants