-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat(topology): expanded row for resource details #921
feat(topology): expanded row for resource details #921
Conversation
372f9c0
to
a889a16
Compare
Test image available:
|
a889a16
to
7e7a4d2
Compare
Test image available:
|
Looks good so far. Can there also be a badge like this one: that indicates whether there are recordings present? Maybe if this can't be determined (ie. jvmId is null which indicates we haven't been able to connect, as is now the case) show a warning icon. If we can check and there is at least one running recording then show a green OK state icon. Otherwise, either show no icon, or show some neutral grey state icon. WDYT? |
Test image available:
|
875db69
to
5dd57f1
Compare
Error and No-running-recording states won't show any icon. Only targets with running recordings will show the green icon. With this setup, we can easily add any decorator to the node to the last 2 quadrants. Just a notice that: we should order our css after PF css or else some rules might be overriden unexpectedly. |
Test image available:
|
Test image available:
|
49cc1f7
to
7dc6976
Compare
Test image available:
|
Looks like the |
Oh seems to affect the EDIT: Should work now. Got a bit off guard on the stop-event. @andrewazores just wondering why the stop-event is emitting a recording with RUNNING state? {
"meta": {
"category": "ActiveRecordingStopped",
"type": {
"type": "application",
"subType": "json"
},
"serverTime": 1679689380
},
"message": {
"target": "service:jmx:rmi:///jndi/rmi://localhost:0/jmxrmi",
"recording": {
"downloadUrl": "http://localhost:8181/api/v1/targets/service:jmx:rmi:%2F%2F%2Fjndi%2Frmi:%2F%2Flocalhost:0%2Fjmxrmi/recordings/some_recording",
"reportUrl": "http://localhost:8181/api/v1/targets/service:jmx:rmi:%2F%2F%2Fjndi%2Frmi:%2F%2Flocalhost:0%2Fjmxrmi/reports/some_recording",
"metadata": {
"labels": {}
},
"archiveOnStop": false,
"id": 8,
"name": "some_recording",
"state": "RUNNING",
"startTime": 1679689375197,
"duration": 30000,
"continuous": false,
"toDisk": true,
"maxSize": 0,
"maxAge": 0
}
}
} |
Test image available:
|
I don't know for sure off-hand but I would assume it's because that notification gets emitted with the recording object as the payload right before the recording actually gets stopped, or at least the payload object on the server is still holding the original state that was pulled from the target without it getting updated with the new state after the stoppage occurred. Seems like it should be a minor and easily fixable backend bug, I suspect in the |
Ahh thanks! Seems to return the descriptor without mutating the state here: |
Test image available:
|
Latest changes just append the tooltips to |
Test image available:
|
Signed-off-by: Thuan Vo <thvo@redhat.com>
ca96e9c
to
6d9acb0
Compare
This PR/issue depends on:
|
Test image available:
|
Welcome to Cryostat! 👋
Before contributing, make sure you have:
main
branch[chore, ci, docs, feat, fix, test]
git commit --amend --signoff
Related to #891
Depends on https://github.com/cryostatio/cryostat/issues/1428
Description of the change:
Each resource row can have an expanded section that show detail view. For now, only
ActiveRecording
row is supported. Others will show an empty text.Motivation for the change:
See #906 (comment)
Screenshots