major my_account refactor

Split query into three, so we can query patient, run and generic tables
This way, we can display the set name on recent analyses
7 jobs for feature-s/2951-my-account-stats in 13 minutes and 37 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test Tools
passed #819903
test_tools

00:00:10

 
  Test Quality
failed #819904
allowed to fail
code_quality

00:01:08

 
  Test Unit
passed #819905
web
test_server_unit

00:00:18

 
  Deploy Review
passed #819906
deploy_review_server

00:00:38

manual #819907
allowed to fail manual
stop_deploy_review_server
 
  Test Functional
passed #819908
docker x86_64
ff32-server-functional

00:06:53

passed #819909
docker x86_64
ff45-server-functional

00:06:05

 
Name Stage Failure
failed
code_quality Test Quality
	from /home/app/codeclimate-structure/lib/cc/engine/structure.rb:45:in `chdir'
from /home/app/codeclimate-structure/lib/cc/engine/structure.rb:45:in `run'
from bin/structure:37:in `<main>'
Could not analyze code quality for the repository at /code
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=30308 revision=1b659122 version=12.8.0
WARNING: gl-code-quality-report.json: no matching files
ERROR: No files to upload
ERROR: Job failed: exit status 1