-
Notifications
You must be signed in to change notification settings - Fork 69
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
Closes #1495 - improve the behavior when agent commands fail (or are not available) due to missing configuration - frontend #1528
Conversation
…re the buttons can be used to enable/disable the services
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #1528 +/- ##
============================================
- Coverage 78.64% 77.92% -0.72%
- Complexity 2271 2285 +14
============================================
Files 232 235 +3
Lines 7438 7563 +125
Branches 887 902 +15
============================================
+ Hits 5849 5893 +44
- Misses 1219 1302 +83
+ Partials 370 368 -2
|
…ent commands are not available (inspectIT#1495)
…table in the dialog
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.
Reviewable status: 10 of 14 files reviewed, 3 unresolved discussions (waiting on @heiko-holz)
components/inspectit-ocelot-configurationserver-ui/.yarn/install-state.gz
line at r4 (raw file):
Previously, heiko-holz (Heiko Holz) wrote…
same as with the other pull requests, this file can be deleted and the
.gitignore
updated
done
components/inspectit-ocelot-configurationserver-ui/src/components/views/status/StatusTable.js
line 180 at r5 (raw file):
Previously, heiko-holz (Heiko Holz) wrote…
Currently, I am missing a tooltip for the badge that tells the user that it opens the Service State Dialogue.
Additionally, the mouse should then be a pointer (as for the buttons).Or we add a new button to invoke the service state dialogue.
I added a new button with a tooltip.
components/inspectit-ocelot-configurationserver-ui/src/components/views/status/dialogs/ServiceStateDialog.js
line 29 at r5 (raw file):
Previously, heiko-holz (Heiko Holz) wrote…
the list seems to be unordered (or the order is defined by the config-server).
I think we can add a more intuitive order.
Maybe add "categories" (e.g.,
exporter
) and indent the services into their categories.
For the categories, we could just take the hierarchically next property.
For now I added a functionality to order the columns by the field. So it's possible to order the name by alphabetical order and the state by enabled/disabled, also in ascending or descending order.
Maybe we can talk about the sorting by categories, because I think this will need a little bit more thinking to implement.
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.
Reviewed 2 of 3 files at r6, 2 of 2 files at r7, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @danipaniii)
components/inspectit-ocelot-configurationserver-ui/src/components/views/status/StatusTable.js
line 180 at r5 (raw file):
Previously, danipaniii wrote…
I added a new button with a tooltip.
I really like it :)
components/inspectit-ocelot-configurationserver-ui/src/components/views/status/StatusView.js
line 296 at r7 (raw file):
this.setServiceStateDialogShown(true); this.setState({ settingStates: settingStates,
Should these settingStates
be named serviceStates
?
components/inspectit-ocelot-configurationserver-ui/src/components/views/status/dialogs/ServiceStateDialog.js
line 29 at r5 (raw file):
Previously, danipaniii wrote…
For now I added a functionality to order the columns by the field. So it's possible to order the name by alphabetical order and the state by enabled/disabled, also in ascending or descending order.
Maybe we can talk about the sorting by categories, because I think this will need a little bit more thinking to implement.
The sorting is very nice :)
Let's discuss other functionality of this view in the next weekly or a next meeting and make it another issue.
One more thing that I realized is that the buttons of the modal are named back
and accept
. Currently, there should only be one button with something like okay
or close
. Or what should the buttons do?
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.
Reviewed 4 of 4 files at r8, 5 of 7 files at r9, 1 of 1 files at r10, 3 of 3 files at r11, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @danipaniii)
components/inspectit-ocelot-configurationserver-ui/.gitignore
line 3 at r10 (raw file):
node_modules .next .yarn/*
Let's discuss this in today's sync.
See https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
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.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @danipaniii)
components/inspectit-ocelot-configurationserver-ui/src/components/views/status/StatusView.js
line 296 at r7 (raw file):
Previously, heiko-holz (Heiko Holz) wrote…
Should these
settingStates
be namedserviceStates
?
this has been fixed
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.
Reviewed 1 of 1 files at r12, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @danipaniii)
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.
Reviewed 2 of 2 files at r13, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @danipaniii)
components/inspectit-ocelot-configurationserver-ui/.gitignore
line 3 at r10 (raw file):
Previously, heiko-holz (Heiko Holz) wrote…
Let's discuss this in today's sync.
See https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
updated the .gitignore
accordingly
# Conflicts: # components/inspectit-ocelot-configurationserver-ui/.gitignore # components/inspectit-ocelot-configurationserver-ui/src/components/views/status/StatusTable.js
…spectIT#1528) * Update Readme to help developers handle prettier errors in the Config UI tests * Minor improvements in README for prettier trouble shooting Co-authored-by: Priebe Daniel <dpr@novatec-gmbh.de> Co-authored-by: Heiko Holz <heiko.holz@novatec-gmbh.de>
Everything seems to be working as expected. |
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.
Reviewed all commit messages.
Reviewable status: 7 of 24 files reviewed, all discussions resolved (waiting on @danipaniii)
Hey @danipaniii, good catch! Anyhow, we can open an issue after this PR to improve the code and style of the Agent Status Table. |
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.
Reviewed 1 of 2 files at r14, 14 of 15 files at r16, 1 of 1 files at r17, 1 of 1 files at r18, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @danipaniii)
Closes #1495
Implementing the DynamicallyServiceObserver to register all the available services (e.g. Prometheus, Jaeger, LogPreloader) and their current state enabled/disabled.
In the UI when clicking the agents name (on the status page) a dialog window opens with a data table, listing all the services and their current state enabled/disabled.
Currently the states are being shown as disabled buttons with the labes (enabled/disabled) to show the user the current state. In the future there is the possibilty to implement a feature to activate those buttons and let the user active/deactivate a service by a simple button click.
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)