-
Notifications
You must be signed in to change notification settings - Fork 897
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
Fixed sorting in TenantQuotas report #19415
Fixed sorting in TenantQuotas report #19415
Conversation
@miq-bot remove-label changelog/no |
@miq-bot add-label changelog/yes |
00a615c
to
7a976ba
Compare
…nantQuota report replaces Db value with human readable and translated value,Example: cpu_allocated will be shown as "Allocated Virtual CPUs". BUT sorting by quota_name column done before substitution and result looks like bug in sorting. Fix: instead of TenanatQuota#name field use in report virtual column TenanatQuota#description which will show substituted value Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1761430
7a976ba
to
cded423
Compare
Checked commits yrudman/manageiq@28e48f8~...cded423 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@lpichler Libor, could you review |
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.
LGTM, thanks 👍
thank you @kbrock |
Issue: quota names saved in Db are not descriptive and not translated. So, TenantQuota report replaces Db value with human readable and translated value.
Example:
cpu_allocated
will be shown asAllocated Virtual CPUs
.BUT sorting by
quota_name
column was executed before substitution and final result looks in strange order.Fix: Introduce virtual column
TenantQuota#description
and use it in report instead ofTenanatQuota#name
so sorting will be executed on actual visible stringsFixes https://bugzilla.redhat.com/show_bug.cgi?id=1761430
BEFORE:
AFTER:
@miq-bot add-label bug, reporting, ivanchuk/yes, changelog/no