Skip to content
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

Fix ticket_assigned_to filter in SQL query #840

Closed
wants to merge 2 commits into from
Closed

Fix ticket_assigned_to filter in SQL query #840

wants to merge 2 commits into from

Conversation

o-psi
Copy link
Contributor

@o-psi o-psi commented Dec 22, 2023

This pull request fixes the ticket_assigned_to filter in the SQL query. Previously, the filter was using the LIKE operator with a wildcard at the beginning and end of the filter value. This caused incorrect results when searching for specific users, as you would want. The fix removes the wildcard at the beginning and end of the filter value, ensuring accurate filtering based on the assigned_to field.

@wrongecho
Copy link
Collaborator

Test these changes at: https://FixforuserIDsintickets840.pr-review.itflow.org
(automatic message)

@o-psi
Copy link
Contributor Author

o-psi commented Dec 22, 2023

I am user ID 1, any technician that has a 1 in their ID shows up in my "My Tickets", so 10-19, 21, 31....

This fixes that issue.

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@o-psi o-psi closed this Dec 22, 2023
@o-psi o-psi deleted the Fix-for-user-IDs-in-tickets branch January 10, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants