-
Notifications
You must be signed in to change notification settings - Fork 301
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
Development
: Fix issues in the user data export
#7084
Conversation
…assed and grade information in exam results if no grading scale exists and use exercise prefix for exercise directories to be consistent with exams
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.
Code looks very good to me. Just two very minor things.
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExerciseCreationService.java
Outdated
Show resolved
Hide resolved
src/test/java/de/tum/in/www1/artemis/course/CourseUtilService.java
Outdated
Show resolved
Hide resolved
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.
In general code looks good to me.
I left one comment and I've one suggestion: I would appreciate JavaDocs for Services. Although many of your services don't do this consistently, it would make sense to help other developers by including documentation.
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportCommunicationDataService.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportCreationService.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExamCreationService.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExamCreationService.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExamCreationService.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExamCreationService.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExerciseCreationService.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExerciseCreationService.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExerciseCreationService.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExerciseCreationService.java
Outdated
Show resolved
Hide resolved
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.
lgtm
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.
Overall code looks good. Found some inconsistencies in the doc comments.
src/main/java/de/tum/in/www1/artemis/domain/enumeration/DataExportState.java
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/domain/enumeration/DataExportState.java
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportCreationService.java
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportCreationService.java
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportCreationService.java
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/web/rest/DataExportResource.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/web/rest/DataExportResource.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/web/rest/DataExportResource.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/web/rest/DataExportResource.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/web/rest/DataExportResource.java
Outdated
Show resolved
Hide resolved
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.
Good improvements! Especially well done with all the new comments
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExerciseCreationService.java
Show resolved
Hide resolved
src/main/java/de/tum/in/www1/artemis/service/scheduled/DataExportScheduleService.java
Outdated
Show resolved
Hide resolved
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.
code
src/main/java/de/tum/in/www1/artemis/service/dataexport/DataExportExerciseCreationService.java
Outdated
Show resolved
Hide resolved
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.
Code
a6a8263
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.
new changes lgtm
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.
good changes
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.
Reapprove code after cronjob was changed to value for production
Development
: Small improvements for the data exportDevelopment
: Fix issues in the user data export
Checklist
General
Server
Client
authorities
to all new routes and checked the course groups for displaying navigation elements (links, buttons).Motivation and Context
I still had a couple of small things to improve for the data export on my list and I wanted to address them.
Additionally, while testing this feature on production, it turned out that the current download solution is not viable because the export can become quite large and the download fails because it runs into timeouts.
Moreover, this PR fixes a small issue that we no longer include exam information whether an exam was passed and with which grade if no gradingscale for this exam is defined.
Description
Steps for Testing
For testing purposes, data exports are created every 5 min, after ~ 5 minutes just reload the page again. You also receive a webapp notification and also an email (but most likely you do not have access to the email address of the user)
You can only request a data export if there has not been requested one for your user in the last 14 days.
Prerequisites:
Review Progress
Performance Review
Code Review
Manual Tests
Test Coverage
Server
Client