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

Feat/study group register #153

Merged
merged 8 commits into from
Jun 13, 2024
Merged

Feat/study group register #153

merged 8 commits into from
Jun 13, 2024

Conversation

nomadbitcoin
Copy link
Contributor

Type of Pull Request:

  • Bug Fix
  • New Feature
  • Others

What does this PR do?

We are storing user registrations in study groups in Firestore and mirroring this data to BigQuery through Firebase extensions, and mirroring the student presence from BigQuery to Firestore through Cloud Functions.

Helper Functions:

  • Addition of helper functions to facilitate the addition of new courses or groups within the Firebase database.

Implementation Details

All the changes were made by reusing the existing logic and components of the codebase.

Additional Context

  • Replicated study_group_presence data from BigQuery prod to the development database.
  • Replicated study_groups collection from Firebase prod to development to match IDs with prod.
  • Developed a Firebase Function to fetch study group presences, join with user data, and save img_url within an "analytics" field in study_groups metadata. (BigQuery project_id needs to be changed for production)
  • Added fields to study_groups copied from prod (slug, image, description, etc.) (Update required at production data)
  • Updated the Tabs component to correctly read the analytics field, ensuring consistency with how the field is written by cloud functions.
  • Added a "Study Groups" button in the header and changed button background to white for better icon visibility

Closes Issue

Closes #144

Copy link

vercel bot commented Jun 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web3-bootcamp-platform ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 4:18pm

@danicuki
Copy link
Contributor

great job!

@danicuki danicuki merged commit 8c3613f into main Jun 13, 2024
3 of 5 checks passed
@danicuki danicuki deleted the feat/study-group-register branch June 13, 2024 10:23
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.

Register Students at Firebase and Mirror to Bigquery
2 participants