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

Feature/email reminder #378

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from
Open

Feature/email reminder #378

wants to merge 12 commits into from

Conversation

Fredrikaaa
Copy link
Contributor

@Fredrikaaa Fredrikaaa commented Oct 5, 2021

Implemented an email form for events. Allowing organizers to easily send email updates to everyone who signed up.

@codecov
Copy link

codecov bot commented Oct 5, 2021

Codecov Report

Merging #378 (9f0e44a) into dev (98c8eda) will decrease coverage by 10.72%.
The diff coverage is 46.03%.

❗ Current head 9f0e44a differs from pull request most recent head f0113d5. Consider uploading reports for the commit f0113d5 to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##              dev     #378       +/-   ##
===========================================
- Coverage   83.25%   72.52%   -10.73%     
===========================================
  Files         116      114        -2     
  Lines        3607     3531       -76     
===========================================
- Hits         3003     2561      -442     
- Misses        604      970      +366     
Impacted Files Coverage Δ
news/urls.py 100.00% <ø> (ø)
news/views.py 71.04% <44.44%> (-16.65%) ⬇️
news/forms.py 66.10% <48.14%> (-30.78%) ⬇️
docs/urls.py 0.00% <0.00%> (-100.00%) ⬇️
docs/converters.py 0.00% <0.00%> (-80.00%) ⬇️
docs/views.py 0.00% <0.00%> (-79.25%) ⬇️
docs/forms.py 0.00% <0.00%> (-76.93%) ⬇️
news/templatetags/event_tags.py 50.00% <0.00%> (-50.00%) ⬇️
make_queue/views/reservation/calendar.py 54.54% <0.00%> (-45.46%) ⬇️
news/ical.py 46.66% <0.00%> (-42.23%) ⬇️
... and 58 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 98c8eda...f0113d5. Read the comment docs.

@Fredrikaaa Fredrikaaa changed the base branch from master to dev October 12, 2021 14:18
# Conflicts:
#	news/forms.py
#	news/templates/news/admin_event_ticket_list.html
#	news/views.py
Copy link
Member

@mahoyen mahoyen 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! Some comments :)

make_queue/migrations/0020_auto_20210420_1410.py Outdated Show resolved Hide resolved
{{ form.content }}
</div>
<input class="ui yellow right floated submit button" type="submit" value="{% trans "Send" %}">
<a href="{% block cancel-url %}{% url "admin-event" form.instance.id %}{% endblock %}" class="ui red right floated button">
Copy link
Member

Choose a reason for hiding this comment

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

Please add the name to the endblock and change the naming style as well.(relevant section)

Suggested change
<a href="{% block cancel-url %}{% url "admin-event" form.instance.id %}{% endblock %}" class="ui red right floated button">
<a href="{% block cancel_url %}{% url "admin-event" form.instance.id %}{% endblock cancel_url %}" class="ui red right floated button">

news/templates/news/timeplace_email.html Outdated Show resolved Hide resolved
Comment on lines +83 to +87
if not event and not time_place:
raise forms.ValidationError("Event and timeplace cannot both be None.")
if event and time_place:
raise forms.ValidationError("Event and timeplace cannot both be set.")
return cleaned_data
Copy link
Member

Choose a reason for hiding this comment

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

It is nice if you have add tests that verify that the validation works as intended. I can help in a worksession if you'd like.

news/templates/email/reminder.txt Show resolved Hide resolved
Fredrikaaa and others added 6 commits October 19, 2021 17:16
…ultiperiod.py

Fieldname "multiperiod" in model ReservationRule renamed to "multi-period".
I'm not certain if this migration has a function or why it was created, but migration nr 21 depends on this one..
second attempt at fixing dependency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for Review
Development

Successfully merging this pull request may close these issues.

3 participants