Skip to content

Conversation

Techassi
Copy link
Member

@Techassi Techassi commented Sep 5, 2025

Part of stackabletech/issues#642 and stackabletech/secret-operator#634.

This PR adds a new argument #[versioned(hint)] to provide hints for two supported wrapped types:

  • #[versioned(hint(option))]: This hints that the field is wrapped in Option<_>. In the conversion From impl blocks this will result in a .map(Into::into) call.
  • #[versioned(hint(vec))]: This hints that the field is wrapped in Vec<_>. In the conversion From impl blocks this will result in a .into_iter().map(Into::into).collect() call.

@Techassi Techassi self-assigned this Sep 5, 2025
@Techassi Techassi moved this to Development: In Progress in Stackable Engineering Sep 5, 2025
@Techassi Techassi force-pushed the feat/stackable-versioned-hint-wrapped branch from 9538541 to 156b5d2 Compare September 8, 2025 10:04
@Techassi Techassi marked this pull request as ready for review September 8, 2025 10:05
@Techassi Techassi moved this from Development: In Progress to Development: Waiting for Review in Stackable Engineering Sep 8, 2025
@Techassi Techassi requested a review from a team September 8, 2025 10:17
NickLarsenNZ
NickLarsenNZ previously approved these changes Sep 8, 2025
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

I skim-read this one. Looks fine to me.

One suggestion (will approve anyway since it is a non-functional thing).

@sbernauer sbernauer moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Sep 8, 2025
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

LGTM

@Techassi Techassi added this pull request to the merge queue Sep 8, 2025
@Techassi Techassi moved this from Development: In Review to Development: Done in Stackable Engineering Sep 8, 2025
Merged via the queue into main with commit f93c552 Sep 8, 2025
8 checks passed
@Techassi Techassi deleted the feat/stackable-versioned-hint-wrapped branch September 8, 2025 14:47
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants