Began rebuilding computation engine to be dependency graph centric
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
import SimpleSchema from 'simpl-schema';
|
||||
import VARIABLE_NAME_REGEX from '/imports/constants/VARIABLE_NAME_REGEX.js';
|
||||
import STORAGE_LIMITS from '/imports/constants/STORAGE_LIMITS.js';
|
||||
import createPropertySchema from '/imports/api/properties/subSchemas/createPropertySchema.js';
|
||||
|
||||
let ClassLevelSchema = new SimpleSchema({
|
||||
let ClassLevelSchema = createPropertySchema({
|
||||
name: {
|
||||
type: String,
|
||||
optional: true,
|
||||
max: STORAGE_LIMITS.name,
|
||||
},
|
||||
// Only used by slot filling dialog, not computed
|
||||
description: {
|
||||
type: String,
|
||||
optional: true,
|
||||
max: STORAGE_LIMITS.description,
|
||||
},
|
||||
description: {
|
||||
type: 'inlineCalculationFieldToCompute',
|
||||
optional: true,
|
||||
},
|
||||
// The name of this class level's variable
|
||||
variableName: {
|
||||
type: String,
|
||||
@@ -25,13 +25,6 @@ let ClassLevelSchema = new SimpleSchema({
|
||||
type: SimpleSchema.Integer,
|
||||
defaultValue: 1,
|
||||
},
|
||||
nextLevelTags: {
|
||||
type: Array,
|
||||
defaultValue: [],
|
||||
},
|
||||
'nextLevelTags.$': {
|
||||
type: String,
|
||||
},
|
||||
// Same as in SlotFillers.js
|
||||
slotFillerCondition: {
|
||||
type: String,
|
||||
|
||||
Reference in New Issue
Block a user