Skip to content

feat(stackable-versioned): Add support for modules #891

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

Merged
merged 38 commits into from
Nov 22, 2024

Conversation

Techassi
Copy link
Member

@Techassi Techassi commented Oct 14, 2024

Part of stackabletech/issues#642

Add support to apply the #[versioned()] macro to modules to version all contained items at once. Adding this feature required extensive refactoring through out the code.

@Techassi Techassi self-assigned this Oct 14, 2024
@Techassi Techassi changed the title chore: Add changelog entry feat(stackable-versioned): Add support for modules Oct 14, 2024
This separates token generation code to be more
modular. Depending on the context, individual
parts of the code need to be placed in different
locations.

Two major refactors are the change of macro input
as well as moving module generation out of the
struct definition generation.

This commit doesn't include changes for enum
generation. This will be done in a separate commit.
This commit contains a major rework of most parts of the attribute
macro to support attaching it to modules. Most of the previously
existing features are already in place. There are only two missing
features which will be added in follow-up commits: version specific
doc comments and merged CRD YAML support. Because of that, some
snapshot tests are failing.
This also adds a test to validate that the relevant code is not
generated of the skip option is set.
@Techassi Techassi marked this pull request as ready for review November 15, 2024 13:50
@Techassi Techassi marked this pull request as draft November 15, 2024 14:05
@Techassi Techassi marked this pull request as ready for review November 15, 2024 14:49
NickLarsenNZ
NickLarsenNZ previously approved these changes Nov 22, 2024
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, left some comments and suggestions

Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
@NickLarsenNZ NickLarsenNZ self-requested a review November 22, 2024 13:57
NickLarsenNZ
NickLarsenNZ previously approved these changes Nov 22, 2024
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

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

@NickLarsenNZ NickLarsenNZ added this pull request to the merge queue Nov 22, 2024
Merged via the queue into main with commit bd6079e Nov 22, 2024
10 checks passed
@NickLarsenNZ NickLarsenNZ deleted the feat/stackable-versioned-mod-support branch November 22, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants