Follow-up from "Real time pipeline show action"
The following discussion from !10777 (merged) should be addressed:
-
@ayufan started a discussion: To be fair we are not testing here a number of queries, as we have a pipeline with one job.
We should have a pipeline with at least 4 stages and at least 4 groups to make this test accurate.
We should have then 2-3 queries, instead of 16.
Please create an ~"technical debt" out of that comment.
The test needs to protect us agains N + 1 queries, however, the pipeline is too small to be representable. Also, the amount of queries has a relation to the number of groups it has. This can't be avoided however, as the job groups are not persisted in the database.