Closed mohierf closed 4 years ago
This is mainly due to the notes encoding format ... I will fix this 😉
The same problem exist in the element view:
Furthermore, there is no more tags in the element view whereas tags are really useful as search criteria ... find all hosts base on a specific template 😉
The rendering may be this in the element view:
And this in the problems view:
@mohierf So it does not manage URL anymore ? I agree we could find a way to manage HTML, but I don't agree with what you did, I'm reverting the PR.
Moreover, I don't know how you configured what you are showing here, but notes
and notes_url
are not lists of notes and urls. You should only define one note and one URL (and one action url), as documented here : https://shinken.readthedocs.io/en/latest/08_configobjects/host.html
I reverted your commits. We need to discuss it because it is adding a lot of complexity, both in the UI and the code, and as I understand it in the documentation you are not supposed to declare multiple notes and URLs like what you are doing here. So I prefer to keep it simple.
If you want to improve and manage multiple notes and URL, why not, but it needs to be way simpler in the UI.
Indeed, it is very simple as I did it ... and it is documented in the project Wiki. The solution I implemented still existed since a long time and it is quite commonly used in the Nagios configuration files ...
Sure that your are not supposed to declare list in notes (and you are not obliged indeed...) but if you want to declare some, the implementation I did allows to do it. And if you do not use any list in notes, notes_url or actions_url, you are not obliged to do so ...
If they are not lists:
As an example:
notes This is a MongoDB host!
notes_url http://www.my-KB.fr?host=$HOSTADDRESS$
action_url http://google.fr
is rendered as:
This is the display since I reverted your commits. But it didn't displayed like this before. Cf your own screenshots in this issue 14 days ago.
The screenshot I posted 14 days ago are rendering when you define some lists as explained in the wiki ... not for a Nagios-like configuration without any list.
If I revert your revert 😉 I get this with the same configuration:
notes This is a MongoDB host!
notes_url http://www.my-KB.fr?host=$HOSTADDRESS$
action_url http://google.fr
The only differences are:
What is the point with this ?
And what about the note in a ugly and useless box which seem clickable when I over with the mouse?
Also, I want to keep url notes as links instead of buttons, at least in /problems view. I find it cleaner.
Ok. I clean this and send a new PR
@maethor: I will refactor my initial PR with the Shinken doc described format. I will make it also available for notes and notes_url.
Note that my initial PR is the same implementation as the one that did existed in older Shinken UI versions. We will be able to restore if some users compalin about this...
@mohierf can we close?
When an host has some notes defined, their display in the problems view is not really nice rendered ...