Skip to content

Conversation

svrajput
Copy link
Contributor

@svrajput svrajput commented Jul 31, 2017

Please merge after Davids pull request to see actual changes ( #838 )

@dpickle2 dpickle2 self-requested a review August 4, 2017 19:19
@svrajput
Copy link
Contributor Author

Yeah sure I will take care of conflicts and shall update pull request.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 85.193% when pulling b5f3e9d on svrajput:master into 3177323 on softlayer:master.

@dpickle2 dpickle2 changed the title STORAGE-3308: File and Block Hourly billing feature changes for slci File and Block Hourly billing feature changes for slci Aug 18, 2017
Copy link

@dpickle2 dpickle2 left a 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")

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.

Copy link
Contributor Author

@svrajput svrajput Aug 23, 2017

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")

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.

Copy link
Contributor Author

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.

},
}

self.block.cancel_snapshot_space(1234, immediate=True)

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?

Copy link
Contributor Author

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.

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.

},
}

self.file.cancel_snapshot_space(1234, immediate=True)

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?

Copy link
Contributor Author

@svrajput svrajput Aug 23, 2017

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.

@svrajput svrajput closed this Aug 28, 2017
@svrajput
Copy link
Contributor Author

Unstable build .. hence closing. will create new pull request.

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.

3 participants