Overview

When navigating to /xb/node/1, two requests are sent to

/api/preview/node/1

:

  • the second one for the actual preview
  • the first one for "the empty canvas/component tree":
    {"layout":{"uuid":"root","nodeType":"root","name":"root","children":[]},"model":{}}
    

That's wasteful and rather pointless.

Proposed resolution

Eliminate that first request.

User interface changes

TBD

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

Wim Leers created an issue. See original summary.

omkar-pd made their first commit to this issue’s fork.

omkar-pd’s picture

Status: Active » Needs review

Utkarsh_33 made their first commit to this issue’s fork.

utkarsh_33’s picture

Assigned: Unassigned » jessebaker

Fixed the test.Assigning it to @jessebaker for a review.

wim leers’s picture

Assigned: jessebaker » utkarsh_33
Status: Needs review » Needs work
Issue tags: +Needs tests

Does the test actually fail without the non-test change? I don't think it does.

utkarsh_33’s picture

Assigned: utkarsh_33 » wim leers
Issue summary: View changes
Issue tags: -Needs tests

Added test for the change.

utkarsh_33’s picture

Status: Needs work » Needs review
utkarsh_33’s picture

Assigned: wim leers » utkarsh_33
Status: Needs review » Needs work

I'll update the changes.

utkarsh_33’s picture

Assigned: utkarsh_33 » jessebaker
Status: Needs work » Needs review

wim leers’s picture

jessebaker’s picture

Assigned: jessebaker » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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