Skip to content

Commit

Permalink
Add Job Targets via Tag and Rename JobStepDefinitions names
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
  • Loading branch information
Claudio Mezzasalma committed Feb 8, 2019
1 parent 4669a6d commit 545b530
Show file tree
Hide file tree
Showing 31 changed files with 610 additions and 104 deletions.
Expand Up @@ -40,6 +40,7 @@
import org.eclipse.kapua.app.console.module.tag.shared.service.GwtTagService;
import org.eclipse.kapua.app.console.module.tag.shared.service.GwtTagServiceAsync;

import java.util.ArrayList;
import java.util.List;

public class DeviceFilterPanel extends EntityFilterPanel<GwtDevice> {
Expand Down Expand Up @@ -431,7 +432,9 @@ public void doFilter() {
predicates.setGroupDevice("NO_GROUP");
}
if (tagsCombo != null && !tagsCombo.getValue().equals(allTag)) {
predicates.setTagId(tagsCombo.getValue().getId());
List<String> tagIds = new ArrayList<String>();
tagIds.add(tagsCombo.getValue().getId());
predicates.setTagIds(tagIds);
}

query.setPredicates(predicates);
Expand Down
Expand Up @@ -130,9 +130,9 @@ private void export(String format) {
.append(URL.encodeQueryString(query.getPredicates().getGroupId()));
}

if (query.getPredicates().getTagId() != null) {
if (query.getPredicates().getTagIds().get(0) != null) {
sbUrl.append("&tag=")
.append(URL.encodeQueryString(query.getPredicates().getTagId()));
.append(URL.encodeQueryString(query.getPredicates().getTagIds().get(0)));
}

Window.open(sbUrl.toString(), "_blank", "location=no");
Expand Down
Expand Up @@ -110,7 +110,9 @@ public void setEntity(GwtTag gwtTag) {
if (gwtTag != null) {
selectedTag = gwtTag;
GwtDeviceQueryPredicates predicates = new GwtDeviceQueryPredicates();
predicates.setTagId(selectedTag.getId());
List<String> tagIds = new ArrayList<String>();
tagIds.add(selectedTag.getId());
predicates.setTagIds(tagIds);
query.setPredicates(predicates);
}
refresh();
Expand Down

0 comments on commit 545b530

Please sign in to comment.