-
Notifications
You must be signed in to change notification settings - Fork 230
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
UI - New Operations tab #1600
UI - New Operations tab #1600
Conversation
* added new tab * changed way to control right auth user * extended api to allow devops path * utils to add table row now returns row * crud editor returns explicit cancel action * crud editor now with option without delete or create Signed-off-by: thfries <thomas.fries0@gmail.com>
Hi @thfries I thought that the different available log levels for each logger could be rendered with a bootstrap button group, e.g. also having different colors - DEBUG maybe light gray, INFO green, WARN yellow and ERROR red. That way, the buttons could show the currently configured log level and could also be used to directly change it. |
Signed-off-by: thfries <thomas.fries0@gmail.com>
Hey @thjaeckle, I'm not sure about the refresh button: It should not scroll away or may be it is not needed at all? Best regards, Thomas |
added another commit to keep the refresh button visible... |
@thfries yes, that looks really great. 👍 I think the api supports changing the log level of e.g. all connectivity instances at once and even of specific instances separately. |
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.
Hi @thfries
I just reviewed - looks good 👍
Simple and adds a lot benefit for operating Ditto.
Just 2 newly created files have the wrong copyright year, I mentioned that inline.
Apart from that this would be good for me to merge.
@thfries I totally forgot .. There is another thing to do which would this make even more useful: There should be for each service (e.g. "things", "gateway") a textfield in which you can enter a new arbitrary logger and also select a log level. And they can even be removed again by setting the log level to "OFF" - which we could also think about. |
Signed-off-by: thfries <thomas.fries0@gmail.com>
Hi @thjaeckle ,
The first one sounds very valuable to still add. If you like, I can add some more improvements to this PR. Thank you, @thjaeckle |
- fixed auth header mixing from wrong environment - operations tab not getting right auth header Signed-off-by: thfries <thomas.fries0@gmail.com>
Hi @thjaeckle, |
Your proposal already uses this API to switch all loggers of one service at once - so that works as intended 👍
I don't think that this would be needed.
Yes, this is really valuable, as you can e.g. define for a specific class or package a new logger config without that it needs to be "visible" before in the logging overview. Please share your thoughts on that :) |
@thfries somehow the "Bearer" token for the main user gets lost now when reloading the page via the browser. I managed to add a input field for adding new loggers - and that integrates quite well into your approach. |
… / Logging functionality Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
Hi @thjaeckle , nice, thank you! |
- remove spellcheck from input - split loggerView into smaller functions Signed-off-by: thfries <thomas.fries0@gmail.com>
Done. I like your approach. It keeps the needed parameters just where they are needed. Works also for the other buttons. Strange that it didn't work with the event target... |
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
* UI - New Operations tab * added new tab * changed way to control right auth user * extended api to allow devops path * utils to add table row now returns row * crud editor returns explicit cancel action * crud editor now with option without delete or create Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - Operations Tab: new logger view Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - operations tab - refresh not scrolling * UI - change header info on new files Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - Operations tab - make tabs optional - fixed auth header mixing from wrong environment - operations tab not getting right auth header Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - added option to define new logger for each service in Operations / Logging functionality Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io> * UI - operations tab - remove spellcheck from input - split loggerView into smaller functions Signed-off-by: thfries <thomas.fries0@gmail.com> --------- Signed-off-by: thfries <thomas.fries0@gmail.com> Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io> Co-authored-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
* UI - New Operations tab * added new tab * changed way to control right auth user * extended api to allow devops path * utils to add table row now returns row * crud editor returns explicit cancel action * crud editor now with option without delete or create Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - Operations Tab: new logger view Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - operations tab - refresh not scrolling * UI - change header info on new files Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - Operations tab - make tabs optional - fixed auth header mixing from wrong environment - operations tab not getting right auth header Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - added option to define new logger for each service in Operations / Logging functionality Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io> * UI - operations tab - remove spellcheck from input - split loggerView into smaller functions Signed-off-by: thfries <thomas.fries0@gmail.com> --------- Signed-off-by: thfries <thomas.fries0@gmail.com> Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io> Co-authored-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
* UI - New Operations tab * added new tab * changed way to control right auth user * extended api to allow devops path * utils to add table row now returns row * crud editor returns explicit cancel action * crud editor now with option without delete or create Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - Operations Tab: new logger view Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - operations tab - refresh not scrolling * UI - change header info on new files Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - Operations tab - make tabs optional - fixed auth header mixing from wrong environment - operations tab not getting right auth header Signed-off-by: thfries <thomas.fries0@gmail.com> * UI - added option to define new logger for each service in Operations / Logging functionality Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io> * UI - operations tab - remove spellcheck from input - split loggerView into smaller functions Signed-off-by: thfries <thomas.fries0@gmail.com> --------- Signed-off-by: thfries <thomas.fries0@gmail.com> Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io> Co-authored-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
please find this PR resolves #1590
Please let me know if this is the right direction.
Pending topics:
Best regards, Thomas