Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Close conversations when target has ended #635

Merged
merged 1 commit into from Jan 26, 2019
Merged

Conversation

tiltec
Copy link
Member

@tiltec tiltec commented Jan 25, 2019

Closes karrot-dev/karrot-frontend#1088

If the target has ended (e.g. pickups, applications, issues) and nobody replied within the last 7 days, close the discussion.
Nobody can write in a closed discussion. Includes handling for replies that are received via email, in this case it sends a "message not accepted" email back to the sender.

@codecov
Copy link

codecov bot commented Jan 25, 2019

Codecov Report

Merging #635 into master will decrease coverage by 0.01%.
The diff coverage is 94.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #635      +/-   ##
==========================================
- Coverage   95.79%   95.78%   -0.02%     
==========================================
  Files         359      362       +3     
  Lines       13842    13942     +100     
  Branches      854      858       +4     
==========================================
+ Hits        13260    13354      +94     
- Misses        464      470       +6     
  Partials      118      118
Impacted Files Coverage Δ
foodsaving/subscriptions/tests/test_receivers.py 99.37% <ø> (ø) ⬆️
foodsaving/conversations/tests/test_api.py 100% <100%> (ø) ⬆️
...rsations/migrations/0027_conversation_is_closed.py 100% <100%> (ø)
foodsaving/conversations/tasks.py 96.15% <100%> (+0.91%) ⬆️
foodsaving/conversations/tests/test_tasks.py 99.17% <100%> (+0.19%) ⬆️
foodsaving/issues/factories.py 100% <100%> (ø) ⬆️
foodsaving/webhooks/stats.py 100% <100%> (ø)
foodsaving/webhooks/emails.py 100% <100%> (ø)
foodsaving/issues/models.py 97.74% <100%> (+0.03%) ⬆️
foodsaving/conversations/serializers.py 97.94% <100%> (+0.04%) ⬆️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be794eb...928540a. Read the comment docs.

@tiltec tiltec changed the title WIP: Close conversations when target has ended Close conversations when target has ended Jan 26, 2019
@tiltec tiltec merged commit 79ef227 into master Jan 26, 2019
@tiltec tiltec deleted the close-conversations branch January 26, 2019 13:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant