Skip to content

feat: add target filter query view#2892

Open
MikaMauger wants to merge 1 commit intoeclipse-hawkbit:masterfrom
MikaMauger:feat/add-target-filter-query-view
Open

feat: add target filter query view#2892
MikaMauger wants to merge 1 commit intoeclipse-hawkbit:masterfrom
MikaMauger:feat/add-target-filter-query-view

Conversation

@MikaMauger
Copy link

This MR introduces the Target Filter Queries view, aligned with the previous Hawkbit UI.
Creation is not included yet, as target filter queries can already be created from the Targets view.

Currently, you can:

  • list target filter queries
  • automatically assign a distribution set to a filter
  • unassign a distribution set
  • delete a single filter query
  • bulk delete multiple filter queries
Screenshot From 2026-01-26 19-05-24 Screenshot From 2026-01-27 11-54-48

@hawkbit-bot
Copy link

Thanks @MikaMauger for taking the time to contribute to hawkBit! We really appreciate this. Make yourself comfortable while I'm looking for a committer to help you with your contribution.
Please make sure you read the contribution guide and signed the Eclipse Contributor Agreement (ECA).

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@avgustinmm
Copy link
Contributor

@MikaMauger ,
I don't mind the double brackets the SonarCloud fail for - we could accept it.
But if you don't resolve eclipsefdn/eca compliance issue - we could not accept the PR. While this issue is present, we won't start any review.

@MikaMauger
Copy link
Author

Done! Also, the double brackets are from copied and pasted existing code. I can remove them, but I'll wait for the full review before doing so.

new SelectionGrid.EntityRepresentation<>(TargetFilterQueryGridItem.class, TargetFilterQueryGridItem::getId) {

@Override
protected void addColumns(final Grid<TargetFilterQueryGridItem> grid) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to see the actual query somehow - after all it is the most important thing of the target filter. Wether it would be as a tooltip or on click with a modal window IDK yet which one will be best. I guess if it is added as a column could be too long sometimes ...

@@ -0,0 +1,292 @@
package org.eclipse.hawkbit.ui.view;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add missing headers. See here for example.

@Route(value = "target_filter_queries", layout = MainLayout.class)
@RolesAllowed({ "TARGET_READ" })
@Uses(Icon.class)
public class TargetFilterQueryView extends TableView<TargetFilterQueryView.TargetFilterQueryGridItem, Long> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good. However currently we created target filters in the target view - because we didn't have a target filter view. Now that it is introduced it makes sense for it to have a create option there maybe ... What do you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants