Skip to content

fix[prefix]: strip_meta from get_opts result in PrefixStore#686

Merged
crepererum merged 1 commit intoapache:mainfrom
asubiotto:asubiotto/prefix
Apr 8, 2026
Merged

fix[prefix]: strip_meta from get_opts result in PrefixStore#686
crepererum merged 1 commit intoapache:mainfrom
asubiotto:asubiotto/prefix

Conversation

@asubiotto
Copy link
Copy Markdown
Contributor

PrefixStore was incorrectly not stripping the prefix from the returned result.

Which issue does this PR close?

Closes #664
Closes #670

Rationale for this change

Fix regression

What changes are included in this PR?

Fix + assertion in integration tests + regression test

Are there any user-facing changes?

PrefixStore was incorrectly not stripping the prefix from the returned result.

Signed-off-by: Alfonso Subiotto Marques <alfonso.subiotto@polarsignals.com>
@asubiotto
Copy link
Copy Markdown
Contributor Author

cc @crepererum

Copy link
Copy Markdown
Contributor

@crepererum crepererum left a comment

Choose a reason for hiding this comment

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

thank you

Comment thread src/prefix.rs
assert_eq!(&*read_data, data)
}

// Regression test for
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.

the extensions of the integration test is actually sufficient, but having an additional regression test also doesn't hurt.

@crepererum crepererum merged commit e89f62b into apache:main Apr 8, 2026
9 checks passed
@asubiotto
Copy link
Copy Markdown
Contributor Author

Thanks for the review! Can I/how do I request that this gets backported to 0.13?

@crepererum
Copy link
Copy Markdown
Contributor

None of the breaking changes for 0.14.x have landed yet, so backporting is technically not even required. I will however note this in #672 so we don't forget.

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.

PrefixStore::head doesn't strip prefix from meta.location

2 participants