-
Notifications
You must be signed in to change notification settings - Fork 4
Base4 Onboarding
- Identify and create account and group structure
- Create a
core-account
model in productionradix
database if one does not exist. - Create a
core-application
model in productionradix
database. Start from existing model.-
publicKey
must be unique -- use a generator - Ensure
account
is linked to the propercore-account
model.
-
- Create
core-application-user
rels for managing users
- Create a
db.getCollection('core-user').forEach(function(user) {
db.getCollection('core-application').forEach(function(application) {
var doc = { roles: ['USER'], application: application.id, user: user._id };
db.getCollection('core-application-user').update(doc, doc, { upsert: true });
})
})
- Set up initial database structure
APP={account.key}:{application.key} bin/console as3:modlr:schema:create
Insert base models to get a working radix instance.
var fromDb = db.getSiblingDB('radix-acbm-fcp');
var toDb = db.getSiblingDB('radix-ACCOUNT-APP');
var colls = ['form-definition', 'form-field'];
// Wipe out anything that might exist already
colls.forEach(name => toDb.getCollection(name).remove({}));
// Insert all docs from fromDb collection
colls.forEach(name => fromDb.getCollection(name).find({}).forEach(doc => toDb.getCollection(name).insert(doc)))
Update the integration-service
model with the correct values for name
, appId
, brandKey
, clientKey
, inputId
, accountBehaviorId
, and identityBehaviorId
fields.
These values can generally be found either in existing (merrick) configuration, or via the Omeda brand data API
Set up newsletters in the Radix UI. Ensure that a newsletter is created for each existing (merrick /reg/newsletter
) email deployment. These might need to have the mongo IDs match
Extract omeda questions from API, compared with merrick questions from regv2 forms. Create/update questions as needed and add to forms
There are four types of Omeda integrations that need to be configured.
details
details
details
details
Once the integrations have been set up and the data is in place for the questions, run the omeda question pull sync to bring in the correct answers for Omeda questions.
bin/console app:integration:question-pull