Skip to content

Conversation

@sebastienhoorens
Copy link
Contributor

Changelog

Fixed

  • [TAN-5756] Inappropriate content flag emails not arriving

@notion-workspace
Copy link

@cl-dev-bot
Copy link
Collaborator

Messages
📖 Changelog provided 🎉
📖 Notion issue: TAN-5756
📖

Run the e2e tests

📖 Check translation progress

Generated by 🚫 dangerJS against 71728d4


expect(command).to match(
event_payload: a_hash_including(
flaggable_author_name: 'Biggus Dickus',
Copy link
Contributor

Choose a reason for hiding this comment

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

😄

Copy link
Contributor

@jamesspeake jamesspeake left a comment

Choose a reason for hiding this comment

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

Looks good. just think the test descriptions need changing - for me they are describing the inverse of what they are doing

Comment on lines +47 to +49
it 'filters out moderators' do
expect(campaign.filter_recipient(User.all, activity:).ids).to match_array([admin.id, moderator.id])
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Struggling with the language here. Do you mean it includes all admins and moderators? It's not filtering out anything?

context 'when the author is a moderator' do
let(:author) { create(:project_moderator, projects: [idea.project]) }

it 'filters out no one if the author is a moderator' do
Copy link
Contributor

Choose a reason for hiding this comment

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

Likewise here - it includes no one

context 'when there is no author' do
let(:author) { nil }

it 'filters out moderators' do
Copy link
Contributor

Choose a reason for hiding this comment

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

Here too

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.

4 participants