-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Don't spam emails during test case run status updates #367
Comments
TestRun.update_completion_status() is now called in only 2 places after a user selected action. We've removed the functionality to update the status automatically and removed all signals related to that. This will also fix #367 because emails are sent after TestRun.save() which now is less often (e.g. when user edits or changes status).
@atodorov why? This feature was pretty useful and I would even say that is should be enabled by default. Because you will always forget to click "set as finished", and automatic update was nice. My issue here was only in calling "save" all the time, not with the feature itself. |
@okainov - the answer of "why remove it" is that this feature as it was implemented was more trouble than it's worth it. I personally think this should be done automatically without asking when the last test case has been executed (this is missing, feel free to request it and let's count the +1s). OTOH I like to keep runs unfinished so they are available on my dashboard until I don't need them anymore. Edit: signals in Django (which are triggered post_save and send the emails) have no idea about what triggered them. So we'd have to implement some logic that teaches the code to ignore signals if the status was updated automatically. Not a good proposal either. |
tcms/testruns/models.py
Looks like self.save is being called almost always and it causes tons of spam emails during test run execution. Please don't spam on useless events.
The text was updated successfully, but these errors were encountered: