[MGNLSITE-165] Ensure that Multisite works with Norsu-pages on SaaS Created: 19/Oct/22  Updated: 18/Apr/23  Resolved: 10/Nov/22

Status: Closed
Project: Magnolia Site Module
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Story Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Dai Ha
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 2d 1h Time Spent: 3h
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: GIF File multisite-norsu-2.gif     GIF File multisite-norsu-with-subpage.gif     PNG File sportation-contact.png     PNG File sportation.png     PNG File travel-contact.png     PNG File travel.png    
Issue Links:
Relates
relates to PAGES-870 Remove side effects between JCR and N... Closed
relates to MULTISITE-123 As a developer, i want the site defin... Closed
dependency
is depended upon by PAGES-921 Restore norsu multisite check in nors... Open
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLSITE-166 Implementation Sub-task Completed Dai Ha  
MGNLSITE-167 Review Sub-task Completed Canh Nguyen  
MGNLSITE-168 Pre-Integration QA Sub-task Completed Oanh Thai Hoang  
MGNLSITE-169 QA Sub-task Completed Phong Le Quoc  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: Site on 6.3 and SaaS
Sprint: DevX 23
Story Points: 3
Team: DeveloperX

 Description   

Verify that Multisite works with Norsu-pages on SaaS

Try it out, see if it works.

If it doesnt, then fix it.

Document any steps necessary or issues discovered.

-

This is the scenario that we want to test:

https://docs.magnolia-cms.com/headless/spa-development/SPA-hosting.html

Using "siteSpa" and the template Prototype to provide a `baseUrl` and `routeTemplate`.

In pages app we should have 2 root pages, which are the 2 sites. Each root page should have a child page.

Each of these 2 sites should be able to point to a different "frontend" using a different `baseUrl`.



 Comments   
Comment by Christopher Zimmermann [ 20/Oct/22 ]

jsimak or mdivilek do you have any input or sample of how the site definition should look like in order to match the different root nodes based on name?
I guess this ticket is closely related: https://jira.magnolia-cms.com/browse/MULTISITE-123

Comment by Dai Ha [ 26/Oct/22 ]

Blocked by https://jira.magnolia-cms.com/browse/PAGES-870, templates from both jcr & spa could not load, I will try to bootstrap some page under norsu to continue.

Comment by Christopher Zimmermann [ 08/Nov/22 ]

Can you please check if a subpage of the sites work as well? Or did you already?

Comment by Christopher Zimmermann [ 08/Nov/22 ]

dai.ha  or oanh.thai can you point to the site definitions used for testing? Or add them inline to the description or in a comment? Thanks!

Comment by Christopher Zimmermann [ 08/Nov/22 ]

oanh.thai I'm just realizing now that the video does not really show me if the siteSpa is working - it shows me that the page editor is working. Did we test that 2 sites with different `baseUrl` s were correctly resolved for the two pages in the pages app? We can have a call.

Comment by Oanh Thai Hoang [ 09/Nov/22 ]

Hi sorry for making you confused czimmermann . I used following repo inspired from Dai. You can find site definition here. And the templates here. I set permission again so you can open it now

I did test with subpage as well. Now sportstations will run in port 3002, and travel will run with 3000 as below imgs

 

travel with port 3000

sub page travel/contact with port 3000

 

sportstation with port 3002

sub page sportstations/contact with port 3002  

Comment by Dai Ha [ 09/Nov/22 ]

czimmermann, you can find one sample here: https://git.magnolia-cms.com/projects/CLOUD/repos/hello-saas/commits?until=refs%2Fheads%2Fdev%2Fsite-support

Comment by Christopher Zimmermann [ 09/Nov/22 ]

Great thanks. Looks good!

Generated at Mon Feb 12 07:13:22 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.