Skip to content

Conversation

@ramonfigueiredo
Copy link
Collaborator

Link the Issue(s) this Pull Request is related to.

Summarize your change.

Added email notifications to track subscription modifications in the CueCommander GUI. When a subscription's size or burst value is changed, an automated email is sent to configured recipients with details about the change, including:

  • What was changed (size or burst)
  • Old and new values
  • Who made the change
  • Timestamp of the change

Key features:

  • Configurable CC recipients via cuegui.yaml
  • Support for email templates with {show} and {domain} placeholders
  • Disabled by default (set email.subscription_change_cc to enable)
  • Graceful error handling - email failures don't block subscription changes

Configuration:

  • New setting: email.subscription_change_cc in cuegui.yaml
  • Example: "{show}-admin@{domain},resource-team@{domain}"

Files modified:

  • cuegui/config/cuegui.yaml: Added email.subscription_change_cc config
  • cuegui/Constants.py: Added SUBSCRIPTION_CHANGE_CC_TEMPLATE constant
  • cuegui/MenuActions.py: Implemented _sendSubscriptionChangeEmail() and updated editSize() and editBurst() methods

@ramonfigueiredo ramonfigueiredo marked this pull request as ready for review October 15, 2025 01:30
@ramonfigueiredo ramonfigueiredo marked this pull request as draft October 15, 2025 01:32
Added email notifications to track subscription modifications in the CueCommander GUI. When a subscription's size or burst value is changed, an automated email is sent to configured recipients with details about the change, including:
- What was changed (size or burst)
- Old and new values
- Who made the change
- Timestamp of the change

Key features:
- Configurable CC recipients via cuegui.yaml
- Support for email templates with {show} and {domain} placeholders
- Disabled by default (set email.subscription_change_cc to enable)
- Graceful error handling - email failures don't block subscription changes

Configuration:
- New setting: email.subscription_change_cc in cuegui.yaml
- Example: "{show}-admin@{domain},resource-team@{domain}"

Files modified:
- cuegui/config/cuegui.yaml: Added email.subscription_change_cc config
- cuegui/Constants.py: Added SUBSCRIPTION_CHANGE_CC_TEMPLATE constant
- cuegui/MenuActions.py: Implemented _sendSubscriptionChangeEmail() and updated editSize() and editBurst() methods
@ramonfigueiredo ramonfigueiredo force-pushed the feature/subscription-change-email-notifications branch from 7cd1516 to cdbc9ce Compare October 15, 2025 01:55
@ramonfigueiredo ramonfigueiredo marked this pull request as ready for review October 15, 2025 02:03
@ramonfigueiredo
Copy link
Collaborator Author

@DiegoTavares / @lithorus
Ready for review!

@lithorus
Copy link
Collaborator

Isn't it better to have emails sent throught cuebot instead, similar to other emails sent?
This would require email sending etc. setup on all workstations instead of a central place.

Copy link
Collaborator

@DiegoTavares DiegoTavares left a comment

Choose a reason for hiding this comment

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

Given that pycue could be used to update subscriptions without cuegui, wouldn't it make more sense to handle email notifications on Cuebot?

@ramonfigueiredo ramonfigueiredo marked this pull request as draft October 16, 2025 02:33
@ramonfigueiredo
Copy link
Collaborator Author

Thanks @DiegoTavares / @lithorus

I will move the email handling to the Cabot.

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