K-Phoen / backstage-plugin-confluence

Confluence plugins for backstage
MIT License
58 stars 15 forks source link

Feature: Fetch confluence spaces from API #178

Open luca-ballerini opened 1 year ago

luca-ballerini commented 1 year ago

This change revisits the commented out function getSpaces() currently on main, making the default method for importing spaces an API call to confluence, and retaining the spaces key as option for backward compatibility.

The new behaviour will be as follow:

If the YAML key spaces is present and it's length is > 0 then the collator will fetch the listed spaces. If the key is missing, the list of spaces will be generated via an API call to the /rest/api/space?&limit=1000&type=global&status=current endpoint.