262ecdf270
Co-authored-by: Carlos Florêncio <carlosmflorencio@gmail.com> Co-authored-by: ayattara <alassane.yattara@savoirfairelinux.com>
2.3 KiB
2.3 KiB
id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
| id | title | status | wave | depends_on | plan | requirements | acceptance_criteria | system_design | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 01-coordinator | Provider-neutral task change-request link coordinator | done | 1 | plan.md |
|
|
|
Task 01: Provider-neutral task change-request link coordinator
Summary
Add the backend MCP link contract for GitHub pull requests and GitLab merge requests behind one provider-neutral coordinator: request validation, workspace-scoped resolution, provider dispatch, and the resulting canonical linked set returned to the caller.
In scope
apps/backend/internal/mcp/handlers/task_change_link.goand its tests.apps/backend/internal/backendapp/task_change_link_coordinator.goand its tests.- Provider service entry points used by the coordinator in
apps/backend/internal/githubandapps/backend/internal/gitlab. - GitLab unlink deletion-event publication consumed by
apps/backend/pkg/websocket/actions.go.
Out of scope
- Frontend rendering of the linked set beyond existing provider stores.
- Automation redesign or workflow moves.
- Direct database editing outside product migrations.
Acceptance
- A bare pull-request or merge-request number is rejected before any store mutation, and fork versus canonical same-number identities stay distinct.
- A failed replacement removes the newly created association and reports both failures without leaving two active links.
- Unlinks emit the provider deletion event after persistence succeeds.
Verification
cd apps/backend && go test ./internal/mcp/handlers ./internal/mcp/server ./internal/backendapp ./internal/github ./internal/gitlab ./internal/task/dto ./pkg/api/v1
Results
Implemented and verified on branch feature/manage-task-pr-and-m-e6i at
b1ada7b95dd471752799fbbe78ed6ce8b2794564. Focused coordinator, handler,
server, GitHub, and GitLab suites passed, including race-enabled focused
identity, authorization, idempotency, rollback, detach, and projection tests.