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/questions supabase #4053

Open
wants to merge 37 commits into
base: master
Choose a base branch
from
Open

Feat/questions supabase #4053

wants to merge 37 commits into from

Conversation

mariojsnunes
Copy link
Contributor

@mariojsnunes mariojsnunes commented Dec 28, 2024

PR Checklist

PR Type

What kind of change does this PR introduce?

  • Refactoring (no functional changes)

What is the current behavior?

Questions are stored in firebase.

What is the new behavior?

Questions are stored in supabase.
Also migrated:

  • tags
  • useful
  • follow (subscribers)

Question images are also saved in supabase storage.
Removed moderation code for questions (wasn't being used in the UI)

TODO:

  • can we have a custom supabase cdn url? (so we don't expose the supabase url)
  • document storage migration/setup
  • data migration

Does this PR introduce a breaking change?

  • Yes
  • No

Git Issues

Closes #4059 and #3918

@mariojsnunes mariojsnunes requested a review from a team as a code owner December 28, 2024 17:29
@benfurber
Copy link
Member

Niiiice, I'll have a look today.

Copy link

cypress bot commented Jan 9, 2025

onearmy-community-platform    Run #6778

Run Properties:  status check failed Failed #6778  •  git commit 7cd2a34987: Merge branch 'master' into feat/questions-supabase
Project onearmy-community-platform
Branch Review feat/questions-supabase
Run status status check failed Failed #6778
Run duration 05m 58s
Commit git commit 7cd2a34987: Merge branch 'master' into feat/questions-supabase
Committer Mário Nunes
View all properties for this run ↗︎

Test results
Tests that failed  Failures 1
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 77
View all changes introduced in this branch ↗︎

Tests for review

Failed  src/integration/notifications.spec.ts • 1 failed test • ci-chrome

View Output Video

Test Artifacts
[Notifications] > [are generated by clicking on useful for projects] Test Replay Screenshots Video
Flakiness  notifications.spec.ts • 1 flaky test • ci-chrome

View Output Video

Test Artifacts
[Notifications] > [are generated by clicking on useful for research] Test Replay Screenshots Video
Flakiness  library/read.spec.ts • 1 flaky test • ci-chrome

View Output Video

Test Artifacts
... > [Delete Button is disabled] Test Replay Screenshots Video
Flakiness  research/follow.spec.ts • 1 flaky test • ci-chrome

View Output Video

Test Artifacts
[Research] > [By Authenticated] > [Follow button] Test Replay Screenshots Video

@mariojsnunes mariojsnunes added the Review allow-preview ✅ Has received manual check for malicious code and can be safely built for preview label Jan 11, 2025
Copy link

codecov bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@cde2fc3). Learn more about missing BASE report.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4053   +/-   ##
=========================================
  Coverage          ?   69.66%           
=========================================
  Files             ?       39           
  Lines             ?     1236           
  Branches          ?      258           
=========================================
  Hits              ?      861           
  Misses            ?      353           
  Partials          ?       22           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@benfurber benfurber left a comment

Choose a reason for hiding this comment

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

Coool! Really clear direction will all of this. Nice one.

Left a bunch of comments, obvs. Big thing from me I think is what would be unit tested out of all this, there's lots of key system behaviour here.

packages/cypress/src/integration/questions/read.spec.ts Outdated Show resolved Hide resolved
shared/mocks/data/categories.ts Show resolved Hide resolved
src/services/questionService.ts Show resolved Hide resolved
src/services/questionService.ts Show resolved Hide resolved
vite.config.ts.timestamp-1736550923998-a30767ea98555.mjs Outdated Show resolved Hide resolved
Copy link
Member

@benfurber benfurber left a comment

Choose a reason for hiding this comment

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

I think we're still missing a unit testing approach but not essential for this PR.

shared/mocks/data/categories.ts Show resolved Hide resolved
src/common/Form/TagsSelectFieldV2.tsx Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mod: HowTo 📰 Mod: Library 📰 Mod: Research 🔬 Review allow-preview ✅ Has received manual check for malicious code and can be safely built for preview
Projects
Status: No status
Status: In progress
Development

Successfully merging this pull request may close these issues.

[feature] Move questions to Supabase
2 participants