Skip to content

Migrated delete, duplicate, and retrieve campaign users to nexus service#65

Merged
jeroenrinzema merged 3 commits intomainfrom
refactor/campaigns
Nov 29, 2025
Merged

Migrated delete, duplicate, and retrieve campaign users to nexus service#65
jeroenrinzema merged 3 commits intomainfrom
refactor/campaigns

Conversation

@jeroenrinzema
Copy link
Copy Markdown
Contributor

This PR migrates the remaining campaign endpoints.

Copy link
Copy Markdown

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 migrates three campaign-related endpoints (delete, duplicate, and retrieve campaign users) from a legacy service to the Nexus service, completing the campaign API migration to the new architecture.

Key changes:

  • Added OpenAPI specifications for delete, duplicate, and get campaign users endpoints
  • Implemented corresponding database operations and HTTP handlers
  • Created comprehensive test coverage for all new endpoints

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
services/nexus/oapi/resources.yml Defines OpenAPI specs for delete campaign, duplicate campaign, and get campaign users endpoints
services/nexus/oapi/resources_gen.go Auto-generated client/server code from OpenAPI specs including models, request builders, and routing
services/nexus/internal/store/campaigns.go Implements database operations for deleting campaigns, retrieving campaign users, and related data models
services/nexus/internal/store/templates.go Adds template duplication logic for copying templates to new campaigns
services/nexus/internal/http/controllers/v1/campaigns.go Implements HTTP handlers for delete, duplicate, and get campaign users operations
services/nexus/internal/http/controllers/v1/campaigns_test.go Adds comprehensive tests for the new campaign endpoints

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread services/nexus/internal/store/campaigns.go
Comment thread services/nexus/internal/http/controllers/v1/campaigns_test.go
Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 29, 2025

@jeroenrinzema I've opened a new pull request, #66, to work on those changes. Once the pull request is ready, I'll request review from you.

jeroenrinzema and others added 2 commits November 29, 2025 15:23
#66)

* Initial plan

* Fix naming inconsistency: rename send_at to sent_at in campaign_sends table

Co-authored-by: jeroenrinzema <3440116+jeroenrinzema@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jeroenrinzema <3440116+jeroenrinzema@users.noreply.github.com>
@jeroenrinzema jeroenrinzema merged commit 6a7bee2 into main Nov 29, 2025
3 checks passed
@jeroenrinzema jeroenrinzema deleted the refactor/campaigns branch November 29, 2025 14:34
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.

3 participants