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

Reminders store journey #3436

Merged
merged 6 commits into from
Nov 29, 2024
Merged

Reminders store journey #3436

merged 6 commits into from
Nov 29, 2024

Conversation

asmega
Copy link
Contributor

@asmega asmega commented Nov 26, 2024

Context

  • This PR is based on PR Track which journey a reminder is for and use correct support email #3175 and has been ported to the current version which has shifted since then
  • Migration adds column on reminder to store the relevant journey
  • It also populates this column based off the information we have
  • Opening a journey still only sends for additional payments but with a small tweak can be made to send reminders for other journeys

@asmega asmega force-pushed the reminder-store-journey branch from f557f8c to dd565f0 Compare November 26, 2024 15:56
Comment on lines +6 to +17
around do |example|
original_stdout = $stdout
original_stderr = $stderr

$stdout = File.open(File::NULL, "w")
$stderr = File.open(File::NULL, "w")

example.run

$stdout = original_stdout
$stderr = original_stderr
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i want to slow tidy stdout when rspec runs

Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably just delete this spec and the rake task as it seems to be a one off task https://dfedigital.atlassian.net.mcas.ms/browse/CAPT-1877

@asmega asmega marked this pull request as ready for review November 26, 2024 16:02
@asmega asmega added the deploy Deploy a review app for this PR label Nov 26, 2024
Copy link
Contributor

@rjlynch rjlynch left a comment

Choose a reason for hiding this comment

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

Overall looks good, just left one comment about the migration that might need looking at, if not LMK and I'm happy to approve.
The other comment isn't a blocker

Comment on lines +6 to +17
around do |example|
original_stdout = $stdout
original_stderr = $stderr

$stdout = File.open(File::NULL, "w")
$stderr = File.open(File::NULL, "w")

example.run

$stdout = original_stdout
$stderr = original_stderr
end
Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably just delete this spec and the rake task as it seems to be a one off task https://dfedigital.atlassian.net.mcas.ms/browse/CAPT-1877

Copy link
Contributor

@rjlynch rjlynch left a comment

Choose a reason for hiding this comment

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

Looks good 👍

- this is still currently limited to additional payments
- there is guard for the above
- but can be extended allow for other journeys
- this change is based on PR #3175
- as this seems to conflict with active job serialisation
@asmega asmega merged commit 81a7379 into master Nov 29, 2024
15 checks passed
@asmega asmega deleted the reminder-store-journey branch November 29, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy Deploy a review app for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants