Problem/Motivation

When trying to get transform results of an empty region, and error occurs.

This is fixed with adding new block transform into the region.

Steps to reproduce

  1. Create new region ("footer" for example)
  2. Leave the region empty
  3. Call /?format=json&region=footer

Proposed resolution

Return an empty array instead

CommentFileSizeAuthor
#2 transform_api_empty_region.patch746 byteserik_petra

Comments

erik_petra created an issue. See original summary.

erik_petra’s picture

StatusFileSize
new746 bytes

I created a patch to fix this issue, however it creates another one.

Once the empty region is fetched and cached, new blocks added to the region don't show up, unless the cache is cleared.

lupusgr3y’s picture

We could probably add a cache tag for the regions configuration.

  • LupusGr3y committed c73bf709 on 1.1.x
    Issue #3458752 by erik_petra: Empty region transform results in error
    
lupusgr3y’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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