Skip to content

feat: @discordjs/redis-gateway #9541

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

didinele
Copy link
Member

@didinele didinele commented May 7, 2023

Please describe the changes this PR makes and why it should be merged:
new package pog

🤖 Generated by Copilot at 73ba97a

Sing, O Muse, of the mighty pull request
That brought forth the redis-gateway package
A wondrous work of the @discordjs team
Skilled in the arts of code and docker images

few notes:

  • I used this PR to document core's new Gateway
  • I've updated my name in the other licenses to my legal name due to personal reasons
  • I am yet to test this, so while I am open to reviews and feedback, it is not ready to be merged.

@didinele didinele requested review from a team and iCrawl as code owners May 7, 2023 18:50
@vercel
Copy link

vercel bot commented May 7, 2023

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

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) May 8, 2023 2:06pm
discord-js-guide ⬜️ Ignored (Inspect) May 8, 2023 2:06pm

@didinele didinele force-pushed the feat/discord-redis-gateway branch from dbdd44d to 73ba97a Compare May 8, 2023 09:17
@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Merging #9541 (d2c7c90) into main (280ed0c) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #9541      +/-   ##
==========================================
+ Coverage   58.64%   58.65%   +0.01%     
==========================================
  Files         226      226              
  Lines       14790    14786       -4     
  Branches     1132     1132              
==========================================
  Hits         8673     8673              
+ Misses       6077     6073       -4     
  Partials       40       40              
Flag Coverage Δ
brokers 63.16% <ø> (ø)
builders 98.69% <ø> (ø)
collection 99.88% <ø> (ø)
guide 0.00% <ø> (ø)
proxy 76.31% <ø> (ø)
rest 93.18% <ø> (ø)
util 98.49% <ø> (ø)
utilities 100.00% <ø> (ø)
voice 63.47% <ø> (ø)
website 0.00% <ø> (ø)
ws 54.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@didinele didinele force-pushed the feat/discord-redis-gateway branch from 73ba97a to 66497f1 Compare May 8, 2023 09:36
@Jiralite Jiralite requested a review from Copilot March 26, 2025 18:17
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a Redis-based gateway package to handle Discord events using a Redis broker. Additionally, it updates Docker publish workflows, module exports, and label configurations to integrate and support the new package.

  • Introduces the RedisGateway implementation for sending and receiving gateway events via Redis.
  • Updates Docker workflows and label configurations to include the new @discordjs/redis-gateway package.
  • Refactors module exports in core and client files to integrate the new gateway functionality.

Reviewed Changes

Copilot reviewed 23 out of 32 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/core/src/gateway/RedisGateway.ts Adds the RedisGateway implementation using a Redis broker for handling gateway events.
packages/redis-gateway/.lintstagedrc.cjs Configures lint-staged for the new redis-gateway package.
.github/workflows/publish-dev-docker.yml Adds a matrix strategy to publish Docker images for redis-gateway and proxy-container packages.
.github/workflows/publish-docker.yml Enhances Docker publish workflow by including the redis-gateway package in the build matrix.
packages/core/src/index.ts Updates module exports to include the new Gateway and RedisGateway modules.
.github/labeler.yml, .github/labels.yml, .github/issue-labeler.yml Adds label configurations for the redis-gateway package.
packages/core/src/gateway/Gateway.ts Adds documentation for the Gateway interface to support both core and Redis-based gateways.
packages/core/src/client.ts Refactors client event mappings and TypeScript types, removing legacy event definitions.
packages/proxy-container/README.md Removes a redundant documentation link in the proxy container README.
Files not reviewed (9)
  • .github/CODEOWNERS: Language not supported
  • packages/brokers/LICENSE: Language not supported
  • packages/core/package.json: Language not supported
  • packages/proxy-container/LICENSE: Language not supported
  • packages/proxy-container/tsconfig.json: Language not supported
  • packages/proxy/LICENSE: Language not supported
  • packages/redis-gateway/.eslintrc.json: Language not supported
  • packages/redis-gateway/.gitignore: Language not supported
  • packages/redis-gateway/.prettierignore: Language not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Review in Progress
Development

Successfully merging this pull request may close these issues.

4 participants