I think this filter was working before we upgraded to postgresql 12. Since then it has only been working for user IDs and there is an error if we try to user usename or email in queries:
cat@dev:~$ gxadmin query jobs-per-user cat
ERROR: invalid input syntax for type integer: "cat"
LINE 6: ...xy_user.username = 'cat' or galaxy_user.id = CAST('cat' AS I...
This PR is adding a REGEXP_REPLACE so that anything that cannot be cast to integer will be replaced with '-1' before the cast.
I think this filter was working before we upgraded to postgresql 12. Since then it has only been working for user IDs and there is an error if we try to user usename or email in queries:
This PR is adding a REGEXP_REPLACE so that anything that cannot be cast to integer will be replaced with '-1' before the cast.