[CONTEDIT-447] Missing default intermediate "blocks" node after saving i18n story Created: 18/Oct/21  Updated: 28/Oct/21  Resolved: 26/Oct/21

Status: Closed
Project: Content Editor
Component/s: None
Affects Version/s: 2.1-beta
Fix Version/s: 2.1

Type: Bug Priority: Neutral
Reporter: Quach Hao Thien Assignee: Antonín Juran
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2021-10-18-13-36-44-182.png     PNG File image-2021-10-18-13-37-13-304.png     PNG File image-2021-10-18-13-38-07-643.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Epic Link: i18n Stories App
Sprint: Content Mngmt 15
Story Points: 1

 Description   

Steps:

  1. Add new story
  2. Fill in require fields for english (default), and add some blocks
  3. Switch to german, fill in require fields, and add some blocks
  4. Switch back to english , click save

Expected result

Actual result 

Missing default blocks node

Open story on the app

Development node:

If I clicks save on German form, this issue will not happen



 Comments   
Comment by Dai Ha [ 19/Oct/21 ]

We tried to guess the node structure to offer correct sub nodes for 'blocks'. In the new node case, we simply check for i18n flag definition which is then insufficient in case of saving story with multiple locale at the same time.

  • The first locale form will be saved correctly
  • The next locale form will be saved with old structure since the node is not 'new' at this point

Fix: enhance the check and find previously saved blocks field

Generated at Mon Feb 12 00:20:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.