-
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
#1422, #1433 #766
#1422, #1433 #766
Conversation
…roject id when generating download Increased params.max to 20000
grails-app/services/au/org/ala/ecodata/ElasticSearchService.groovy
Outdated
Show resolved
Hide resolved
src/main/groovy/au/org/ala/ecodata/reporting/CSProjectXlsExporter.groovy
Show resolved
Hide resolved
grails-app/controllers/au/org/ala/ecodata/SearchController.groovy
Outdated
Show resolved
Hide resolved
… if a user has a specified roles in a project
addresses activity slowness
added a test case
def isUserMemberOfProject() { | ||
String userId = params.userId | ||
String projectId = params.projectId | ||
String roles = params.roles ?: "admin,caseManager,moderator,editor,projectParticipant" |
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.
Rather than hard-coding the strings here, it would be better to use the AccessLevel enum to derive them. It would also be more http idomatic to use params.getList() and send it from biocollect in the form &roles=admin&roles=moderator etc.
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.
WIthout understanding how it's used in biocollect, an alternative would be to use "findUserPermission(userId, projectId)" and do the role processing on the client side.
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.
Changed.
Doing on client side was causing BioCollect to be really slow on projects with large number of members. Moved BioCollect functionality to ecodata to address this issue.
No description provided.