Skip to content

Add email notifications for automatically matched locations#16

Draft
Copilot wants to merge 3 commits into
masterfrom
copilot/alert-erik-for-new-accounts
Draft

Add email notifications for automatically matched locations#16
Copilot wants to merge 3 commits into
masterfrom
copilot/alert-erik-for-new-accounts

Conversation

Copilot AI commented Dec 31, 2025

Copy link
Copy Markdown

When the daily rake task matches new locations to review sources (Yelp, Google+, etc.), Erik needs visibility into these automatic matches.

Changes

  • NotifyMailer: Added account_matched_alert method to send notifications to erik@pickgrapevine.com with location, source, URI, and user details
  • Email template: Created account_matched_alert.text.erb with match details, handles cases where user isn't yet associated
  • Rake task: Updated add_new_vine to trigger delayed email via NotifyMailer.delay.account_matched_alert
  • Tests: Added spec coverage for the new mailer method
# lib/tasks/vineyard_get_source_location_uris.rake
def add_new_vine(parser, location, source_location_uri)
  return if source_location_uri.nil?
  Vine.create(:source_id => parser.id, 
              :location_id => location.id, 
              :source_location_uri => source_location_uri)
  NotifyMailer.delay.account_matched_alert(location, parser.name, source_location_uri)
end

Erik will receive an email each time vineyard:get_source_location_uri:daily_check successfully matches a location to a review source.

Original prompt

This section details on the original issue you should resolve

<issue_title>Alerting Erik for new accounts that have been matched automatically</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 31, 2025 14:48
Co-authored-by: richardjortega <1143885+richardjortega@users.noreply.github.com>
Co-authored-by: richardjortega <1143885+richardjortega@users.noreply.github.com>
Copilot AI changed the title [WIP] Add alert system for new account matches for Erik Add email notifications for automatically matched locations Dec 31, 2025
Copilot AI requested a review from richardjortega December 31, 2025 14:52
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.

Alerting Erik for new accounts that have been matched automatically

2 participants