Skip to content
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

Feature Request: Default distribution set name by type #1733

Open
lizziemac opened this issue May 14, 2024 · 0 comments
Open

Feature Request: Default distribution set name by type #1733

lizziemac opened this issue May 14, 2024 · 0 comments

Comments

@lizziemac
Copy link

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
        }
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

No branches or pull requests

1 participant