Commit e95697f
authored
[cuebot] Fix bug preventing dispatching with a single active show (AcademySoftwareFoundation#2327)
When there's only one active show, the logic to randomize show order
inadvertently removes it from the list, leading to a frozen queue.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Improved shuffle behavior so host dispatching now randomizes show
order correctly when shuffle is enabled.
* **Tests**
* Updated unit test expectations to reflect the corrected dispatch
behavior.
<!-- review_stack_entry_start -->
[](https://app.coderabbit.ai/change-stack/AcademySoftwareFoundation/OpenCue/pull/2327)
<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 5d62865 commit e95697f
2 files changed
Lines changed: 2 additions & 5 deletions
File tree
- cuebot/src
- main/java/com/imageworks/spcue/dao/postgres
- test/java/com/imageworks/spcue/test/dispatcher
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | 196 | | |
199 | 197 | | |
200 | 198 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
| 134 | + | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
| |||
0 commit comments