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

Worker + Discord Webhook refactor #575

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

jvyden
Copy link
Member

@jvyden jvyden commented Jul 23, 2024

  • Refactor workers to use DataContext
    This makes Workers compatible with IDataConvertable. Should help us expand Workers in the future as a side bonus. Admittedly, this causes a bit of jank particularly in tests and having to store the match service, but I think it should be okay.
  • Convert to API data types in DiscordIntegrationWorker
    This allows us to get the same results as the API (e.g. applying PSP path, cropped asset URLs, etc.) for free, avoiding code duplication. Closes Refactor DiscordIntegrationWorker to use API data types internally #574.

jvyden added 2 commits July 23, 2024 18:48
This allows us to get the same results as the API (e.g. applying PSP path, cropped asset URLs, etc.) for free, avoiding code duplication.
Copy link
Member

@Beyley Beyley left a comment

Choose a reason for hiding this comment

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

pona

@jvyden jvyden merged commit 0ff4a34 into LittleBigRefresh:main Jul 23, 2024
2 checks passed
@jvyden jvyden deleted the worker-plus-discord-refactor branch July 23, 2024 22:59
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.

Refactor DiscordIntegrationWorker to use API data types internally
2 participants