-
Notifications
You must be signed in to change notification settings - Fork 200
SimpleUI: support target's tags edition, display installed & assigned distribution sets, and action history #2409
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
SimpleUI: support target's tags edition, display installed & assigned distribution sets, and action history #2409
Conversation
Can one of the admins verify this patch? |
switching to draft as I'm adding Actions history tab; this way this PR will contain all intended features rather than part of it :) |
9400950
to
4e8bc96
Compare
This is inspired by the original hawkbit interface; however, as we've got more space it merges both Assigned and Installed into the same tab
f68ea6b
to
e27a569
Compare
This allows tracking the actions, see their status, and cancel / force / force cancel them; just like the previous ui This has some limitations though; the previous UI had access to the Action's main class, whereas we're dealing with the rest dto; hence we're missing some information to make the ui simpler to create.
e27a569
to
c33efe5
Compare
@strailov dunno if you want me to split this into two PR, one to fix the flaky OAuth2TokenManager and the rest as UI features? |
@zeapo great work you are doing with the SimpleUI lately. |
Thank you @maass-hamburg 😊 |
Hello @zeapo. Sorry I missed this. Will check this PR asap :) |
Thanks, just le me know if you need further improvements. I'll be working on another subject and be back to this once Spring Boot 3.5 is merged. |
hawkbit-simple-ui/src/main/java/org/eclipse/hawkbit/ui/simple/view/TargetView.java
Show resolved
Hide resolved
if (isActive()) { | ||
icon = new SpinnerIcon(); | ||
} else { | ||
icon = VaadinIcon.CHECK_CIRCLE.create(); |
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.
Would this also mean that if the action is in ERROR state still the CHECK_CIRCLE will be present? It is quite confusing this with the Status column in the grid. I would unify this Active column with the Status in the target grid maybe, what do you think ? Like when it is pending there is a yellow half full circle
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.
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.
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.
PS: also extracted the force quit so that it's cleaner as it was confusing close to the other two actions
hawkbit-simple-ui/src/main/java/org/eclipse/hawkbit/ui/simple/view/TargetView.java
Outdated
Show resolved
Hide resolved
hawkbit-simple-ui/src/main/java/org/eclipse/hawkbit/ui/simple/view/TargetView.java
Outdated
Show resolved
Hide resolved
FYI, a4e4ea9 |
|
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.
Looks good! Thanks @zeapo !
Contains a lot of UI improvement and a fix to a flaky behavior;
After multiple deployements to our test environment, we noticed that sometimes the OAuth2TokenManager is not initalized all the time; by making it conditioned on the same property as the customizer, it's always there and working fine.
Details view transformed into tabs

Display the installed and assigned distribution sets

Add tags listing; assigning, unassigning, and creation



I didn't add tag deletion of tags, it will need a new modal to list & manage existing tags.