Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Immutable metadata #3297

Merged
merged 1 commit into from
Aug 8, 2023
Merged

Immutable metadata #3297

merged 1 commit into from
Aug 8, 2023

Conversation

toots
Copy link
Member

@toots toots commented Aug 6, 2023

This PR addresses a regular time-old footgun: metadata in streams and frames are mutable, which has lead to countless confusion where its content gets changed somewhere and triggers issues somewhere else.

This PR makes metadata immutable, reusing the same API as with methods. The main difference is that it will not allow multiple metadata with the same name, which seems reasonable and expected actually.

@toots toots force-pushed the immutable-metadata branch 3 times, most recently from 6c7bc21 to bb9a737 Compare August 7, 2023 00:05
@toots toots marked this pull request as ready for review August 7, 2023 00:08
@toots toots requested a review from smimram August 7, 2023 02:08
@toots toots force-pushed the immutable-metadata branch 2 times, most recently from 8a165ae to c5b3ab1 Compare August 8, 2023 14:05
@toots toots enabled auto-merge August 8, 2023 14:05
@toots toots added this pull request to the merge queue Aug 8, 2023
Merged via the queue into main with commit 3d0eb28 Aug 8, 2023
27 checks passed
@toots toots deleted the immutable-metadata branch August 8, 2023 19:44
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.

1 participant