Commit Graph

47140 Commits

Author SHA1 Message Date
Josh Uvi 11f671eaa9 Added support for new backend system
Signed-off-by: Josh Uvi <joshuauvbiekpahor@gmail.com>
2023-10-20 12:22:09 +01:00
Josh Uvi ec779d4d8c added new backend system package to code-coverage-backend
Signed-off-by: Josh Uvi <joshuauvbiekpahor@gmail.com>
2023-10-20 12:16:40 +01:00
Patrik Oldsberg 940466e0fd Merge pull request #20686 from backstage/mob/entity-pages
catalog: initial entity page implementation for the new frontend system
2023-10-20 13:10:38 +02:00
Patrik Oldsberg f75caf9f3d search-react: fix search bar race
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-20 12:59:43 +02:00
Patrik Oldsberg ddcec7735e Merge pull request #20701 from backstage/rugvip/fix
cli: fix package detection breaking if package.json is not available
2023-10-20 12:17:00 +02:00
Patrik Oldsberg 6bf7561d3c cli: fix package detection breaking if package.json is not available
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-20 11:42:19 +02:00
zcmander 48a61bfdca techdocs: fix buildLogTransport-related memory leak
Signed-off-by: zcmander <zcmander@gmail.com>
2023-10-20 11:23:16 +03:00
Camila Belo a9611d4251 fix(catalog-react): make entity content routable
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2023-10-20 10:13:16 +02:00
Patrik Oldsberg 0bf6ebda88 catalog,catalog-react,techdocs: extract experimental entity page implementation from app-next
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-20 09:41:23 +02:00
Patrik Oldsberg c82fc7e672 catalog: split alpha entry point into multiple modules
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-20 09:41:23 +02:00
Patrik Oldsberg b34e8bf3a3 app-next: initial entity page implementation with cards and content
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-20 09:41:23 +02:00
Patrik Oldsberg 39cd2d7a1f starting point for entity page extension API
Co-authored-by: Philipp Hugenroth <tudi2d@users.noreply.github.com>
Co-authored-by: Vincenzo Scamporlino <vinzscam@users.noreply.github.com>
Co-authored-by: Camila Belo <camilaibs@gmail.com>
Co-authored-by: Rickard Dybeck <r.dybeck@gmail.com>
Co-authored-by: Ben Lambert <ben@blam.sh>
Co-authored-by: Jack Palmer <UsainBloot@users.noreply.github.com>
Co-authored-by: Elon Jefferson <Edje-C@users.noreply.github.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-20 09:41:23 +02:00
Alex Crome 243c655a68 Updated Azure Active Directory to Entra ID
Microsoft have renamed Azure Active Directory to Entra ID.  https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/new-name .  This PR updates references to AAD to refer to Entra ID.

* On each documentation page, I include `formerly Azure Active Directory` in the first non heading reference to Entra ID.  This will help anyone unfaimiliar withthe  name change, and will also mean the page continues to show up in search results if people search for the old name.
* I didn't correct references in file names, as this would cause broken links.  If we have a way of redirecting those to new urls I can look at doign that, but if not, I think it's better to leave existing links working.
* There were a few references to AAD in release notes for older versions - I left these alone as the product naming was correct at the time of the release notes.
* LDAP provider still has references to "Active Directory" as these reference to the on premise Active Directory, not Azure Active Directory

Signed-off-by: Alex Crome <afscrome@users.noreply.github.com>
2023-10-19 23:11:35 +01:00
Alex Crome 3979524c74 Add domain_hint support to Entra ID login
When a user is logged in to multiple microsoft accounts, there can be be a little bit of friction in the Entra login process as users will be asked to select the account to login with.

Scenarios in which a user may have multiple microsoft accounts

1. Someone logged in to your work Entra ID account, and a personal microsoft account
2. A consultant who has an Entra ID account at both their employer, as well as the company they're contracted out to.
3. A user has a regular account, as well as one or more high priviliged accounts.

When a domain hint is provided, Entra will filter out all the accounts which don't belong to the tenant specified on the `domain_hint`.
In many cases, this will filter to a single account, avoiding the need to select an account at all (e.g. scenario 1 & 2).
This won't always happen (e.g. scenario 3).
Additionally in the case a tenant has been configured to federate authentication elsewhere (e.g. to an on premise AD FS), setting the domain hint means entra can send the user straight to the federated authentication soruce, removing further steps

If backstage is allowign authentication from multiple tenants, this field should be left blank.

For more details, see https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/home-realm-discovery-policy

99% of the time, this value should be the same as the tenantId, so we could get rid of hte domain hint, and set it to the same value as the tenant id automatically.
We'd need to provide a config option (e.g. `isMultiTenant: true`) to opt out of this.
For those edge cases, this would be a breaking change.

I decided to go with specifying the `domain_hint` seperatly for now just in case my assumptions are wrong and there are more cases wher ehte `domain_hint` will get in the way.
We can always make this the default behaviour later on.

Signed-off-by: Alex Crome <afscrome@users.noreply.github.com>
2023-10-19 23:01:14 +01:00
Patrik Oldsberg bae9015f2b Merge pull request #20683 from backstage/mob/routed-tabs-fix
core-components: make RoutedTabs not explode when rendering without tabs
2023-10-19 20:51:59 +02:00
Patrik Oldsberg bdb4fbf83f Merge pull request #20689 from kuangp/fix/config-loader
fix(configLoader): properly resolve targets into absolute paths
2023-10-19 20:45:34 +02:00
Patrik Oldsberg 8fed4d5e75 Merge pull request #20688 from backstage/rugvip/wait
search: more reliable wait in test
2023-10-19 20:35:34 +02:00
Phil Kuang 22ca64f117 fix(configLoader): properly resolve targets into absolute paths
Signed-off-by: Phil Kuang <pkuang@factset.com>
2023-10-19 13:57:38 -04:00
Patrik Oldsberg 1f0b6b1e48 search: more reliable wait in test
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 19:06:01 +02:00
Patrik Oldsberg acc1b37a23 Merge pull request #20687 from backstage/rugvip/schema
frontend-app-api: fix configuration schema
2023-10-19 18:59:19 +02:00
Patrik Oldsberg e28d379e32 changesets: add changeset for frontend-app-api app graph refactor
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg 062f7a85cb frontend-app-api: add graph types docs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg d2e2b01ae1 frontend-app-api: move some createApp tests to createAppGraph
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg ee39751fdf frontend-app-api: make rootNodeId required in resolveAppGraph
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg 89dc1250d8 frontend-app-api: make it possible to configure which extensions are forbidden
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg 5aad4f7720 frontend-app-api: no longer reject core extension configuration
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg 6d2258621f frontend-app-api: update resolveAppNodeSpecs tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg 6473b37182 frontend-app-api: move graph/ to top level
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg fcf1b80bed frontend-app-api: migrate createApp to use createAppGraph
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg ea26227748 frontend-app-api: rename extractRouteInfoFromInstanceTree -> extractRouteInfoFromAppNode
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg fd6dd7c079 frontend-app-api: migrate extractRouteInfoFromInstanceTree to app graph
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg eb7c037e6f frontend-app-api: fix AppNodeInstance.getData return type
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg 90b9ef567d frontend-app-api: add createAppGraph
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg 65b6a91894 frontend-app-api: rename buildAppGraph -> resolveAppGraph
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg d844ec8a0b frontend-app-api: add tests for instantiateAppNodeTree
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg aded5d1ce4 frontend-app-api: migrate createExtensionInstance tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:23 +02:00
Patrik Oldsberg 2b1ceb2fe1 frontend-app-api: move app node instance creation into instantiateAppNodeTree
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 18:01:22 +02:00
Patrik Oldsberg be2afe8d48 frontend-app-api: update createAppNodeInstance for ReadonlyMap + remove ExtensionInstance type
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg 1a9acc4ff1 frontend-app-api: refactor buildAppGraph to avoid mutability casts
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg 3230953cc9 frontend-app-api: switch to ReadonlyMap in app graph types
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg ff33a006a1 frontend-app-api: add node map to app graph
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg 6e6458f9c2 frontend-app-api: tweak app graph to have an explicit root node
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg 2ff857bdb4 frontend-app-api: add instantiateAppNodeTree
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg bb4d40b481 frontend-app-api: refactor createExtensionInstance -> createAppNodeInstance
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg 544968da08 frontend-app-api: make app node serializable
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg 7df6a42e4a frontend-app-api: extract Mutable to common internal type in graph
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg 650309205b frontend-app-api: move createExtensionInstance to graph
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg d2bee21c91 frontend-app-api: add initial app graph builder
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg b3977b9864 frontend-app-api: refactor mergeExtensionParameters -> resolveAppNodeSpecs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:06 +02:00
Patrik Oldsberg c617af1d6d frontend-app-api: add initial app graph types
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 17:59:05 +02:00