[MGNLUI-7687] As developer I want to use an availability rule for folders Created: 12/Dec/22  Updated: 03/Jan/23  Resolved: 23/Dec/22

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0

Type: Task Priority: Neutral
Reporter: Roman Kovařík Assignee: Adam Siska
Resolution: Done Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 1.5h Time Spent: 1.5h
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
Relates
dependency
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-7688 Implementation Sub-task Completed Adam Siska  
MGNLUI-7689 Review Sub-task Completed Adam Siska  
MGNLUI-7690 Pre-Integration QA Sub-task Completed Adam Siska  
MGNLUI-7691 QA Sub-task Completed Quach Hao Thien  
MGNLUI-7708 DOCu: add the flag and info about not... Sub-task Completed Adam Siska  
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Documentation update required:
Yes
Date of First Response:
Epic Link: SaaS Node Operations - Nodes & Folders
Sprint: Nucleus 26
Story Points: 1
Team: Nucleus
Work Started:

 Description   

Boolean AvailabilityDefinition#isFolder

  • true - available for folders
  • false - available for content (non folder)
  • null (default) - available for both (skip the check)

New folder rule:

availability:
  folder: true

JCR rule for comparison:

availability:
  nodeTypes:
    mgnl:folder: mgnl:folder

Related PoC PR:
https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/pull-requests/2258/overview



 Comments   
Comment by Adam Siska [ 19/Dec/22 ]

Discover:

  • add folder property to AvailabilityDefinition

Optional (could be not supported, specified in docu to use node type rule as before)

  • implement new JcrFolderRule that works according the new flag (see specs. in ticket description)
  • add rule to JcrAvailabilityChecker#RULE_DEFINITIONS list of default rules.
Generated at Mon Feb 12 09:48:26 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.