-
Notifications
You must be signed in to change notification settings - Fork 510
Add display picture in participant list #6228
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
Add display picture in participant list #6228
Conversation
|
I'm getting this error when viewing the participant list: File "/home/troun/dev/indico/indico/modules/events/registration/controllers/display.py", line 230, in _process
tables = [self._merged_participant_list_table()]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/troun/dev/indico/indico/modules/events/registration/controllers/display.py", line 162, in _merged_participant_list_table
registrations = sorted(_deduplicate_reg_data(_process_registration(reg, column_names)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/troun/dev/indico/indico/modules/events/registration/controllers/display.py", line 144, in _deduplicate_reg_data
for reg_data in reg_data_iter:
File "/home/troun/dev/indico/indico/modules/events/registration/controllers/display.py", line 162, in <genexpr>
registrations = sorted(_deduplicate_reg_data(_process_registration(reg, column_names)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/troun/dev/indico/indico/modules/events/registration/controllers/display.py", line 139, in _process_registration
columns.append({'text': self._picture_url(reg), 'is_picture': True})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/troun/dev/indico/indico/modules/events/registration/controllers/display.py", line 129, in _picture_url
if reg.picture_data:
^^^^^^^^^^^^^^^^^
AttributeError: 'Registration' object has no attribute 'picture_data'There's no |
096c540 to
88c374e
Compare
|
I rebased it and fixed the bugs with which testing this PR was impossible. |
|
Please add a changelog entry: - Add the option to include the picture of a registration in the conference participant list
(:pr:`6228`, thanks :user:`vtran99`) |
3da74de to
ff1f557
Compare
|
I updated the code following your comments( fix display position, manage case other pictures, optimise query, add change log) and merged in new commit. |
99f7f59 to
138908d
Compare
- Move changelog to correct version - Do not generate image URL when there is no image - Do not render img with empty src - Make Forbidden errors more verbose - Fail nicely when there is no picture - Exclude image columns from sorting
138908d to
48f11b1
Compare
Request to add the display of picture in Participant List, which is currently missing.