Skip to content
This repository was archived by the owner on Feb 8, 2026. It is now read-only.

Delete old DCA code from plugin repo, it re-implemented in dca repo#155

Merged
webpiratt merged 2 commits into
mainfrom
154-delete-dca
Aug 15, 2025
Merged

Delete old DCA code from plugin repo, it re-implemented in dca repo#155
webpiratt merged 2 commits into
mainfrom
154-delete-dca

Conversation

@webpiratt

@webpiratt webpiratt commented Aug 15, 2025

Copy link
Copy Markdown
Contributor

Closes: #154

Summary by CodeRabbit

  • Deprecations/Removals

    • Removed the DCA plugin and its UI, configuration, policies, and developer tooling.
    • Eliminated DCA server/worker entrypoints and related configs.
    • Cleaned up database/init scripts and schema to remove DCA references.
  • Changes

    • Simplified API ping response text.
  • Chores

    • Removed CI workflow for migration tests.
    • Updated bucket creation script to exclude DCA.
    • Adjusted .gitignore to allow tracking under the previous DCA server path.

@coderabbitai

coderabbitai Bot commented Aug 15, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

This PR removes the entire DCA plugin and its related binaries, configurations, schemas, and scripts. It updates schema enum values, deletes CI migration workflow, adjusts buckets and init scripts, and simplifies an API ping message. No additions or refactors beyond removals and minor text change.

Changes

Cohort / File(s) Summary
DCA plugin removal
plugin/dca/*, etc/vultisig/dca.yml, scripts/dev/create_dca_policy/main.go
Removed DCA plugin implementation, config loader, policy types, UI schema, example config, and dev CLI.
DCA binaries removal
cmd/dca/server/*, cmd/dca/worker/*
Deleted DCA server and worker entrypoints and their config loaders.
Database and schema updates
storage/postgres/schema/schema.sql, init-scripts/01_create_vultisig_plugin.sql
Dropped DCA plugin_id enum value and removed DCA database creation statement.
CI/Automation
.github/workflows/migration-test.yml
Removed migration test workflow that built and validated DCA migrations/schema.
Infrastructure scripts
create_buckets.sh
Removed vultisig-dca bucket from creation list.
API text change
api/server.go
Ping response text changed from “Payroll & DCA Plugin server is running” to “server is running”.
Repository hygiene
.gitignore
Unignored cmd/dca/server/server.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Assessment against linked issues

Objective Addressed Explanation
Delete code related to DCA plugin (#154)

Assessment against linked issues: Out-of-scope changes

Code Change Explanation
Ping response text updated (api/server.go) Text change is unrelated to removing DCA; not required by the objective.

Poem

I tidied my warren, hop-hop hooray,
The DCA carrots have bounced away.
Empty burrows, lighter pack,
Fewer tunnels in the tech-stack.
I thump with glee—clean and bright,
Onward we sprint, ears to the light! 🐇✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 154-delete-dca

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@webpiratt webpiratt changed the title delete dca Delete old DCA code from plugin repo, it re-implemented in dca repo Aug 15, 2025
@webpiratt
webpiratt merged commit 39dfcbb into main Aug 15, 2025
1 of 2 checks passed
@webpiratt
webpiratt deleted the 154-delete-dca branch August 15, 2025 16:55

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
create_buckets.sh (1)

1-12: Harden the script: add strict mode and readiness check instead of fixed sleep

To make this more robust in CI/containers, avoid a magic sleep and fail fast on errors.

Apply the following diff:

 #!/bin/bash
+set -euo pipefail

-# wait for minio server
-sleep 5
-
-mc alias set local http://localhost:9000 minioadmin minioadmin
+mc alias set local http://localhost:9000 minioadmin minioadmin
+# wait until MinIO is ready
+for i in {1..60}; do
+  if mc ls local >/dev/null 2>&1; then
+    break
+  fi
+  sleep 1
+done

-buckets="vultisig-payroll vultisig-fee"
+buckets=("vultisig-payroll" "vultisig-fee")

-for bucket in $buckets; do
-    mc mb --ignore-existing local/$bucket
+for bucket in "${buckets[@]}"; do
+    mc mb --ignore-existing "local/${bucket}"
 done
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 60df06a and 0b2268c.

📒 Files selected for processing (16)
  • .github/workflows/migration-test.yml (0 hunks)
  • .gitignore (0 hunks)
  • api/server.go (1 hunks)
  • cmd/dca/server/config.go (0 hunks)
  • cmd/dca/server/main.go (0 hunks)
  • cmd/dca/worker/config.go (0 hunks)
  • cmd/dca/worker/main.go (0 hunks)
  • create_buckets.sh (1 hunks)
  • etc/vultisig/dca.yml (0 hunks)
  • init-scripts/01_create_vultisig_plugin.sql (1 hunks)
  • plugin/dca/config.go (0 hunks)
  • plugin/dca/dca.go (0 hunks)
  • plugin/dca/dcaPluginUiSchema.json (0 hunks)
  • plugin/dca/policy.go (0 hunks)
  • scripts/dev/create_dca_policy/main.go (0 hunks)
  • storage/postgres/schema/schema.sql (0 hunks)
💤 Files with no reviewable changes (13)
  • plugin/dca/config.go
  • .github/workflows/migration-test.yml
  • cmd/dca/server/main.go
  • plugin/dca/policy.go
  • cmd/dca/worker/main.go
  • storage/postgres/schema/schema.sql
  • cmd/dca/server/config.go
  • plugin/dca/dcaPluginUiSchema.json
  • etc/vultisig/dca.yml
  • cmd/dca/worker/config.go
  • .gitignore
  • plugin/dca/dca.go
  • scripts/dev/create_dca_policy/main.go
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-07-24T19:34:47.441Z
Learnt from: webpiratt
PR: vultisig/plugin#141
File: plugin/payroll/transaction.go:208-267
Timestamp: 2025-07-24T19:34:47.441Z
Learning: In the vultisig/plugin codebase, duplicate transaction prevention for the payroll plugin has been moved to the verifier side, so the local `IsAlreadyProposed` check in plugin/payroll/transaction.go is no longer needed. The validation flow has changed and is now handled by the verifier rather than within the plugin itself.

Applied to files:

  • init-scripts/01_create_vultisig_plugin.sql
🔇 Additional comments (4)
create_buckets.sh (2)

8-8: Bucket removal aligns with DCA deprecation

Removing vultisig-dca from the buckets list is consistent with the overall DCA cleanup. No functional concerns.


8-8: No remaining references to "vultisig-dca" — verified

Searched the repo (case-insensitive) for "vultisig-dca" — no matches. create_buckets.sh sets buckets="vultisig-payroll vultisig-fee". The only "dca" mention is a TODO comment in api/plugin.go (not creating/using a bucket). No further action required.

init-scripts/01_create_vultisig_plugin.sql (2)

1-2: DB list correctly excludes DCA

Creation now only includes payroll and fee DBs, matching the DCA removal scope.


1-2: Verified — no remaining references to "vultisig-dca"

Searched the repo for "vultisig-dca" and common variants (regex: vultisig[-_ ]?dca / vultisig-dca-0000) — no matches. The init script now creates vultisig-payroll and vultisig-fee and configs reference those names.

Files observed for context:

  • init-scripts/01_create_vultisig_plugin.sql — CREATE DATABASE "vultisig-payroll"; CREATE DATABASE "vultisig-fee";
  • storage/postgres/schema/schema.sql — plugin_id enum contains 'vultisig-payroll-0000' and 'vultisig-fees-feee'
  • docker-compose.yaml, .example.json, and .run/.xml — DSNs and buckets reference vultisig-payroll / vultisig-fee

No further action required.

Comment thread api/server.go
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete code related to DCA plugin

2 participants