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

refactor: remove supabase, add postgres, fix tests #3807

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrispinkney
Copy link
Contributor

Co-authored-by: Josue [email protected]

Issue This PR Addresses

Type of Change

  • Bugfix: Change which fixes an issue
  • New Feature: Change which adds functionality
  • Documentation Update: Change which improves documentation
  • UI: Change which improves UI

Description

Steps to test the PR

Checklist

  • Quality: This PR builds and passes our npm test and works locally
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not (if applicable)
  • Documentation: This PR includes updated/added documentation to user exposed functionality or configuration variables are added/changed or an explanation of why it does not(if applicable)

@chrispinkney chrispinkney self-assigned this Apr 11, 2023
@manekenpix manekenpix changed the title refactor: remove supabase, add postgres, fixed tests refactor: remove supabase, add postgres, fix tests Apr 11, 2023
@manekenpix manekenpix self-assigned this Apr 11, 2023
@manekenpix manekenpix added area: supabase Anything related to Supabase area: database Postgres db labels Apr 11, 2023
Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

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

This is wonderful to see happening! So glad to see you two deleting all this code, thank you! We need to delete 10x this much :)

What are we going to do about other users of Supabase, for example: https://github.com/Seneca-CDOT/telescope/blob/d5b23e42523521f49fc77d1b76e3f408dd9a46d1/src/web/app/src/supabase.ts

@@ -38,6 +38,6 @@ PARSER_PORT = 10000
################################################################################

# Supabase Secrets
SUPABASE_URL=http://localhost/v1/supabase
SUPABASE_URL="postgresql://postgres:your-super-secret-and-long-postgres-password@localhost/postgres"
Copy link
Contributor

Choose a reason for hiding this comment

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

DATABASE_URL?

@@ -38,6 +38,6 @@ PARSER_PORT = 10000
################################################################################

# Supabase Secrets
SUPABASE_URL=http://localhost/v1/supabase
SUPABASE_URL="postgresql://postgres:your-super-secret-and-long-postgres-password@localhost/postgres"
SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q
Copy link
Contributor

Choose a reason for hiding this comment

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

These other vestiges of Supabase, can they go too?

},
});

if (!SUPABASE_URL || !SERVICE_ROLE_KEY) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this up, since you use the URL variable earler

@@ -12,11 +12,13 @@ FROM base as dependencies

COPY package.json ./

COPY ./schema.prisma .
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this file?

@humphd
Copy link
Contributor

humphd commented Apr 11, 2023

I won't bug you with reviews until you're ready. Let me know.

@chrispinkney
Copy link
Contributor Author

I won't bug you with reviews until you're ready. Let me know.

@humphd Finishing work on parser, @manekenpix is working on the SSO stuff- we're using this PR for both. Should be done soon! We don't think the supabase stuff in the frontend is being used by anything and will probably remove it. 😀

@humphd
Copy link
Contributor

humphd commented Apr 11, 2023

I won't bug you with reviews until you're ready. Let me know.

@humphd Finishing work on parser, @manekenpix is working on the SSO stuff- we're using this PR for both. Should be done soon! We don't think the supabase stuff in the frontend is being used by anything and will probably remove it. 😀

Fantastic, thanks for the update. Really glad for your help with this. Thank you both!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: database Postgres db area: supabase Anything related to Supabase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants