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

Reports improvements #1862

Merged
merged 19 commits into from
Feb 22, 2018
Merged

Reports improvements #1862

merged 19 commits into from
Feb 22, 2018

Conversation

Yating-L
Copy link
Collaborator

I did a couple of things to improve the reports for admins/instructors

  • Only a global admin can view annotator report. I added an instructor reports for instructor role.
  • Instructor report (1) groups annotators based on their user Groups; (2) enables an instructor to export the report to CSV/EXCEL/XML; (3) allows to use web service to export the report
  • Improve detail page: (1) show organism breakdown for individual annotators; (2) have time stamp for last updated
  • improved UI like hiding pagination if number of items < max, adding sort icon to sortable columns, adding explanation for icons in details page, and adding shadow to the buttons

* show annotators record in each userGroup owned/managed by the instructor
* For each userGroup, list group members and show their annotation records on each organisms that the userGroup has permission on
…nnotator

* modified instructor report, group annotators with userGroups, show organism breakdown as the same way to the annotator report
…roups (id or name) or export all qualified userGroups
* add dropdown menu to select a userGroup for instructor report
@ghost ghost assigned Yating-L Feb 21, 2018
@ghost ghost added the in progress label Feb 21, 2018
@@ -504,4 +547,94 @@ class AnnotatorController {
redirect(uri: "/auth/login")
}
}

def export() {
if(!params.max) params.max = 10
Copy link
Contributor

Choose a reason for hiding this comment

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

would do: params.max = params.max ?: 10

Will do the same thing roughly.

@nathandunn nathandunn self-requested a review February 21, 2018 21:45
@nathandunn
Copy link
Contributor

@Yating-L These changes look great (I had only one minor suggestion). I'll test it today or tomorrow to get it merged in properly.

@nathandunn nathandunn merged commit 266954f into GMOD:master Feb 22, 2018
@ghost ghost removed the in progress label Feb 22, 2018
@nathandunn
Copy link
Contributor

Tested and looks great. Thanks for all of the improvements.

@Yating-L
Copy link
Collaborator Author

Thank you for reviewing the request! @nathandunn

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