mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Earlier, in `get_raw_unread_data` the ordering was applied inside the CTE. Once we leave the CTE scope and do a join, SQL makes no promise about preserving the row order unless we re-specify ORDER BY in the outer query. Since, there was no ORDER BY clause in the outer query it was resulting in a random ordering of the entries. This bug was caught by `test_unreads_case_insensitive_topics` failing in a flaky way. This commit fixes the bug. |
||
|---|---|---|
| .. | ||
| actions | ||
| data_import | ||
| integration_fixtures/nagios | ||
| lib | ||
| management | ||
| migrations | ||
| models | ||
| openapi | ||
| tests | ||
| tornado | ||
| transaction_tests | ||
| views | ||
| webhooks | ||
| worker | ||
| __init__.py | ||
| apps.py | ||
| context_processors.py | ||
| decorator.py | ||
| filters.py | ||
| forms.py | ||
| logging_handlers.py | ||
| middleware.py | ||
| signals.py | ||