coder / backstage-plugins

Official Coder plugins for the Backstage platform
40 stars 3 forks source link

chore: setup initial repo #2

Closed Parkreiner closed 9 months ago

Parkreiner commented 9 months ago

This commit lays the groundwork for moving all our Backstage plugin logic into a separate repo that will (eventually) become public and fully open-sourced.

Notes

Changes to watch out for

Parkreiner commented 9 months ago

@code-asher Yeah, I've been wondering about the API factory stuff, too. It just feels weird that the main documentation for proxying makes no mention of them, and they just say to use the native fetch

There is this example page, though, which makes use of the discoveryApi. Hopefully this would do the trick, but I've got two big questions (just thinking out loud):

  1. I'm guessing that the plugin would inherit all the config options from the root directory, but we would need to make sure that holds up, and that the proxy properties are being passed down
  2. The DiscoveryApi looks pretty straightforward (it only has one function), but I don't know if there are any limits on when it can be called. Like, does it break if it's not set up with the right providers, and would those be available in isolated mode?

Still, once I get the auth PR done, I'll fiddle around with things, and see if I can't get them working

code-asher commented 9 months ago

Awesome, yeah I think we can punt on the API thing since running from the root works perfectly fine, but curious to see what you turn up!