-
Notifications
You must be signed in to change notification settings - Fork 356
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
Add an exception for middleware server listicons to prefer fileicon #2888
Add an exception for middleware server listicons to prefer fileicon #2888
Conversation
@miq-bot add_label middleware, bug |
Oh my this method is a 💩 But right. We need to refactor this after Gaprindashvili. |
can you add a test please? :) thanks |
@skateman : my first thought seeing @ohadlevy 's comment is "No, not here". Because mocking everything so that you can add a unit test for the simple condition here will result in an ugly test that we will have to rework right in the moment where we start cleaning up this messy method (after Gaprindashvili). But I suggest that you add a There will be value in the test and it will not need to be an ugly pile of stubs. Also @abonas and her guys can use that as an example for adding test coverage to other screens with grids under middleware. Can you do that? Shall I help? p.s. And such test will stay untouched when we refactor |
aba1e67
to
01b14fb
Compare
01b14fb
to
af0d084
Compare
Checked commit skateman@af0d084 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@abonas : Gaprindashvili? |
@martinpovolny yes, have a BZ for that too |
@martinpovolny yes, definitely gaprindashvili, the bz reflects it correctly. |
Add an exception for middleware server listicons to prefer fileicon (cherry picked from commit 0ba0097) https://bugzilla.redhat.com/show_bug.cgi?id=1510248
Gaprindashvili backport details:
|
Adding exceptions is the worst way of fixing this issue, however, after consulting with @epwinchell I did not find any other option. For now a
fonticon
has a higher priority than afileicon
which is a problem in the middleware server listview. Eventually we want to swap these priorities, however, we have some legacyfileicon
s that are PNG based and they should be deleted, but for now the quadicons depend on them. So until we havefonticon
support in quadicons, we can't swap the priority and adding this exception seemed the simplest possible solution.But maybe I'm wrong and @karelhala, @himdel or @martinpovolny could come up with a better idea.
Before:
![screenshot from 2017-11-30 20-39-59](https://user-images.githubusercontent.com/649130/33451289-ded673e0-d60e-11e7-9be2-9c57b0876ea0.png)
After:
![screenshot from 2017-11-30 20-40-13](https://user-images.githubusercontent.com/649130/33451303-e56a71ca-d60e-11e7-9d72-05a3dd124637.png)
https://bugzilla.redhat.com/show_bug.cgi?id=1509935