Fix flaky create work item spec
What does this MR do and why?
We already tried to fix this flaky spec in !165082 (merged), but today I got in in one of my MRs consistently https://gitlab.com/gitlab-org/gitlab/-/jobs/8387064365
I also see we have new occurrences in #502389 (closed)
I have confirmed we actually use an order in the DB when paginating linked items, with a query like the following
SELECT
issues.*,
issue_links.id AS issue_link_id,
issue_links.link_type as issue_link_type_value,
issue_links.target_id as issue_link_source_id,
issue_links.created_at as issue_link_created_at,
issue_links.updated_at as issue_link_updated_at
FROM
"issues"
INNER JOIN issue_links ON (
issue_links.source_id = issues.id
AND issue_links.target_id = 439
)
OR (
issue_links.target_id = issues.id
AND issue_links.source_id = 439
)
ORDER BY
"issue_links"."id" DESC
LIMIT
101
References
Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
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.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After |
|---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Related to #502389 (closed)