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

fix: compatiblity mode for v0 tagging behavior #33

Merged
merged 5 commits into from
Nov 20, 2024

Conversation

aripalo
Copy link
Contributor

@aripalo aripalo commented Nov 19, 2024

The previousv0 incorrectly performed the "is value non-empty string" checks leading to a bug which caused Organization and Contact tags to be left out.

This bug was fixed in beta branch, but it of course now causes CloudFormation diff.

This PR adds @alma-cdk/project:compatibility:v0:tags feature flag support that users can enable to avoid the diff.

Long-term the current beta-version tagging behavior (without the feature flag) will be default, so the feature flag will be removed in future v2. But having the feature flag allows users to control when they want to include the new tags.

Additionally this PR adds several tests, especially for the tagging behavior.

This PR also configures SonarCloud to not complain about use of code with @deprecated annotation in certain code paths, because we want to still use that code but by using @deprecated to signal that those features will be removed in future major versions.

@aripalo aripalo requested a review from a team November 19, 2024 14:18
Copy link

@Hyperinen Hyperinen left a comment

Choose a reason for hiding this comment

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

other than that newline, lgtm

Copy link
Contributor

@jyrheikk jyrheikk left a comment

Choose a reason for hiding this comment

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

praise: Very comprehensive tests.

.projenrc.ts Show resolved Hide resolved
@aripalo aripalo merged commit 5a8ab49 into beta Nov 20, 2024
13 checks passed
@aripalo aripalo deleted the beta-compatibility-mode-v0-tags branch November 20, 2024 11:58
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.

3 participants