[MGNLCT-129] rootPath should be checked and auto-created if set Created: 16/Jul/19  Updated: 25/Mar/22

Status: Open
Project: Content Types
Component/s: None
Affects Version/s: 1.1
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Scot Rhodes Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File es-cluster-app.yaml     File es-cluster.yaml    
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:

 Description   

When a contentType has datasource.autoCreate set to true, and a rootPath is defined that is not at the root of the provided workspace, the rootPath should be checked for existence, and created if not. The result of this not occurring is that the app will not provide any action bar items to create an item since there is a non-existent path in the workspace. Additionally, if a rootPath is declared, the app that uses this content type should automatically include the contentConnector, i.e.
     contentConnector:
     rootPath: /declared-rootPath
If the user does not add this, or it is not automated when including !content-type, the application will not find any of its items. It will save the items to the root of the workspace, but the app will not be aware of those items as they are not in the contentConnector.



 Comments   
Comment by Christopher Zimmermann [ 16/Jul/19 ]

Looks like a good improvement.
Without it, Content Types cannot be cleanly used to create apps that point to a specific path within a workspace, which is a valid use case.
Scott also mentioned that it improves performance to not have too many different workspaces.

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