Remove N+1 query for project and group boards

- Add test for N+1 queries
- Add destroyable lists scope to Board and List
- Preload lists for both project and group boards
101 jobs for 63212-n-1-queries-in-projects-id-boards-api in 66 minutes and 34 seconds (queued for 9 seconds)
Status Job ID Name Coverage
  Build
manual #232223646
gitlab-org allowed to fail manual
review-docs-deploy-manual
 
  Prepare
passed #232223647
gitlab-org
compile-assets

00:09:27

passed #232223649
gitlab-org
retrieve-tests-metadata

00:01:53

passed #232223648
gitlab-org
setup-test-env

00:04:52

 
  Test
passed #232223728
docker gitlab-org
build-qa-image

00:04:59

passed #232223659
allowed to fail
code_quality

00:07:03

passed #232223730
gitlab-org
danger-review

00:01:57

passed #232223721
gitlab-org
db:check-schema-pg

00:03:04

passed #232223720
gitlab-org
db:migrate:reset-mysql

00:04:56

passed #232223719
gitlab-org
db:migrate:reset-pg

00:03:24

passed #232223725
gitlab-org
db:rollback-mysql

00:05:00

passed #232223724
gitlab-org
db:rollback-pg

00:03:31

passed #232223661
allowed to fail
dependency_scanning

00:09:00

passed #232223650
gitlab-org
docs lint

00:02:41

passed #232223717
gitlab-org
downtime_check

00:02:51

passed #232223718
gitlab-org
ee_compat_check

00:04:04

passed #232223651
gitlab-org docker
gitlab:assets:compile

00:21:52

passed #232223727
gitlab-org
gitlab:setup-mysql

00:05:32

passed #232223726
gitlab-org
gitlab:setup-pg

00:04:48

passed #232223731
gitlab-org
gitlab_git_test

00:01:09

passed #232223653
gitlab-org
jest

00:16:29

passed #232223652
gitlab-org
karma

00:10:06

54.71%
passed #232223733
gitlab-org
lint-ci-gitlab

00:01:01

passed #232223723
gitlab-org
migration:path-mysql

00:18:12

passed #232223722
gitlab-org
migration:path-pg

00:17:44

passed #232225062
gitlab-org
no_ee_check

00:02:03

passed #232223657
gitlab-org
qa-frontend-node:10

00:13:14

passed #232223656
gitlab-org
qa-frontend-node:8

00:13:27

passed #232223658
gitlab-org allowed to fail
qa-frontend-node:latest

00:11:47

passed #232223654
gitlab-org
qa:internal

00:03:57

passed #232223655
gitlab-org
qa:selectors

00:04:00

passed #232223729
allowed to fail manual
review-build-cng

00:13:43

passed #232223682
gitlab-org
rspec integration pg 1/6

00:14:49

passed #232223683
gitlab-org
rspec integration pg 2/6

00:16:10

passed #232223684
gitlab-org
rspec integration pg 3/6

00:16:08

passed #232223685
gitlab-org
rspec integration pg 4/6

00:16:42

passed #232223686
gitlab-org
rspec integration pg 5/6

00:15:34

passed #232223687
gitlab-org
rspec integration pg 6/6

00:16:34

passed #232223688
gitlab-org
rspec system pg 1/24

00:13:53

passed #232223697
gitlab-org
rspec system pg 10/24

00:12:05

passed #232223698
gitlab-org
rspec system pg 11/24

00:11:28

passed #232223699
gitlab-org
rspec system pg 12/24

00:14:13

passed #232223700
gitlab-org
rspec system pg 13/24

00:14:05

passed #232223701
gitlab-org
rspec system pg 14/24

00:13:20

passed #232223704
gitlab-org
rspec system pg 15/24

00:11:00

passed #232223706
gitlab-org
rspec system pg 16/24

00:13:13

passed #232223707
gitlab-org
rspec system pg 17/24

00:14:23

passed #232223708
gitlab-org
rspec system pg 18/24

00:15:43

passed #232223709
gitlab-org
rspec system pg 19/24

00:12:36

passed #232223689
gitlab-org
rspec system pg 2/24

00:15:57

passed #232223710
gitlab-org
rspec system pg 20/24

00:13:51

passed #232223711
gitlab-org
rspec system pg 21/24

00:12:04

passed #232223712
gitlab-org
rspec system pg 22/24

00:11:58

passed #232223713
gitlab-org
rspec system pg 23/24

00:11:13

passed #232223714
gitlab-org
rspec system pg 24/24

00:12:21

passed #232223690
gitlab-org
rspec system pg 3/24

00:12:15

passed #232223691
gitlab-org
rspec system pg 4/24

00:11:19

passed #232223692
gitlab-org
rspec system pg 5/24

00:14:31

passed #232223693
gitlab-org
rspec system pg 6/24

00:13:53

passed #232223694
gitlab-org
rspec system pg 7/24

00:11:43

passed #232223695
gitlab-org
rspec system pg 8/24

00:12:12

passed #232223696
gitlab-org
rspec system pg 9/24

00:13:33

passed #232223662
gitlab-org
rspec unit pg 1/20

00:14:03

passed #232223671
gitlab-org
rspec unit pg 10/20

00:12:50

passed #232223672
gitlab-org
rspec unit pg 11/20

00:14:11

passed #232223673
gitlab-org
rspec unit pg 12/20

00:14:55

passed #232223674
gitlab-org
rspec unit pg 13/20

00:14:21

passed #232223675
gitlab-org
rspec unit pg 14/20

00:17:44

passed #232223676
gitlab-org
rspec unit pg 15/20

00:14:17

passed #232223677
gitlab-org
rspec unit pg 16/20

00:17:18

passed #232223678
gitlab-org
rspec unit pg 17/20

00:14:49

passed #232223679
gitlab-org
rspec unit pg 18/20

00:14:16

passed #232223680
gitlab-org
rspec unit pg 19/20

00:16:08

passed #232223663
gitlab-org
rspec unit pg 2/20

00:13:49

passed #232223681
gitlab-org
rspec unit pg 20/20

00:15:27

passed #232223664
gitlab-org
rspec unit pg 3/20

00:13:29

passed #232223665
gitlab-org
rspec unit pg 4/20

00:11:14

passed #232223666
gitlab-org
rspec unit pg 5/20

00:12:58

passed #232223667
gitlab-org
rspec unit pg 6/20

00:14:31

passed #232223668
gitlab-org
rspec unit pg 7/20

00:15:52

passed #232223669
gitlab-org
rspec unit pg 8/20

00:15:13

passed #232223670
gitlab-org
rspec unit pg 9/20

00:18:17

passed #232223715
gitlab-org
rspec-fast-spec-helper

00:04:56

failed #232223660
allowed to fail
sast

00:32:10

passed #232223716
gitlab-org
static-analysis

00:14:30

failed #232223732
gitlab-org
no_ee_check

00:00:55

 
  Review
manual #232223734
allowed to fail manual
package-and-qa
passed #232223735
gitlab-org allowed to fail
review-deploy

00:06:23

passed #232223736
gitlab-org allowed to fail manual
review-stop

00:09:23

 
  Qa
passed #232223748
docker gitlab-org allowed to fail
review-performance

00:02:43

manual #232223738
docker gitlab-org allowed to fail manual
review-qa-all 1/5
manual #232223740
docker gitlab-org allowed to fail manual
review-qa-all 2/5
manual #232223743
docker gitlab-org allowed to fail manual
review-qa-all 3/5
manual #232223745
docker gitlab-org allowed to fail manual
review-qa-all 4/5
manual #232223747
docker gitlab-org allowed to fail manual
review-qa-all 5/5
passed #232223737
docker gitlab-org allowed to fail
review-qa-smoke

00:02:57

 
  Post Test
passed #232223751
gitlab-org
coverage

00:05:02

95.69%
failed #232223752
gitlab-org allowed to fail
flaky-examples-check

00:01:52

passed #232223750
gitlab-org
jsdoc

00:02:32

passed #232223749
gitlab-org
lint:javascript:report

00:02:44

 
  Post Cleanup
manual #232223753
gitlab-org allowed to fail manual
review-docs-cleanup
 
Name Stage Failure
failed
flaky-examples-check Post Test
    "first_flaky_at": "2019-06-17 01:14:52 +0000",
"last_flaky_at": "2019-06-17 01:14:52 +0000",
"last_flaky_job": "https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/232223711"
}
}
Running after script...
$ date
Mon Jun 17 01:54:26 UTC 2019
ERROR: Job failed: exit code 1
failed
sast Test
2019/06/17 01:41:51 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2019/06/17 01:41:51 Timeout when running the analyzer
Running after script...
$ date
Mon Jun 17 01:41:57 UTC 2019
Uploading artifacts...
WARNING: gl-sast-report.json: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1