Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

EZP-26011: Content on the Fly embeds unreliable with the Solr Bundle #642

Merged
merged 4 commits into from
Jul 8, 2016

Conversation

dpobel
Copy link
Contributor

@dpobel dpobel commented Jul 5, 2016

JIRA: https://jira.ez.no/browse/EZP-26011
Requires ezsystems/content-on-the-fly-prototype-bundle#15

Description

To render the embed elements and the images in the RichText editor a search is done to load the corresponding Content(Info). Right after creating a Content, the search index might not be up to date yet, as a result the embed or the image added based on a Content that was just created with the Content on the Fly feature can not be done.

To avoid that, this patch changes the way the embed/image tag is rendered right after the usage of the Universal Discovery Widget to use the selection provided by the UDW instead of searching for the Content(Info).

Tests

manual tests + unit tests

@yannickroger
Copy link
Contributor

+1

@andrerom
Copy link
Contributor

andrerom commented Jul 7, 2016

+1 Note: We still need to find a way to omit using search for embeds for cases where user clicks directly publish before it's been indexed, and for cases where embeds might not have a location. Ref being able to do multi GET against content info api in REST and PHP later.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants