Hey @atria.
All 3.x CHT versions (even up to 3.11) continue to support the rules.nools.js code. That link is for a private (internal) repository, sorry about that! We will fix it.
In the meantime, here is a relevant link for Living Good’s required schema changes. I believe you have access to that?
In case you don’t, or for other external users who don’t have access to that repository – here is a summary of the changes. There are only additions to the standard “rules.nools.js” template that is commonly used (including by most apps I’ve seen from LG). In the below blockquotes, I’ve added // THIS LINE IS NEW
where changes are required.
define Target {
_id: null,
contact: null, // THIS LINE IS NEW
deleted: null,
type: null,
pass: null,
date: null
}
define Task {
_id: null,
deleted: null,
doc: null,
contact: null,
icon: null,
date: null,
readyStart: null, // THIS LINE IS NEW
readyEnd: null, // THIS LINE IS NEW
title: null,
fields: null,
resolved: null,
priority: null,
priorityLabel: null,
reports: null,
actions: null
}
return new Task({
_id: contact.contact._id + ‘-’ + schedule.id,
deleted: (contact.contact ? contact.contact.deleted : false) || (report ? report.deleted : false),
doc: contact,
contact: contact.contact,
icon: schedule.icon,
priority: schedule.description ? ‘high’ : null,
priorityLabel: schedule.description ? schedule.description : ‘’,
date: null,
readyStart: schedule.start, // THIS LINE IS NEW
readyEnd: schedule.end, // THIS LINE IS NEW
title: schedule.title,
resolved: false,
actions:
});
return new Target({
_id: report._id + ‘-’ + type + ‘-’ + index,
contact: c.contact, // THIS LINE IS NEW
deleted: !!report.deleted,
type: type,
pass: pass,
date: report.reported_date
});
The move to v3.8 is mostly smooth for those using the declarative configuration systems, but since nools.rules.js is very “free-form” there may be some scenarios that are more negatively affected by the upgrade. I recommend testing the system well before upgrading. Ensure that you are familiar with the breaking changes which happened in that version and hit us up with any questions.