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

[#161847] Rake tasks for adding new PriceGroups to ScheduleRules #3594

Merged
merged 11 commits into from
Jul 26, 2023

Conversation

jossim
Copy link
Contributor

@jossim jossim commented Jul 21, 2023

Release Notes

When a global price group is created, it needs to be added to all the schedule rules for it to appear on the UI for each product.

This created a rake tasks which does that.

that aren't currently associated with a schedule rule
@jossim jossim requested a review from giladshanan July 21, 2023 20:02
@jossim jossim marked this pull request as ready for review July 24, 2023 16:05
@jossim jossim requested a review from a team as a code owner July 24, 2023 16:05
README.md Outdated Show resolved Hide resolved
This also creates a `price_group` rake task and removes the
`schedule_rule` one
Copy link
Contributor

@giladshanan giladshanan left a comment

Choose a reason for hiding this comment

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

nice!

app/models/price_group.rb Outdated Show resolved Hide resolved
app/models/price_group.rb Outdated Show resolved Hide resolved
lib/tasks/pirce_groups.rake Show resolved Hide resolved
app/models/price_group.rb Outdated Show resolved Hide resolved
@jossim jossim requested a review from giladshanan July 24, 2023 22:15
Copy link
Contributor

@giladshanan giladshanan left a comment

Choose a reason for hiding this comment

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

There are a handful of other places where PriceGroups are created, can you take a look and see if we can use the new method instead:

  • demo_seed.rake
  • rails_helper.rb
  • school-specific seed files like vendor/engines/umass_corum/db/seeds.rb (we can update those as we pull this down into the school repos)

@jossim jossim requested a review from giladshanan July 26, 2023 19:44
spec/rails_helper.rb Outdated Show resolved Hide resolved
@jossim jossim requested a review from giladshanan July 26, 2023 20:25
@jossim jossim merged commit 6a71c2b into master Jul 26, 2023
3 checks passed
@jossim jossim deleted the 161847-global-price-group-script branch July 26, 2023 21:39
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.

None yet

2 participants