[MGNLSTK-1418] Make contacts dependency optional Created: 18/Aug/14  Updated: 27/Oct/14  Resolved: 22/Oct/14

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: base system, demoproject
Affects Version/s: 2.7.7, 2.8.2
Fix Version/s: 2.8.5

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Philip Mundt
Resolution: Fixed Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLGROOVY-126 Workbench definition specifies wrong ... Closed
causality
is causing MGNLSTK-1439 When contacts module is added to inst... Closed
relation
is related to MGNLSTK-1391 stk module has a dependency on the co... Closed
Template:
Acceptance criteria:
Empty
Release notes required:
Yes
Date of First Response:

 Description   

Not all users will want the contacts module installed in their system just because they use stk module. It should be optional.

Problems

When contacts-app is not installed:

  • The field found here: /modules/standard-templating-kit/dialogs/components/teasers/stkTeaserContact/form/tabs/tabTeaser/fields/contact/contentPreviewDefinition has a contentPreviewDefinition property pointing to info.magnolia.contacts.app.field.component.ContactPreviewComponent and will create a CNF exception.
  • The workspace contacts won't be found
Possible solutions
  1. Make stkTeaserContact template and dialog a part of the contacts-app.
  2. Have (multiple) conditional bootstrap tasks (in stk + demo-project) that only install dialogs/components/content when contacts-app is installed
Demo contents that use stkTeaserContact

Those contents might have to be ordered upon boostrap.

4 nodes returned in 10ms
/demo-features/aggregation-paragraphs/contact-paragraph/content/0
/demo-project/news-and-events/extras/extras1/00
/demo-features/aggregation-paragraphs/contact-paragraph/extras/extras1/0
/demo-project/news-and-events/news-overview/extras/extras1/0

Be aware of possible migration.



 Comments   
Comment by Philip Mundt [ 17/Oct/14 ]

Another class of contacts module "slipped" into the system: info.magnolia.contacts.app.main.tree.ContactDropConstraint in /modules/groovy/apps/groovy/subApps/browser/workbench@dropConstraintClass. Solved with linked issue MGNLGROOVY-126.

Comment by Christopher Zimmermann [ 22/Oct/14 ]
  • Probably good to remove the STK module pom dependency on the contacts app modules.
  • Create a new ticket and link to create an STK update task for future versions. to update the demo project with the contact content.
Generated at Mon Feb 12 07:36:23 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.