Merge lp:~danilo/summit/fix-plenaries into lp:summit
| Status: | Merged |
|---|---|
| Approved by: | Michael Hall on 2012-01-24 |
| Approved revision: | 261 |
| Merged at revision: | 262 |
| Proposed branch: | lp:~danilo/summit/fix-plenaries |
| Merge into: | lp:summit |
| Prerequisite: | lp:~cjohnston/summit/920751 |
| Diff against target: |
36 lines (+7/-3) 2 files modified
summit/schedule/render.py (+5/-1) summit/schedule/tests.py (+2/-2) |
| To merge this branch: | bzr merge lp:~danilo/summit/fix-plenaries |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Hall (community) | 2012-01-24 | Approve on 2012-01-24 | |
|
Review via email:
|
|||
Commit Message
Do not crash when multiple agendas are returned for the same time slot (eg. due to multiple plenary rooms).
Description of the Change
Do not crash if multiple agendas are returned for the same slot because of multiple plenary rooms. Alternatively, agenda_set could have been modified, but I decided for a quick and dirty fix atm.
This should allow some plenaries to be rendered, though the "algorithm" (i.e. return the first one returned from the DB) might not be the best one around.
There is also a chance that the test is not reliable since it depends on the order agenda_set.all() returns DB records, so it may intermittently fail. To fix that, we only need to ensure that the call passes without crashing and not check the return value.
| Tarmac WebDev (tarmac-webdev) wrote : | # |
The prerequisite lp:~chrisjohnston/summit/920751 has not yet been merged into lp:summit.

Okay for now, we need to revisit how we handle multiple plenaries throughout the codebase though