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

feat: deprecate emails_disabled in favor of emails_enabled #154

Merged
merged 10 commits into from
Aug 21, 2024

Conversation

dariozachow
Copy link
Collaborator

Description of your changes

This PR fixes the Issue with Gitlab 16, where emails_disabled has been renamed to emails_enabled on groups.
This is a breaking change even though It should have been none breaking as discussed here.
But when implementing the changes it felt awkward to work with 2 fields witch are dependend on each other.
This makes a clean representation of the actual Gitlab-API.

The go-gitlab dependency has been updated to the latest version as well.

Fixes #141

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Tests have been updated to test for emailsEnabled instead of emailsDisabled

@dariozachow
Copy link
Collaborator Author

@MisterMX @janwillies

Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

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

LGTM so far. However, we should always provide backward compatibility if possible to provide a clear migration path for users.

apis/groups/v1alpha1/group_types.go Outdated Show resolved Hide resolved
@dariozachow dariozachow changed the title feat!: deprecate emails_disabled in favor of emails_enabled feat: deprecate emails_disabled in favor of emails_enabled Aug 21, 2024
apis/groups/v1alpha1/group_types.go Outdated Show resolved Hide resolved
Co-authored-by: MisterMX <[email protected]>
Signed-off-by: Dario Zachow <[email protected]>
Signed-off-by: Dario Zachow <[email protected]>
Signed-off-by: Dario Zachow <[email protected]>
Signed-off-by: Dario Zachow <[email protected]>
Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you very much @dariozachow!

@MisterMX MisterMX merged commit 4b0dafd into crossplane-contrib:master Aug 21, 2024
8 checks passed
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.

API Deprecations should be handled (right now group -> emails_disabled changed to emails_enabled)
2 participants