-
Notifications
You must be signed in to change notification settings - Fork 560
sharedfilesystems/schedulerstats: fix ListOpts, ListDetailOpts #3167
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
base: main
Are you sure you want to change the base?
Conversation
5dd05a9
to
d0a0420
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 clearly a bugfix. Thanks for submitting the PR.
I think it makes sense to adjust the struct names as well so they correspond with the Pool struct. As for the ListDetailOpts
, does it make sense to omit it, since it has the same members as the ListOpts
?
I also wonder whether it's possible specify multiple capabilities (like here).
In addition I'd adjust unit tests to cover this change.
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.
Ouch. In addition to @kayrus's comments, could you also add acceptance tests to show the filters working?
Can you please clarify which renames you are thinking of?
Done.
I don't have the time budget to build out tests for this right now. If it is required to have tests to merge a PR like this, then how was this struct added in the first place? |
unit tests were initially with empty
Since this is a bug fix, we have the flexibility to adjust the struct as needed and backport it to v2. Additionally, we could take this opportunity to update |
Done.
What would even be a useful test here? If a test is added that queries with |
Ref: https://docs.openstack.org/api-ref/shared-file-system/#scheduler-stats-storage-pools
Closes #3166.