Skip to content

Affiliation-extras: Allow disabling contact emails for affiliations - #15

Open
duartegalvao wants to merge 1 commit into
indico:masterfrom
duartegalvao:disable-contact-emails
Open

Affiliation-extras: Allow disabling contact emails for affiliations#15
duartegalvao wants to merge 1 commit into
indico:masterfrom
duartegalvao:disable-contact-emails

Conversation

@duartegalvao

@duartegalvao duartegalvao commented Jul 6, 2026

Copy link
Copy Markdown
Member

This PR adds the ability to temporarily disable contact emails for affiliations.

image

Depends on: indico/indico#7638

@duartegalvao
duartegalvao force-pushed the disable-contact-emails branch from a04ef0b to 871dc7f Compare July 6, 2026 11:46
@duartegalvao
duartegalvao force-pushed the disable-contact-emails branch from 871dc7f to 38e70ae Compare July 6, 2026 12:05

@moliholy moliholy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Mostly clean, one non-blocking note below.

continue
inactive_emails = lst.get('inactive_emails', [])
if not set(inactive_emails) <= set(emails):
raise ValidationError('Inactive emails must belong to the contact list')

@moliholy moliholy Jul 16, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not wrapped for translation, and there are other cases in the plugin. Fine to keep here; might be worth a separate PR to wrap them all.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is purposeful since this message should never be displayed under normal conditions. Only if someone messes with the payloads

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.

2 participants