[MGNLRES-351] Update the "you're editing a copy" message in the edit dialog Created: 24/Mar/20  Updated: 29/Mar/22  Resolved: 14/Mar/22

Status: Closed
Project: Magnolia Resources Module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Martin Drápela Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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)
Date of First Response:
Team: Nucleus

 Description   

The edit resource dialog always opens with a heading

You're now editing a copy of the resource file stored in JCR

which is probably incorrect because

roman: that message used to be a workaround in the old framework, because the hotfix was already precreated when the subapp was opened

If one starts editing a filesystem resource and clicks "Cancel"

or

opens the edit dialog, does not do anything in the edit area and clicks Save

then that resource remains a filesystem resource, not a JCR resource.

The wording could be:

  1. More visible in the dialog - in red or prefixed with a warning triangle.
  2. "If you click Save changes, the resource file will be stored in JCR."

 



 Comments   
Comment by Adam Siska [ 26/Mar/20 ]

Ad 1) not sure if this is something user should be warn of (instead of just being informed), are there any dangerous consequences?
Ad 2) this wording is not accurate for the case of repeated editing (jcr resource IS there in that case)

My conclusion: this is maybe worth to point out in documention for Resources app (the idea of decorations/hotfixing) and maybe this could be ditched out of this edit detail at all.

EDIT: rephrased docu, this is pretty accurate:
"This creates a JCR node representation of the file in the resources workspace, this copy will override corresponding files on the file system and classpath. You can publish the copy to public instances without stopping or redeploying Magnolia."

https://documentation.magnolia-cms.com/display/DOCS61/Resources#Resources-Overridingresources

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