Fix flaky issue participants spec
What does this MR do and why?
In the past we fixed id/iis clashes between different instances !152649 (merged). Now we fix the problem when an issue's ID is the same as it's IID by making sure the entity's ID does not exist in any other record in the same table (by ID or IID)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
This one is easy to reproduce with a fresh test DB. So you would have to reset it first
WARNING: This is a destructive operation on your local env, so make sure you know you are targeting the right DB
- RAILS_ENV=test bin/rails db:reset
- bundle exec rspec spec/requests/api/issues/get_project_issues_spec.rb --seed 25042
Related to #444826 (closed)