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

candidate.toLowerCase is not a function #23

Open
christianherweg0807 opened this issue Jun 7, 2024 · 7 comments
Open

candidate.toLowerCase is not a function #23

christianherweg0807 opened this issue Jun 7, 2024 · 7 comments

Comments

@christianherweg0807
Copy link

Hey. I followed the steps in the README of you dynamic-pick-extension.
I created a small template in the Template Editor:
--- apiVersion: scaffolder.backstage.io/v1beta3 kind: Template metadata: name: open-pr-with-business-catalog-entry-product spec: parameters: - title: What is your service about? properties: name: title: "Name" type: string ui:field: DynamicPickExtension ui:autofocus: true ui:options: external_data: https://dummyjson.com/products/categories
When clicking in the dropdown field I got an :

TypeError
candidate.toLowerCase is not a function

image image

Any clue what I´ve missed?

@christianherweg0807
Copy link
Author

christianherweg0807 commented Jun 7, 2024

My goal is to select GitHub repositorys per dropdown. I think I´ve to use your Backend Plugin for this, right?
Is your Plugin already migrated to the new Backend System?
In you Readme you have an example with :

form_data: github/teams

You you provide example code for this?

@nia-potato
Copy link

@nthings hi thanks for the plugin, i am also getting the same error, is there anything we are missing in the setup?

@siarheirdn
Copy link

siarheirdn commented Jun 19, 2024

same issue :( example is wrong
https://www.npmjs.com/package/@premise/plugin-dynamic-pick-extension?activeTab=readme

parameters:
    - category:
        title: Category
        type: string
        ui:field: DynamicPickExtension
        ui:options:
            # IMPORTANT: The endpoint needs to return a JSON array of strings.
            external_data: https://dummyjson.com/products/categories

restApi https://dummyjson.com/products/categories returns list of objects instead of strings.
not a bug?

@RFackrell
Copy link

Just adding to this.
We were using this to query an internal api that was processing some data and serving json arrays more securely.
It was working well a couple weeks ago but is now broken.

@nia-potato
Copy link

@RFackrell i am trying to do the same, for it hit a internal endpoint with auth, did you have to modify the plugin to use a existing token in the app-config and the fetch it via the backend to access the file? or was it just a json endpoint without auth hosted internally?

@christianherweg0807
Copy link
Author

Could you please help or provide a working example?

regards
christian

@8BitSensei
Copy link

+1 on this issue, it looked like the perfect tool for the problem I'm trying to solve otherwise.

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

5 participants