-
Notifications
You must be signed in to change notification settings - Fork 783
Conversation
This PR is just as a preview to give you the chance to provide feedback. |
@@ -1,5 +1,5 @@ | |||
<li> | |||
<img src="../icon/%icon%.png" width=29 height=29 class="iFull" /> | |||
<img src="../icon/%icon%?format=%format%&state=%state%" width=29 height=29 class="iFull" /> |
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.
%icon% is always the category of an item, right? Should we change it to %category% to make it clear
Some general comments/questions:
|
Thanks a lot for the review. I have incorporated all your feedback.
I don't think this is critical. Most of the behavior actually existed already before. I doubt that you will have many (>5) icon providers ever in the system. And by returning 304s, all efforts are usually just a one time effort.
I have updated all code to now speak about categories, I only refrained from updating the DSL, since this would have too much impact. But yes, for a future sitemap version, this wording should then be aligned.
As written in my other comment, I think the assumption is fine that if an iconset claims to support SVG, the UIs are allowed to request it for all icons. Anyhow, it can also always happen that a certain category is not available, independent from the format. We could discuss, whether the icon servlet should in such cases never return 404, but rather deliver an empty image to the UI, so that this does not need to deal with 404s.
No, the icon servlet uses "classic" as a hardcoded fallback, but with kaikreuzer@18bbb9c, this is now also configurable through ConfigAdmin.
Yes, as there is no notion of "supports a set". As you can see with the CustomIconProvider, it is absolultly fine to provide icons even though the provider does not declare any sets themselves. |
I have added documentation and a skeleton for the tests (still to be done...) |
44414de
to
75947cc
Compare
Finished with the implementation of the tests. @dnobel, please check - if all is ok, I will squash the commits before the merge. |
|
||
@Test | ||
void testOldUrlStyle() { | ||
calledProvider = null |
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 would set this in setUp and/or tearDown method to null
Signed-off-by: Kai Kreuzer <[email protected]>
75947cc
to
a78bfde
Compare
@dnobel, I have incorporated your feedback and squashed my commits. |
I guess that means I should merge it? :) |
introduced iconset infrastructure
Signed-off-by: Kai Kreuzer <[email protected]>
fixed compilation problem in PR #445
Signed-off-by: Kai Kreuzer <[email protected]>
Signed-off-by: Kai Kreuzer <[email protected]>
Signed-off-by: Kai Kreuzer <[email protected]>
Signed-off-by: Kai Kreuzer <[email protected]>
Signed-off-by: Kai Kreuzer [email protected]