-
Notifications
You must be signed in to change notification settings - Fork 194
File and Block Hourly billing feature changes for slci #852
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
Conversation
Yeah sure I will take care of conflicts and shall update pull request. |
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.
From the perspective of the SLCLI, these changes look good to me, so long as the info being sent to the API produces the expected ordering results on the backend.
I have added a few minor comments to this review, but I don't see any major changes that are needed.
type=click.Choice(['hourly', 'monthly']), | ||
default='monthly', | ||
show_default=True, | ||
help="Optional parameter for Billing rate. Default to monthly") |
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 a minor detail, but with 'show_default' set to True, there is no need to also say "Default to monthly" in the help message, since setting 'show_default' to True will already add this information to the output.
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.
show_default=True - removed as per discussion with David. will push latest file in a while
type=click.Choice(['hourly', 'monthly']), | ||
default='monthly', | ||
show_default=True, | ||
help="Optional parameter for Billing rate. Default to monthly") |
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 a minor detail, but with 'show_default' set to True, there is no need to also say "Default to monthly" in the help message, since setting 'show_default' to True will already add this information to the output.
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.
show_default=True - removed as per discussion with David. will push latest file in a while.
tests/managers/block_tests.py
Outdated
}, | ||
} | ||
|
||
self.block.cancel_snapshot_space(1234, immediate=True) |
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.
I apologize for missing this when I was adding these unit tests, but the value of 'immediate' here should be False. Would it be possible to update this line?
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.
Its correct, user can cancel hourly billing instance on immediate basis. its part of requirement.
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.
Based on the current logic in the Block (and File) managers, immediate will always be used if the volume has hourly billing. Passing in False in the unit test is meant to ensure that the immediate flag is correctly changed to be True when the API call is actually made.
tests/managers/file_tests.py
Outdated
}, | ||
} | ||
|
||
self.file.cancel_snapshot_space(1234, immediate=True) |
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.
I apologize for missing this when I was adding these unit tests, but the value of 'immediate' here should be False. Would it be possible to update this line?
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.
For hourly billing we can cancel snapshot immediate, its part of requirement. So no need to change anything here.
…d for volume duplicate
…ication name changed.
…ion for duplicate volume.
Unstable build .. hence closing. will create new pull request. |
Please merge after Davids pull request to see actual changes ( #838 )