Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support filter on tag id in target endpoint

Aperta
#2,979 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java
Ambito
api

Direzione di ricerca

Start by reading the target search endpoint and the existing RSQL support for tag.name; the issue identifies /rest/v1/targets and the q parameter. Check the related tests for target filtering. Done means tag.id==11 is accepted and returns targets assigned the tag with ID 11; the issue has had no comments for over six months, so there may be no timely guidance.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'd like to be able to create a device filter based on tag ID, as the tag ID will be static while the tag name might not be.

As example, I want all devices using the tag with ID 11, which would be tag.id==11 as q:

curl -X 'GET' \
  'https://hawkbit-dev.example.com/rest/v1/targets?q=tag.id%3D%3D11&offset=0&limit=50' \
  -H 'accept: application/hal+json' \
  -H 'Authorization: Basic snip'

The following is returned:

{
  "exceptionClass": "org.eclipse.hawkbit.repository.exception.RSQLParameterUnsupportedFieldException",
  "errorCode": "hawkbit.server.error.rest.param.rsqlInvalidField",
  "message": "The given search field {tag.id} has unsupported sub-attributes. Supported sub-attributes are [name]"
}

I'm aware that there is an endpoint to retrieve all target assigned a specific tag (/rest/v1/targettags/{targetTagId}/assigned), but I need the filter support to be able to create a rollout from it.

Lingua principale
Java
Stelle
601
Fork
228
Merge medio
18h 20m
PR unite (30g)
58

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-hawkbit/hawkbit

Tutte le issue di eclipse-hawkbit/hawkbit

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.