question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OwnerPicker to support output options

See original GitHub issue

Feature Suggestion

When selecting the User using the OwnerPicker that was recently contributed by @tragiclifestories, the output is User: john.smith

There is no option to just output john.smith for the user and no way to add other fields that you would like to be shown in the dropdown.

Possible Implementation

Introduce two new UI Options called allowedOutput to exclude the User: by defining the field name you would like to output and allowedMetadata to include specific fields you would like shown in the dropdown such as displayName.

        owner:
          title: Component Owner
          type: string
          description: Owner of the component 
          ui:field: OwnerPicker
          ui:options:
            allowedKinds: 
              - User
            allowedMetadata:
              - name
              - displayName 
            allowedOutput:
              - name

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
frebencommented, Sep 16, 2021

Yeah, you can definitely make a separate picker implementation for this.

0reactions
OrkoHuntercommented, Dec 7, 2021

Thanks @regicsolutions !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Writing Templates · Backstage Software Catalog and ...
Each individual step can output some variables that can be used in the scaffolder frontend for after the job is finished. This is...
Read more >
Writing scaffolder templates - Roadie.io
The owner picker, allows the user to select a user / group in the Backstage catalog. e.g.. parameters: properties: owner: type: string ...
Read more >
backstage/plugin-scaffolder-backend-module-cookiecutter - npm
Configure the action: (you can check the docs to see all options): ... owner: backstage/techdocs-core type: service parameters: - title: ...
Read more >
Software Templates - Backstage with OrkoHunter - YouTube
Today, let's explore Software Templates in backstage.io - how to create new templates, how to use Scaffolder actions and create new ones.
Read more >
Backstage (from Spotify) Templates with Grid controls
... component ui:field: OwnerPicker ui:options: allowedKinds: - Group ... repoContentsUrl }} catalogInfoPath: "/catalog-info.yaml" output: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found