pages-core icon indicating copy to clipboard operation
pages-core copied to clipboard

Correctly set site engine when adding a site

Open davemcorwin opened this issue 3 years ago • 3 comments

User Story

As a user, when I specify the site engine when adding a site to Federalist, it should be used.

Background (Optional)

Currently, it seems as if this is ignored.

Acceptance Criteria

  • [x] Specifying the site engine when adding a site works
  • [ ] Change made live via deploy Federalist.

Level of effort - low

davemcorwin avatar Jan 25 '22 19:01 davemcorwin

The front end is definitely POSTing the engine, e.g.:

federalist_1    | info: HTTP POST /v0/site
... "body":{"owner":"svenaas","repository":"ncd-test","engine":"node.js","organizationId":null}} ...
... "body":{"owner":"svenaas","repository":"ncd-test","engine":"static","organizationId":null}} ...

or

app_1           | info: HTTP POST /v0/site 
... "body":{"owner":"svenaas","repository":"ncd-test","engine":"hugo","organizationId":null}} ...

svenaas avatar Jan 27 '22 17:01 svenaas

But by the time api/services/SiteCreator's paramsForNewSite gets called the params it gets passed do not include that engine...

Oh, it's the controller. 🙄

svenaas avatar Jan 27 '22 17:01 svenaas

Merged into staging, but not yet into production.

svenaas avatar Jan 27 '22 21:01 svenaas

I just noticed that this wasn't closed yet. The commit associated with this fix has been in main for a long time.

svenaas avatar Jun 21 '23 16:06 svenaas