Skip to content

Commit

Permalink
Merge branch 'trunk' into pivotal_188045005
Browse files Browse the repository at this point in the history
  • Loading branch information
ymhari authored Jul 31, 2024
2 parents c2ca3bf + 8588c01 commit d11bef1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lib/tasks/migrations/mock_2020_data.rake
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,20 @@ namespace :new_model do
Rake::Task['new_model:rating_factors'].invoke(mock_year)
Rake::Task['new_model:plan_cross_walk'].invoke(mock_year)

puts "loading #{mock_year} benefit market catalog" unless Rails.env.test?
Rake::Task['load:dc_benefit_market_catalog'].invoke(mock_year)
# Commenting these out since we need only in DC context

# puts "loading #{mock_year} benefit market catalog" unless Rails.env.test?
# Rake::Task['load:dc_benefit_market_catalog'].invoke(mock_year)

# puts "loading #{mock_year} ivl benefit pacakges" unless Rails.env.test?
# Rake::Task["import:create_ivl_packages_DC"].invoke(mock_year)

# Picking previous year's slcsp_id to create slcsp_id since this is mock data.
slcsp_id = HbxProfile&.current_hbx&.benefit_sponsorship&.benefit_coverage_periods&.by_year(mock_year - 1)&.first&.slcsp_id
hios_id = BenefitMarkets::Products::Product.find(slcsp_id).hios_id

puts "loading #{mock_year} ivl benefit pacakges" unless Rails.env.test?
Rake::Task["import:create_ivl_packages_DC"].invoke(mock_year)
Rake::Task["import:create_ivl_packages_ME"].invoke(mock_year, hios_id)

Rake::Task['new_model:map_sbc'].invoke(mock_year)
puts "Mock Data for #{mock_year} completed" unless Rails.env.test?
Expand Down

0 comments on commit d11bef1

Please sign in to comment.