-
Notifications
You must be signed in to change notification settings - Fork 18
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
ActiveRecord::StatementInvalid when sorting by the "Arguments" column #28
Comments
Ah, right...not sure what is the solution to that. Some history for you. Thoughts? Maybe we could detect the column type, and based on that have different behavior? Maybe there is a way to cast that into string then do the sort of it? I personally never faced that, but it would make sense to fix it somehow while keeping it as-is for people with and |
Ah, gotcha. Might be simplest to just take the sort off of that column completely, since the actual data can be completely arbitrary based on whatever the end user is passing to their job classes, right? In newer Postgreses you can slice and dice the JSON structure but that doesn't do you any good if you can't predict the structure ahead of time. Up to you folks though. |
@smatthieu @ukd1 are you sorting by args ever? |
Hrm.. |
No. Removing the sort column for this makes the most sense I think. |
👍 |
Visit http://localhost:3000/queue_classic_admin/queue_classic_jobs?dir=asc&sort=args to reproduce.
Full stacktrace: https://gist.github.com/abevoelker/b00d55553222057bc0bd
This is with Postgres 9.3.5.
The text was updated successfully, but these errors were encountered: