Context
Last updated
Last updated
Contexts are business domains like marketing, sales, product, customer success etc.
Contexts allow creating business definitions specific to a business context like marketing / sales / product etc. For example, the definition of "active user" can differ between the product team and the marketing team - contexts make it possible to have different feature definitions for different contexts.
There are two types of contexts:
shared
context (default)
custom context
shared
(the default context)shared
is the context that Lynk comes with out of the box.
Creating a custom context is done via settings > account > contexts on the Studio. Only admins can create and manage contexts.
Entities are being created on the shared
context and available on all contexts.
Features are context specific;
Unless explicitly created on a custom context, features will be created on the shared
context.
Features on the shared
context are shared across all contexts, unless there is a feature with the same name on a custom context.
The below table shows what would be the result when consuming a feature that was defined on different contexts:
shared only
shared
shared
definition
shared only
custom
shared
definition
custom only
shared
feature not found (error)
custom only
custom
custom definition
both shared and custom
shared
shared
definition
both shared and custom
custom
custom definition
Looking at the project folders, once created a new context via the Studio, a new folder will appear with the new context name, next to the shared
folder. New features that will be added to this context will be added to the relevant entity under that folder.