-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Standardize column names in csv exports #3011
Conversation
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.
Scoresheet csv's should also be updated.
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 think we need to standardize more:
- The series/course export use
User.human_attribute_name
for some column names, meaning they are translated and converted to "human" names, but not for all columns (e.g.labels
). - The export and evaluation exports don't use the human_attribute stuff, so there the labels are as they are in the source code.
For example, the columns in the series export in Dutch are:
"Id","Gebruikersnaam","Voornaam","Familienaam","Email","labels","Reeks 7", ...
While the grade export is:
"id","username","last_name","first_name","full_name","email","labels","Total Score", ...
So should we omit the |
@@ -192,15 +192,18 @@ def scoresheet | |||
format.js | |||
format.json | |||
format.csv do | |||
sheet = CSV.generate do |csv| | |||
csv << [I18n.t('series.scoresheet.explanation')] |
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 don't think this and the other explanation string are used in other places, so they can be removed from the locales files.
This pull request implements a more consistent csv header format that at least contains the columns
id
,username
,last_name
,first_name
,email
andlabels
.Closes #2801.