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

add migrations to create tax household enrollments for missing reinstated enrollments #4910

Open
wants to merge 5 commits into
base: trunk
Choose a base branch
from

Conversation

saipraveen18
Copy link
Contributor

@saipraveen18 saipraveen18 commented Jan 8, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

  • The title follows our guidelines
  • Tests for the changes have been added (for bug fixes/features), and they use let helpers and before blocks.
  • For all UI changes, there is Cucumber coverage.
  • Any endpoint touched in the PR has an appropriate Pundit policy. For open endpoints, the reasoning is documented in the PR and code.
  • Any endpoint modified in the PR only responds to the expected MIME types.
  • For all scripts or rake tasks, how to run them is documented in both the PR and the code.
  • There are no inline styles added.
  • There is no inline JavaScript added.
  • There is no hard-coded text added/updated in helpers/views/JavaScript. New/updated translation strings do not include markup/styles unless there is supporting documentation.
  • Code does not use .html_safe.
  • All images added/updated have alt text.
  • Does not bypass RuboCop rules in any way.

PR Type

What kind of change does this PR introduce?:

  • Bugfix
  • Feature (requires Feature flag)
  • Data fix, Migration, or Report (inert code, no impact until run)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • CI related changes
  • Dependency updates (e.g., add a new gem or update to a version)

What is the ticket # detailing the issue?

Ticket: https://www.pivotaltracker.com/story/show/188604585

A brief description of the changes:

Current behavior: Currently, Devops is manually upload a script file to server and running the script to generate tax household enrollments for missing enrollments

New behavior: Create a migration script to generate tax household enrollments for missing enrollments

Script 1:
Create Tax Household Enrollments for Missing Reinstated Enrollments

Command:

CLIENT=me bundle exec rails runner script/tax_household_enrollments/create_for_reinstated_enrollments.rb 2024

Output:
Generates a CSV file named reinstated_enrollments_with_thh_enrs_creation_report.csv

Script 2:
Create Tax Household Enrollments for Specific Enrollment HBX IDs

Command:

CLIENT=me bundle exec rails runner script/tax_household_enrollments/create.rb "12345,67890,11223"

Output:
Generates a CSV file named update_missing_slcsp_info_for_aptc_enrs_report_*.csv

Feature Flag

For all new feature development, a feature flag is required to control the exposure of the feature to our end users. A feature flag needs a corresponding environment variable to initialize the state of the flag. Please share the name of the environment variable below that would enable/disable the feature and indicate which client(s) it applies to.

Variable name:

  • DC
  • ME

Additional Context

Include any additional context that may be relevant to the peer review process.

@saipraveen18 saipraveen18 changed the title Ticket 188604585 add migrations to create tax household enrollments for missing reinstated enrollments Jan 8, 2025
@saipraveen18 saipraveen18 marked this pull request as ready for review January 8, 2025 19:42
@saipraveen18 saipraveen18 requested a review from saikumar9 January 8, 2025 19:42
@saikumar9 saikumar9 enabled auto-merge (squash) January 10, 2025 01:44
Copy link
Member

@saikumar9 saikumar9 left a comment

Choose a reason for hiding this comment

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

lgtm!

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