Skip to content
This repository has been archived by the owner on Feb 5, 2020. It is now read-only.

FEED-206: Fixed that there are no duplicate individual feedback requests are made #85

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

redmerloen
Copy link
Contributor

No description provided.

@redmerloen redmerloen self-assigned this Oct 29, 2018
@redmerloen redmerloen force-pushed the feature/individual-feedback-algorithm branch from b3d2756 to 2248551 Compare October 29, 2018 12:39
@redmerloen redmerloen force-pushed the feature/individual-feedback-algorithm branch from 2248551 to fee3618 Compare October 29, 2018 12:53
@@ -403,6 +409,9 @@ def _match_individual_feedback_to_senders(self, feedbacks):
# Get first object from the list.
feedback = feedbacks[0]

if feedback.recipient.id not in self.already_received_individual_feedback_by_user:
self.already_received_individual_feedback_by_user[feedback.recipient.id] = []
Copy link
Contributor

Choose a reason for hiding this comment

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

I would use set() for this.

@@ -153,6 +155,8 @@ def do_all_users_have_a_role(self):
return users_without_role

def do_all_users_have_a_slack_id(self):
if settings.SILENT_RUN:
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is not needed here. If you run into an error, please put it on the more appropiate place. This function simply returns all users without a slack id, but it does not connect to Slack in any way. So DRY_RUN should only be used on places where actual Slack communication is used.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants