[MGNLWORKFLOW-296] Can't delete page if parent page is not activated Created: 21/Apr/15  Updated: 22/Jun/15  Resolved: 27/May/15

Status: Closed
Project: Magnolia Workflow Module
Component/s: None
Affects Version/s: 5.4.5
Fix Version/s: 5.4.6, 5.5

Type: Bug Priority: Neutral
Reporter: Trang Truong Assignee: Trang Truong
Resolution: Fixed Votes: 0
Labels: 5.3.9, support
Remaining Estimate: 0d
Time Spent: 3d 5h
Original Estimate: 5h

Issue Links:
causality
supersession
supersedes MGNLUI-3360 Can't delete page if parent page is n... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Regarding to issue MGNLUI-3360, publish deletion action is disabled if parent page is not activated.
Solution: add extends = override to availability/rules to prevent inherited rules from activate action.



 Comments   
Comment by Espen Jervidalo [ 30/Apr/15 ]

Two remarks:
This should also be fixed on master, so updated the fixVersion.

And a neat tip when writing such assertions with nodes and properties (for the future):
assertTrue(session.getNode(rulePath).hasProperty("extends"));
Can be checked with:
assertThat(node, hasProperty("extends"))

And even nicer:
assertEquals("override", session.getNode(rulePath).getProperty("extends").getString());
assertThat(node, hasProperty("extends", "override")) –

Comment by Trang Truong [ 27/May/15 ]

Reopen this because of ui-test failure.

Generated at Mon Feb 12 10:08:41 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.