Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/compilation/validate-declarative-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const TargetSchema = joi.array().items(
.optional()
.error(targetError('idType should be either "report" or "contact" or "function(contact, report)"')),
aggregate: joi.boolean().optional(),
limit_count_to_goal: joi.boolean().optional(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this property name is quite verbose. I would rather keep it shorter like limit_count or max_count, but this is not very important.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the limit_count_to_goal is more helpful at explaining what the limit is, and I've kept it as is, but please let me know if you want it changed. If so, I'll also need to update the other PRs.

})
)
.unique('id')
Expand Down
1 change: 1 addition & 0 deletions src/lib/parse-targets.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ module.exports = projectDir => {
'dhis',
'visible',
'aggregate',
'limit_count_to_goal',
])),
};
};
Loading