FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

WIP:Add Reminder Email for events by zaettar · Pull Request #209 · amiv-eth/amivapi · GitHub

This repository was archived by the owner on Nov 21, 2024. It is now read-only.
/ amivapi Public archive

WIP:Add Reminder Email for events - #209

Open
zaettar wants to merge 11 commits into
masterfrom
add_event-remindermail_scheduled_task
Open

zaettar wants to merge 11 commits into
masterfrom
add_event-remindermail_scheduled_task

Conversation

zaettar commented Dec 23, 2017

Copy link
Copy Markdown
Contributor

#180
Add the creation and sending of a reminder email for events. The reminder will be sent to all the users signed up for the event.

…tive name to make them easier to find for updating events. \<_=_>/
Added function to schedule the sending of the reminder email as a hook to an event creation and a function to update the scheduled remindermail when the event is updated.
Progress boiii....
zaettar self-assigned this Dec 23, 2017
zaettar changed the title Add Reminder Email for events WIP:Add Reminder Email for events Dec 23, 2017

NotSpecial left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think the current solution is a bit complicated.

Furthermore, it seem like none of the new functionality is tested.

Comment thread amivapi/cron.py
item = pickle.load(args)
func_s = "remindermail"+str(item['_id'])
else:
func_s = func_str(func)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This seems super hacky to me. Is this special case for reminder mails really necessary?

Comment thread amivapi/cron.py
func_s = func_str(func)
if func_str(func) is "remindermail":
item = pickle.load(args)
func_s = "remindermail_"+str(item['_id'])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think this will break the update. the update_one below identifies the function by name, so if the name is changed, the original function cannot be updated anymore.

Comment thread amivapi/events/emails.py
remindermail,
item)


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

We have already discussed this in the chat shortly -- might it not be easier to add a periodic task sending reminder mails for all upcoming events?

NotSpecial left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Provide default for email text

Comment thread amivapi/events/emails.py
}

# Populate content text with fetched infos
email_content = current_app.config['REMINDER_EMAIL_TEXT'] % fields

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

As fair as I can see, REMINDER_EMAIL_TEXT is not in the current app settings. I think we should provide a default, similar to the signup confirmation

Copy link
Copy Markdown
Member

We have recently moved to templated email messages using jinja2 and send multipart email messages with an HTML and a plaintext version.

Due to this change, this pull request must probably be reworked as it is quite old now.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL