-
Notifications
You must be signed in to change notification settings - Fork 22
Add BackyardGarden flow (Don't accept this yet) #105
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,7 @@ | |
|
|
||
| head :ok | ||
| end | ||
|
|
||
|
|
||
| def set_current_identity | ||
| payload = JSON.parse(params[:payload]) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| class Slack::BackyardgardenJoinFlow < ApplicationJob | ||
| queue_as :default | ||
|
|
||
| def first_email_send(identity) | ||
| BackyardGarden_Mailer.first_email(identity).deliver_now | ||
| end | ||
| end | ||
|
Comment on lines
+1
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The 🔍 Detailed AnalysisThe 💡 Suggested FixRename the 🤖 Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| class BackyardGarden_Mailer < ApplicationMailer | ||
| def first_email(identity) | ||
| @identity = identity | ||
| @first_name = @identity.first_name | ||
|
|
||
| mail( | ||
| to: @identity.primary_email, | ||
| subject: "Hack Club Onboarding" | ||
| ) | ||
| end | ||
|
|
||
| def ysws_email(identity) | ||
| @identity = identity | ||
| @first_name = @identity.first_name | ||
|
|
||
| mail( | ||
| to: @identity.primary_email, | ||
| subject: "YSWS Onboarding" | ||
| ) | ||
| end | ||
|
|
||
| def community_events(identity) | ||
| @identity = identity | ||
| @first_name = @identity.first_name | ||
|
|
||
| mail( | ||
| to: @identity.primary_email, | ||
| subject: "Community Events Onboarding" | ||
| ) | ||
| end | ||
|
|
||
| def clubs_email(identity) | ||
| @identity = identity | ||
| @first_name = @identity.first_name | ||
|
|
||
| mail( | ||
| to: @identity.primary_email, | ||
| subject: "Putting the Club in Hack Club" | ||
| ) | ||
| end | ||
|
|
||
| end | ||
|
Comment on lines
+32
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Mailer methods in 🔍 Detailed AnalysisThe 💡 Suggested FixCreate the necessary 🤖 Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Class name mismatch:
Slack::BackyardgardenFlowis called, butSlack::BackyardgardenJoinFlowis defined, causing aNameError.Severity: CRITICAL | Confidence: High
🔍 Detailed Analysis
The
Slack::BackyardgardenFlowclass is called inlogins_controller.rbat line 294, but the actual job class is defined asSlack::BackyardgardenJoinFlow. This name mismatch will cause aNameError: uninitialized constant Slack::BackyardgardenFlowwhen the system attempts to enqueue the job during user login and onboarding, leading to a critical failure in the user provisioning process.💡 Suggested Fix
Rename the called class in
logins_controller.rbtoSlack::BackyardgardenJoinFlowto match the defined job class, or rename the job class toSlack::BackyardgardenFlow.🤖 Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID:
6671192