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

Add time calculation diagram and render images - #1013

Merged
tnagorra merged 14 commits into
devfrom
docs/time-calculation-diagram
Apr 23, 2025
Merged

Add time calculation diagram and render images#1013
tnagorra merged 14 commits into
devfrom
docs/time-calculation-diagram

Conversation

@kopitek8

@kopitek8 kopitek8 commented Mar 10, 2025

Copy link
Copy Markdown
Contributor
  • 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

tnagorra commented Apr 4, 2025

Copy link
Copy Markdown
Contributor

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.

Comment thread docs/source/diagrams.md Outdated
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
Copy Markdown
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

Comment thread docs/source/diagrams.md Outdated
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
Copy Markdown
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
@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 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