-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[V3] wrong sorting #5287
Comments
I found out that the single room on top of the list starting with a For the other things: if I execute I can mitigate this issue if I execute By the way, I found an interesting quote: It is worth noting that for data comparisons, PostgreSQL is case sensitive and there is no option to change this behaviour. You will have to force data to upper or lower on both sides of text comparisons if case is not important to the operation and there is a chance of it being different. This conversion might be a good time to force data used in joins and comparisons to all upper or lower case. Edit: I found out why Postgres threats both special characters differently.
This explains the strange sort order, also for both special characters. I would recommend to at least implement the I'll keep on searching why the dates are sorted in a wrong order as apparent in my second answer. |
I also found out why the dates are not ordered as given in the screenshot above. The sorting generally works, however, there is a single "point" in the list of rooms where the rooms get out of the sort order. The rooms are generated in this piece of code, I guess: greenlight/app/controllers/api/v1/admin/server_rooms_controller.rb Lines 34 to 35 in d25819b
So I ran the query manually in postgres:
The part of the result set which corresponds with the screenshot above is this one:
The relevant part is the I am not sure what exactly the semantic of the It is possible that this value is set to |
Good investigation 👍 |
We will be starting to work on a Rake task to sync the meeting status in the upcoming days. |
@scouillard I found a way to create a way more consistent result for the user. The docker container has all required components, so no additional software has to be installed. If you change the query to:
the result set now looks like the following:
For me, this is a perfect and consistent result set, way more than my previously proposed solution to just implement the |
If I sort the room overview with the down arrow the sorting is wrong:
The text was updated successfully, but these errors were encountered: