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

Circumvent cache in WIC->Ethics sync #10588

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/jobs/sync_mailing_lists_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def perform
# Special case: WIC is the first committee in our (recent) history that "absorbed" another team's duties:
# They are now a "mix" of WDC and WEC. The structures have been mapped so that WIC reuses WDC's groups,
# so they get WDC access "for free". But they _also_ need to be synced to ethics@ to view old conversations from there.
GsuiteMailingLists.sync_group("[email protected]", GroupsMetadataTeamsCommittees.wic.user_group.active_users.map(&:email))
GsuiteMailingLists.sync_group("[email protected]", GroupsMetadataTeamsCommittees.wic.user_group.active_users.pluck(:email))

treasurers = UserGroup.officers.flat_map(&:active_roles).filter { |role| role.metadata.status == RolesMetadataOfficers.statuses[:treasurer] }
GsuiteMailingLists.sync_group("[email protected]", treasurers.map(&:user).map(&:email))
Expand Down
Loading