[CNTCTSAPP-85] Remove permissions for demo-project-base role in Contacts App to fix migration delta Created: 24/Jul/14  Updated: 29/Oct/15  Resolved: 25/Jul/14

Status: Closed
Project: Contacts App
Component/s: None
Affects Version/s: 1.2.2, 1.3.1
Fix Version/s: 1.2.3, 1.3.2

Type: Bug Priority: Neutral
Reporter: Cheng Hu Assignee: Peili Liang
Resolution: Fixed Votes: 0
Labels: maintenance, next
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-5842 Updated instances behave as freshly i... 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
Epic Link: Migration (4.5 to 5.3.x)

 Description   

Remove permissions for demo-project-base role in Contacts App which is causing migration tests for 4.5 > 5.2.x and 4.5 > 5.3.x to fail.

Specifically, the following node:

<permissions sv:name="permissions">
  <roles sv:name="roles">
    <demo_project_base sv:name="demo-project-base" sv:type="String">demo-project-base</demo_project_base>
  </roles>
</permissions>

Logic for version handler for any version above 1.2:

  • If permissions node exist
    • If it contains a single roles node – and no other nodes
      • If roles node contains single demo_project_base property – and no other properties
        • Remove the permissions node

Write unit test for this


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