Merge lp://qastaging/~mhall119/summit/linaro-attendee-import into lp://qastaging/summit
Proposed by
Michael Hall
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Chris Johnston | ||||
Approved revision: | 365 | ||||
Merged at revision: | 366 | ||||
Proposed branch: | lp://qastaging/~mhall119/summit/linaro-attendee-import | ||||
Merge into: | lp://qastaging/summit | ||||
Diff against target: |
127 lines (+123/-0) 1 file modified
summit/common/management/commands/linaro-import.py (+123/-0) |
||||
To merge this branch: | bzr merge lp://qastaging/~mhall119/summit/linaro-attendee-import | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Johnston | Approve | ||
Review via email:
|
Commit message
Management command for importing Linaro attendees
Description of the change
Management command for importing Linaro attendees from a spreadsheet
exported to csv.
Example:
manage.py linaro-import -s lcq1-12 -f linaro_
To post a comment you must log in.
Hi Michael, thanks for working on this.
The output format that we are going to get is along the lines of:
display_ name,launchpad_ url,launchpad_ username /login. launchpad. net/+id/ mtFCc43","danilo" /login. launchpad. net/+id/ xxxxxxx",""
"Danilo Šegan","https:/
"Someone Else","https:/
...
I am asking to get it extended to have 'attendance_ from_date' , 'attendance_ from_time' , 'attendance_ to_date' and 'attendance_ to_time' fields as well, so we can use these for the Attendees records and their Start/End values. It's not necessary to support this right away, so you can just ignore those values if it's too much effort right now, and then we can add the support for that later on.
launchpad_url is the OpenID auth link, and launchpad_username is the LP username if a person has LP account, or empty otherwise. When it's empty, we can generate an arbitrary username just so the django-auth data model is satisfied, and when somebody registers on Launchpad, next time they log in to Summit, their username will be pulled according to django-openid-auth settings on Summit.
Note that header line is included, I hope that's not a big deal. We can ask to get it removed if it is.