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

[backend] add election stage change notifications #4518

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

kdembler
Copy link
Member

@kdembler kdembler commented Sep 3, 2023

Builds on top of #4511, will rebase once merged.

This PR adds notifications for election stage changes (announcing, voting, revealing). I haven't added support for ELECTION_COUNCIL_ELECTED since it would be happening at the same time as announcing so consolidated both into a single notification.

The issue suggested adding entities fetch to populate email data, but copy suggested in #4274 doesn't include any additional data. I guess we could add details like council term and number of candidates? Will take a look at that tomorrow.

Resolves #4273

@vercel
Copy link

vercel bot commented Sep 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dao ✅ Ready (Inspect) Visit Preview Sep 6, 2023 3:41pm
pioneer-2 ✅ Ready (Inspect) Visit Preview Sep 6, 2023 3:41pm
pioneer-2-storybook ✅ Ready (Inspect) Visit Preview Sep 6, 2023 3:41pm

Copy link
Member

@thesan thesan left a comment

Choose a reason for hiding this comment

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

Great work ! Just one change on the default behavior

packages/server/test/notifier.test.ts Outdated Show resolved Hide resolved
@kdembler
Copy link
Member Author

kdembler commented Sep 6, 2023

Thanks @thesan, fixed

Copy link
Member

@thesan thesan left a comment

Choose a reason for hiding this comment

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

Perfect!

@thesan thesan merged commit 7d353b9 into Joystream:backend Sep 6, 2023
7 checks passed
@thesan thesan added scope:notifications Notifications subsystem community-dev issue suitable for community-dev pipeline labels Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend community-dev issue suitable for community-dev pipeline scope:notifications Notifications subsystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants