This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
Changes for match-ticket, match-ticket-assignment services hook refactor #8991
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
🤖 Generated by Copilot at 7180bc4
The pull request refactors the matchmaking services and hooks for match tickets and match ticket assignments, using the
KnexService
base class and helper functions to simplify the code and avoid duplication. It also removes unnecessary arguments from the service constructors and updates the imports accordingly.References
#8871
Explanation
🤖 Generated by Copilot at 7180bc4
KnexService
inMatchTicketService
andMatchTicketAssignmentService
classes (link, link, link, link)MatchTicketAssignmentService
class togetTicketAssigment
function inmatch-ticket-assignment.hooks.ts
(link, link, link)app
argument fromMatchTicketAssignmentService
constructor inmatch-ticket-assignment.ts
(link)MatchTicketService
class toensureId
,getEmulationTicket
,createInEmulation
, andskipDeleteInEmulation
functions inmatch-ticket.hooks.ts
(link, link, link, link)app
argument fromMatchTicketService
constructor inmatch-ticket.ts
(link)match-ticket-assignment.hooks.ts
andmatch-ticket.hooks.ts
to add or remove modules as needed (link, link, link)🤖 Generated by Copilot at 7180bc4
QA Steps
List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.
Checklist