Merge organizations asynchronously #1825
Merged
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.
Changes proposed ✍️
What
🤖 Generated by Copilot at 13bd026
The pull request adds support for asynchronous merge operation of organizations using a worker queue. It modifies the
OrganizationRepository
,OrganizationService
, andorganizationMerge
API classes to handle the new status column and themergeAsync
function. It also adds new files and functions to create and process theOrganizationMergeMessage
in the worker queue and optionally notify the frontend. It also includes SQL migration scripts to update the database schema.
🤖 Generated by Copilot at 13bd026
Why
How
🤖 Generated by Copilot at 13bd026
merge
function inOrganizationService
class to use worker queue (link,link,link,link)mergeSync
and add new functionmergeAsync
(link)mergeAsync
(link)sendOrgMergeMessage
function (link,link,link)mergeSync
(link)mergeSync
(link)orgMergeWorker
function to handle merge operation in worker queue (link,link,link)mergeSync
function to perform actual merge operation (link)workerFactory
function (link,link)OrganizationMergeMessage
type (link,link)findAndCountAllToMerge
function inOrganizationRepository
class to include and filter by status column (link,link,link,link)setMergeStatus
function toOrganizationRepository
class to update status of organization to merge (link)U1699357748__org-merge-status.sql
(link)V1699357748__org-merge-status.sql
(link)Checklist ✅
Feature
,Improvement
, orBug
.