-
Notifications
You must be signed in to change notification settings - Fork 27
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
[#161995] [Shared dev] Duration based pricing - (5) Duration discounts applied to user reservation #3872
[#161995] [Shared dev] Duration based pricing - (5) Duration discounts applied to user reservation #3872
Conversation
279806c
to
4a72f83
Compare
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.
This is really close - just a few small asjustments
6c9afa1
to
351dd9a
Compare
class DurationRate < ApplicationRecord; end | ||
|
||
def change | ||
DurationRate.delete_all |
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.
We should make a note to do some manual testing around this before releasing
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.
You mean like checking that price policies aren't broken? Any other cases you can think of?
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.
If we have any duration rate records on production, we should check if any orders have been placed against them. I don't think anyone is using this yet but I just want to be safe
- DurationRate - Rate always present - Subsidy required for internal (not base) - subsidy <= rate - Price policy - Each group can have either none or 3 duration rates
0e6ba7c
to
6cffee5
Compare
* Bump teaspoon from 1.2.2 to 1.4.0 Bumps [teaspoon](https://github.com/jejacks0n/teaspoon) from 1.2.2 to 1.4.0. - [Release notes](https://github.com/jejacks0n/teaspoon/releases) - [Changelog](https://github.com/jejacks0n/teaspoon/blob/master/CHANGELOG.md) - [Commits](jejacks0n/teaspoon@v1.2.2...v1.4.0) --- updated-dependencies: - dependency-name: teaspoon dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Bump teaspoon from 1.2.2 to 1.4.0 Bumps [teaspoon](https://github.com/jejacks0n/teaspoon) from 1.2.2 to 1.4.0. - [Release notes](https://github.com/jejacks0n/teaspoon/releases) - [Changelog](https://github.com/jejacks0n/teaspoon/blob/master/CHANGELOG.md) - [Commits](jejacks0n/teaspoon@v1.2.2...v1.4.0) --- updated-dependencies: - dependency-name: teaspoon dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Use an older image tag for selenium --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gilad Shanan <[email protected]>
- DurationRate - Rate always present - Subsidy required for internal (not base) - subsidy <= rate - Price policy - Each group can have either none or 3 duration rates
…ithub.com/tablexi/nucore-open into 161995-duration-based-for-internal-groups
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.
Pending CI 🤞🏼
Release Notes
Screenshot