sp-dev-site-scripts icon indicating copy to clipboard operation
sp-dev-site-scripts copied to clipboard

"joinHubSite" and assign to HubSite generates infinite loop

Open KalleMansikkaniemi opened this issue 6 years ago • 1 comments

Category

  • [ ] Question
  • [ ] Bug
  • [X] Enhancement

Expected or Desired Behavior

Would it be great that when HubSite is starting the site script containing the verb "joinHubSite", it just ignores the verb, because it is already joined a HubSite?

Observed Behavior

When a site design containing a script with "joinHubSite" verb is connected to HubSite it generates an infinite loop.

Steps to Reproduce

Powershell: Set-SPOHubSite https://yourtenant.sharepoint.com/sites/hubsite -Title "HubSite" -SiteDesignId "xxx"

JSON: "verb": "joinHubSite", "hubSiteId": "yyy", "name": "HubSite"

KalleMansikkaniemi avatar Oct 19 '18 06:10 KalleMansikkaniemi

This is a question I have asked myself numerous times (although I haven't gotten around to test it yet) In practice this means that as of now we have to implement two different Site Designs for this to work without side effects, one with and one without "joinHubSite"-verb specified :-(

balle3201 avatar Nov 13 '18 08:11 balle3201