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: migrate groups worker to next api #4022

Merged
merged 2 commits into from Nov 17, 2023
Merged

feat: migrate groups worker to next api #4022

merged 2 commits into from Nov 17, 2023

Conversation

bigint
Copy link
Member

@bigint bigint commented Nov 17, 2023

  • feat: migrate groups worker to next api
  • feat: migrate groups worker to next api

What does this PR do?

πŸ€–[deprecated] Generated by Copilot at d922223

This pull request removes the groups worker package and replaces it with Next.js API routes for fetching group data from the Supabase database. It also updates the web app components that use the group API to use the new source and endpoint. It deletes the unused files and constants and updates the documentation accordingly.

Related issues

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking small changes to existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Explanation of the changes

πŸ€–[deprecated] Generated by Copilot at d922223

  • Add two new API endpoints to get featured groups and a single group by slug from the Supabase database using Next.js API routes and the allowCors utility (link, link)
  • Update the axios request URLs in the FeaturedGroupsProvider, Group, and StaffPickedGroup components to align with the new API endpoints and import the HEY_API_URL constant instead of the GROUPS_WORKER_URL constant (link, link, link, link, link, link)
  • Remove the groups worker package and its related files, constants, and documentation as it is no longer used (link, link, link, link, link, link, link, link, link, link, link, link, link, link)

Emoji

πŸš€πŸ—‘οΈπŸ”§

Copy link

vercel bot commented Nov 17, 2023

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Updated (UTC)
api βœ… Ready (Inspect) Visit Preview Nov 17, 2023 7:26am
prerender βœ… Ready (Inspect) Visit Preview Nov 17, 2023 7:26am
web βœ… Ready (Inspect) Visit Preview Nov 17, 2023 7:26am

Copy link

height bot commented Nov 17, 2023

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

πŸ’‘Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@bigint bigint merged commit 3218fcf into main Nov 17, 2023
4 of 9 checks passed
@bigint bigint deleted the groups-to-api branch November 17, 2023 07:21
@vercel vercel bot temporarily deployed to Preview – prerender November 17, 2023 07:22 Inactive
@vercel vercel bot temporarily deployed to Preview – api November 17, 2023 07:22 Inactive
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.

None yet

1 participant