Problem/Motivation

API response property page is ambiguously named and is conflicting with nuxt parameter.

"page": "layout--default",

Proposed resolution

1. rename page to page_layout and remove page_layout that is nested under settings.
2. breadcrumbs_html property is not needed anymore.

API changes

Top level property name is changed
page ---> page_layout

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

useernamee created an issue. See original summary.

fago’s picture

Status: Active » Needs work

lupus_ce_renderer does not add page_layout under settings, so there is no duplication here.
However, yes I can see problems with the current "page" attribute:

- it's weirdly named and not currently used
- I agree that page_layout with value "default" is much better than having a page of "layout--default"

but then it does not make sense to make this markup only, why does the json serialization not get the attribute?

Finally, there is a breadcrumbs_html attribute next to it - I think this should be deprecated and removed as well. It's a thing of the past (lupus-frontproxy) which is unlikely to be useful by anyone else, drupal-ce connector does not use it either. Let's drop it as long as we are in beta here!

So the issue description, patch needs some work. Finally we need to prepare change-record draft here which describes the API change. Please look at existing ones for guidance.

useernamee’s picture

Title: API response has duplicate page and page-layout properties » API response property page is ambiguously named and is conflicting with nuxt parameter
Issue summary: View changes

useernamee’s picture

This change record applies to current issue: https://www.drupal.org/node/3245112

fago’s picture

Title: API response property page is ambiguously named and is conflicting with nuxt parameter » API response property page is ambiguously named, breadcrumbs_html is outdated
Status: Needs work » Fixed

ok, updated issue title and merged it.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.