-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event core data #880
Event core data #880
Conversation
…dr entry - enabled access to APIs with JWT token
- added expression evaluator to generate value of an attribute in a record - added test cases for checking event core archive and expression evaluation
- better multimedia data extraction
grails-app/controllers/au/org/ala/ecodata/HarvestController.groovy
Outdated
Show resolved
Hide resolved
@@ -48,6 +48,7 @@ class ProjectActivity { | |||
MapLayersConfiguration mapLayersConfig | |||
String surveySiteOption | |||
boolean canEditAdminSelectedSites | |||
boolean published |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we'd use the "publicationStatus" flag here for consistency with MERIT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, this flag was added long back in BioCollect but never added to domain object. Will add as a tech debt.
context.metadata = metadata | ||
data.context = context | ||
def binding = new Binding(data) | ||
GroovyShell shell = new GroovyShell(binding) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be more comfortable if we could find a more limited expression evaluator here. Having a full GroovyShell evaluate expressions seems to be asking for a future security issue. Would SpEL be sufficient for this use case? (this would also facilitate a move to spring boot at some future point in time)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
migrated to SPEL.
@chrisala CR comments have been addressed. |
@chrisala PR has fix for recruitment protocol's individual count being sum of three columns. It also generates event core archive file.