Skip to content

Notification refresh#626

Merged
maebeale merged 6 commits intomainfrom
notification-refresh
Jan 4, 2026
Merged

Notification refresh#626
maebeale merged 6 commits intomainfrom
notification-refresh

Conversation

@maebeale
Copy link
Copy Markdown
Collaborator

@maebeale maebeale commented Jan 4, 2026

What is the goal of this PR and why is this important?

  • Refresh the Notification model, and have Notifications generated for:
    • StoryIdea
    • WorkshopIdea
    • WorkshopVariation
    • EventRegistration

How did you approach the change?

  • Created a new Service, that calls a Job, and update the Notification record w data from the sent email

Anything else to add?

@maebeale maebeale merged commit b0753a2 into main Jan 4, 2026
3 checks passed
@maebeale maebeale deleted the notification-refresh branch January 4, 2026 22:34
# Set host to be used by links generated in mailer templates.
config.action_mailer.default_url_options = { host: "example.com" }
config.action_mailer.default_url_options = {
host: "example.com",
Copy link
Copy Markdown
Collaborator

@jmilljr24 jmilljr24 Jan 5, 2026

Choose a reason for hiding this comment

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

Suggested change
host: "example.com",
host: ENV.fetch("APP_HOST"),

We have this set as an env so I think we can use it here.


if @workshop_idea.save
NotificationServices::CreateNotification.call(
noticeable: @story_idea,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
noticeable: @story_idea,
noticeable: @workshop_idea,

}

config.after_initialize do
if ENV["MANDRILL_USERNAME"].blank? || ENV["MANDRILL_APIKEY"].blank?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if ENV["MANDRILL_USERNAME"].blank? || ENV["MANDRILL_APIKEY"].blank?
if ENV["SMTP_USERNAME"].blank? || ENV["MANDRILL_APIKEY"].blank?

Do we ever user APIKEY ?

If we do change this to SMTP_USERNAME can you also update the dummy value names in Dockerfile so the precompile doesn't fail on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants