[CONTEDIT-313] Improve Adding/Loading block Created: 27/Jan/21  Updated: 18/Apr/21  Resolved: 15/Apr/21

Status: Closed
Project: Content Editor
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.0

Type: Improvement Priority: Neutral
Reporter: Quach Hao Thien Assignee: Quach Hao Thien
Resolution: Done Votes: 0
Labels: VN-Implementation
Remaining Estimate: 3h
Time Spent: 6d 7h
Original Estimate: Not Specified

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)
Epic Link: Stories App Migration
Sprint: CM & OC 25, Content Mngmt 01
Story Points: 3

 Description   

Block is registered via BlockRegistry, which stores all the BlockDefinitions defined in modules, but some of the blocks are not validated or module containing blocks is not aligned, therefore I suggest to:

  1. Validate Blocks before populate to Block Chooser/Block Menu 
    1. Block name is required
    2. Block field is required
  2. Show verbose error notification/message when loading Story containing invalid Block

Dev Note:

  • Loading Content Editor: info.magnolia.editor.field.MultiBlockResolution#resolveEntryEditorDefinition
  • Populate blocks to Block Chooser/Block Menu: info.magnolia.editor.field.factory.AddBlockMenuFactory

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