umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.36k stars 2.64k forks source link

Add endpoint for calculating effective user start nodes #16609

Closed kjac closed 4 days ago

kjac commented 1 week ago

Prerequisites

Description

We need to list the effective user start nodes (directly applied to the user + inherited via group membership). Instead of cluttering the existing "get user" endpoint, I have decided to add a new endpoint for this calculation.

Testing this PR

First and foremost, be aware that we have a few caching issues with users and start nodes (see https://github.com/umbraco/Umbraco-CMS/pull/16552). When making chances to user start nodes, the only really reliable way to have these reflected is currently to restart the site.

  1. Create some users with different start node setups - both direct and inherited.
  2. Verify that the effective start nodes are calculated correctly with this new endpoint.
Zeegaan commented 4 days ago

Looks good, tests good 🚀