Feature Request: Default distribution set name by type

Aperta
#1,733 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java

Direzione di ricerca

No files or tests are named in the issue. Start by reading the distribution set type and distribution set creation API to find where type defaults and omitted names are handled. Done means a type can define a default name, and creating a distribution set without a name uses it.

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

Descrizione

Currently, when creating a distribution set, users need to manually input a name for the set. To streamline this process and improve user experience, it would be nice if we could add a feature that automatically sets a default name for the distribution set based on its type, if no other name is provided.

Proposed Solution
  • Allow users to define the default name when creating a distribution set type.
  • Automatically generate a default name for a distribution set when a type is selected.
Benefits
  • Saves time for users by reducing the need to manually input names.
  • Ensures consistency in naming conventions across different distribution sets.
  • Minimizes the chance of errors or omissions in naming.
Example

User creates a distribution set type with the following body:

[
    {
        "key" : "device-revA-release",
        "colour" : "#0000FF",
        "name" : "Device Release (hw rev A)",
        "description" : "This distribution set contains any artifacts required for a release to Company Devices with hardware revision A",
        "defaultName": "Device Release",
        "optionalmodules" : [
           {
                "id": 1
            }, 
        ]
    }
]

User then creates a distribution set (note that the name is not provided):

[
  {
    "version": "1.0.2",
    "requiredMigrationStep": false,
    "modules": [
      {
        "id": 1
      }
    ],
    "type": "device-revA-release"
  }
]

with the (partial) response

{
            "name": "Device Release",
            "description": "",
            "version": "1.0.2",
            "modules": [],
            "requiredMigrationStep": false,
            "type": "os_app",
            "typeName": "OS with app(s)",
            "complete": true,
            "deleted": false,
            "valid": true,
            "_links": {
                "self": {
                    "href": "http://hawkbit.go/rest/v1/distributionsets/42"
                }
            },
            "id": 42
        }
Lingua principale
Java
Stelle
601
Fork
228
Merge medio
15h 48m
PR unite (30g)
62

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.