Skip to content

backupformat: strip prefixes w/ empty replacement#620

Merged
tstirrat15 merged 1 commit intoauthzed:mainfrom
jzelinskie:strip-prefix
Jan 27, 2026
Merged

backupformat: strip prefixes w/ empty replacement#620
tstirrat15 merged 1 commit intoauthzed:mainfrom
jzelinskie:strip-prefix

Conversation

@jzelinskie
Copy link
Member

Description

This adjusts zed backup <cmd> --prefix-replacements flag to support myprefix= to strip off a prefix entirely.

Testing

Easiest way to is to run zed backup parse-schema --prefix-replacements 'myprefix=' on a backup that has a prefix on it.

@codecov-commenter
Copy link

codecov-commenter commented Jan 27, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.46%. Comparing base (ec981d0) to head (bf5b805).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/backupformat/rewriter.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #620      +/-   ##
==========================================
- Coverage   42.48%   42.46%   -0.02%     
==========================================
  Files          38       38              
  Lines        5030     5032       +2     
==========================================
  Hits         2137     2137              
- Misses       2638     2639       +1     
- Partials      255      256       +1     

☔ View full report in Codecov by Sentry.
📢 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.

Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

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

LGTM

@tstirrat15 tstirrat15 merged commit f4798b9 into authzed:main Jan 27, 2026
12 checks passed
@jzelinskie jzelinskie deleted the strip-prefix branch January 27, 2026 23:08
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2026
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.

3 participants