Skip to content

Conversation

iambriccardo
Copy link
Contributor

@iambriccardo iambriccardo commented Aug 26, 2025

This PR fixes a bug for which we were storing the wrong config in the database, causing issue while deserializing.

This is a big problem which can be partially solved if we make sure via traits that we are only serializing and deserializing types that are Storable.

@iambriccardo iambriccardo changed the title riccardobusetti/fix/config fix(api): Implement storable trait to make it more reliable to store configs in the db Aug 26, 2025
@iambriccardo iambriccardo marked this pull request as ready for review August 26, 2025 10:26
@iambriccardo iambriccardo requested a review from a team as a code owner August 26, 2025 10:26
Copy link
Contributor

@imor imor left a comment

Choose a reason for hiding this comment

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

Were the changes related to restart checksum annotation meant to be part of this PR?

},
}

impl Storable for EncryptedStoredDestinationConfig {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Rename trait to Store as Rust traits are named like that without the able suffix.

@iambriccardo
Copy link
Contributor Author

Were the changes related to restart checksum annotation meant to be part of this PR?

Damn, made a mistake will fix.

@iambriccardo iambriccardo force-pushed the riccardobusetti/fix/config branch from 3509b89 to 657ea15 Compare August 26, 2025 11:08
@iambriccardo iambriccardo force-pushed the riccardobusetti/fix/config branch from 657ea15 to f4ddc9e Compare August 26, 2025 11:17
@iambriccardo iambriccardo merged commit 0ea81c7 into main Aug 26, 2025
5 checks passed
@iambriccardo iambriccardo deleted the riccardobusetti/fix/config branch August 26, 2025 11:27
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.

2 participants