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

Adds a new flag to let us disable syncing secondary emails #62

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

mstanbCO
Copy link
Contributor

This pr adds a flag to optionally disable syncing secondary emails.

@@ -19,6 +19,7 @@ var (
cacheTTI = field.IntField("cache-tti", field.WithDescription("Response cache cleanup interval in seconds"), field.WithDefaultValue(60))
cacheTTL = field.IntField("cache-ttl", field.WithDescription("Response cache time to live in seconds"), field.WithDefaultValue(300))
syncCustomRoles = field.BoolField("sync-custom-roles", field.WithDescription("Enable syncing custom roles"), field.WithDefaultValue(false))
syncSecondaryEmails = field.BoolField("sync-secondary-emails", field.WithDescription("Enable syncing secondary emails"), field.WithDefaultValue(true))
Copy link
Contributor

Choose a reason for hiding this comment

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

You might want to invert this if you want to maintain syncing these emails as the default behavior. As it is, if you want to disable the syncing you'd have to pass --sync-secondary-emails=false vs --disable-syncing-secondary-emails.

Copy link
Contributor

Choose a reason for hiding this comment

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

--skip-secondary-emails

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done!

@mstanbCO mstanbCO requested a review from jirwin December 12, 2024 19:25
@mstanbCO mstanbCO merged commit 698ac2d into main Dec 12, 2024
3 checks passed
@ggreer ggreer deleted the mstanbCO/add_secondary_email_option branch December 12, 2024 19:55
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