Skip to content

feat: add Base table copy shortcuts - #2019

Draft
fongwave wants to merge 2 commits into
mainfrom
codex/base-table-copy
Draft

feat: add Base table copy shortcuts#2019
fongwave wants to merge 2 commits into
mainfrom
codex/base-table-copy

Conversation

@fongwave

Copy link
Copy Markdown
Collaborator

Summary

Add Base shortcuts for copying a table and querying asynchronous copy status. Table copies default to schema-only, with explicit support for copying all records and optionally waiting for completion.

Changes

  • Add base +table-copy with table ID/name support, schema-safe defaults, asynchronous continuation output, and bounded wait polling.
  • Add base +table-copy-status for one-shot task status queries using the original identity.
  • Register structured Base copy error codes and preserve typed API errors.
  • Add unit, dry-run E2E, workflow E2E, and Skill guidance for the new commands.

Test Plan

  • make unit-test
  • go vet ./...
  • gofmt -l .
  • go mod tidy leaves go.mod and go.sum unchanged
  • golangci-lint reports 0 issues
  • Base CLI E2E package passes
  • Manual verification confirms schema-only, all-record, wait, and no-wait flows

Related Issues

  • None

@CLAassistant

CLAassistant commented Jul 23, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7d93bea8-f460-4a30-bc69-a701e9aed5ae

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/base-table-copy

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

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

@github-actions github-actions Bot added domain/base PR touches the base domain size/L Large or sensitive change across domains or core paths labels Jul 23, 2026
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.29752% with 57 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.10%. Comparing base (d4168ab) to head (8181f66).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
shortcuts/base/table_copy_ops.go 89.16% 15 Missing and 11 partials ⚠️
shortcuts/base/table_copy_poll.go 63.76% 19 Missing and 6 partials ⚠️
shortcuts/base/table_copy.go 84.61% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2019      +/-   ##
==========================================
+ Coverage   75.05%   75.10%   +0.05%     
==========================================
  Files         901      906       +5     
  Lines       95391    96305     +914     
==========================================
+ Hits        71591    72329     +738     
- Misses      18307    18417     +110     
- Partials     5493     5559      +66     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain/base PR touches the base domain size/L Large or sensitive change across domains or core paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants