Skip to content

Conversation

@nickbalestra
Copy link
Contributor

Related to (and blocked by)

Registry will handle server side rendering in case of oc-client requesting the unrendered version of an unsupported template

Copy link
Member

@mattiaerre mattiaerre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

over to you @nickbalestra

}

// Support legacy templates
let templateType = component.oc.files.template.type;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at this point, we are positive that component.oc.files.template is not undefined right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

});
});

describe("when oc-client request an unrendered component and it doesn't support the correct template", () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very minor but I would still use single quotes and either escape the apostrophe w/ a '' or even consider to use '`' instead.

also the describe should be when oc-client requests ...

@nickbalestra
Copy link
Contributor Author

@mattiaerre fixed

Copy link
Member

@mattiaerre mattiaerre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this LGTM shall I merge or wait until is [Unblocked]?

@nickbalestra
Copy link
Contributor Author

Yes lets wait till we publish the client first as we need to update the client dependency in OC too for this to work correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants