Skip to content
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

Merged
merged 25 commits into from
Feb 10, 2025
Merged

Event core data #880

merged 25 commits into from
Feb 10, 2025

Conversation

temi
Copy link
Contributor

@temi temi commented Oct 29, 2023

@chrisala PR has fix for recruitment protocol's individual count being sum of three columns. It also generates event core archive file.

temi added 14 commits August 25, 2022 11:22
added support for DwC-A Event Core
updated API with link to archive
3.9-EXTENDED-SNAPSHOT
added RequireApiKey to listHarvestDataResource action
reverted to @PreAuthorise annotation
reorder zip output to prevent read timeout
…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
@temi temi requested a review from chrisala February 6, 2025 04:52
grails-app/conf/application.groovy Outdated Show resolved Hide resolved
build.gradle Outdated Show resolved Hide resolved
@@ -48,6 +48,7 @@ class ProjectActivity {
MapLayersConfiguration mapLayersConfig
String surveySiteOption
boolean canEditAdminSelectedSites
boolean published
Copy link
Collaborator

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?

Copy link
Contributor Author

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)
Copy link
Collaborator

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

migrated to SPEL.

@temi
Copy link
Contributor Author

temi commented Feb 10, 2025

@chrisala CR comments have been addressed.

@chrisala chrisala merged commit a67d440 into dev Feb 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants