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

Allow for custom_fields to be mapped to entities outside of backstage #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jasmeetsinghbhatia
Copy link

@jasmeetsinghbhatia jasmeetsinghbhatia commented Aug 2, 2024

In my implementation of backstage the namespace is called default
And I have a custom_field called service that is mapped to catalog from another source (not backstage).
Which essentially means when i try to run the plugin against my incident.io api

the call translates to

http://localhost:7000/api/proxy/incident/api/v2/incidents?custom_field[field ID here][one_of]=[default/service-name]

This is causing problems because the custom field is pulling the names of services without any knowledge of what backstage metadata namespace is (in this case default)

So all the plugin queries return no incidents since the custom-field assigned to incidents is <service-name> and not default/service-name

This PR allows for option to include one of the 2 available field values with and without backstage namespace.

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

Successfully merging this pull request may close these issues.

1 participant