server: Set reply sorting to 'oldest'#1035
Conversation
|
Thank you for addressing the feedback. Please squash your commits and give the resulting commit a more descriptive title/body, such as You also checked in an updated |
|
Fixed up as requested |
|
@ix5 do you plan to merge and release this? Thanks 🙏🏻 |
|
Sorry for leaving this in limbo for so long. @ggtylerr would you mind updating the tests to reflect the new sorting? Thank you! |
|
Hi @ggtylerr any news on this? |
|
Hi, sorry, I didn't get any notification for this when ix5 replied for some reason. I'll update it whenever I'm off my shift today. |
|
I fetched upstream, cleared the merge conflict and updated the tests. Everything seems to work when I run it with nektos act, although I can't run isso itself since pip isn't letting me pull misaka. One thing to note is that (Also I cannot for the life of me figure out how to squash nicely w/ the merge commit, I'm sorry 😢) |
There was a problem hiding this comment.
Pull Request Overview
This PR changes the default sorting behavior for comment replies to always use "oldest first" ordering, addressing user confusion about reply sorting inconsistencies. The change affects both the database query logic and client-side behavior.
Key changes:
- Modified SQL queries to force replies to always sort by creation time in ascending order
- Updated tests to reflect the new oldest-first reply ordering
- Added documentation noting that replies are always sorted oldest-first as of version 0.13.1
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| isso/db/comments.py | Modified SQL ORDER BY clauses to ensure replies are always sorted by creation time |
| isso/tests/test_comments.py | Updated test expectations to match new oldest-first reply sorting behavior |
| docs/docs/reference/client-config.rst | Added documentation note about forced oldest-first reply sorting |
| CHANGES.rst | Added changelog entry for the reply sorting fix |
|
LGTM. I'll wait a few days to give @ix5 a chance to object. I'll merge otherwise. |
|
@jelmer Do you plan to cut a release including this change? |
|
We should do another release at some point; first we should fix the failing tests though. |
|
Sorry for the late reply, updated PR now LGTM. @ggtylerr you can do a rebase including a squash of superfluous merge/editing commits, that's the way I'd recommend at least. |
It's uh, already merged though 😅 I probably should've said to just use the squash + merge option in GH before it got merged, but it's whatever |
No worries, just format your updated commit history correctly next time. |

Checklist
CHANGES.rstbecause this is a user-facing change or an important bugfixWhat changes does this Pull Request introduce?
Quick SQL patch to fix #1026
Why is this necessary?
Current reply sorting leads to confusion. See linked issue for details.
NOTE: I tested this briefly and it seems to be working (and of course unit tests pass) but I wasn't sure if the sorting option was actually going through. Hard to tell on the demo page. Will probably test tmrw over curl.