[MGNLUI-1662] Make i.m.pages.app.action.RestorePreviousVersionAction to extend i.m.ui.contentapp.detail.action.RestorePreviousVersionAction Created: 14/Jun/13  Updated: 03/Jun/14  Resolved: 03/Jun/14

Status: Closed
Project: Magnolia UI
Component/s: content app, pages app
Affects Version/s: 5.0
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Jozef Chocholacek Assignee: Mikaël Geljić
Resolution: Outdated Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
caused by MGNLUI-1619 Create general RestorePreviousVersion... Closed
supersession
is superseded by MGNLUI-2947 Eliminate code duplication in Restore... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

Follow up of MGNLUI-1619:

New action is almost an identical copy of info.magnolia.pages.app.action.RestorePreviousVersionAction - pls try to extract common code rather than duplicate. Most likely the one from pages should base on the "general" action.
Details:
#getPreviousVersion() is 100% identical
#execute() is very similar

Make sure the API is not changed.


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