summaryrefslogtreecommitdiff
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
* revert to earlier coding using a hard coded UNION ALL instead of ↵expired-ci-artifactsGreg Stark2018-02-091-6/+3
| | | | Gitlab::SQL::Union
* add rubocop whitelistGreg Stark2018-02-091-3/+3
|
* Revert to old code style where branches of the union do not have extra where ↵Greg Stark2018-02-091-18/+12
| | | | clauses on them
* WIP experimentGreg Stark2018-02-091-3/+9
|
* Add indexes and change SQL for expired artifacts to deal with artifacts ↵Greg Stark2018-02-081-4/+36
| | | | | | | | | | | | | | | | | | | | | | | migration efficiently Artifacts are in the middle of being migrated from ci_builds to ci_job_artifacts. The expiration date is currently visible in both of these tables and the test for whether an expired artifact is present for a job is complex as it requires checking both the of the tables. Add two new indexes, one on ci_builds.artifacts_expire_at and one on ci_job_artifacts.expire_at to enable finding expired artifacts efficiently. And until the migration is finished, replace the SQL for finding expired and non-expired artifacts with a hand-crafted UNION ALL based query instead of using OR. This overcomes a database optimizer limitation that prevents it from using these indexes. When the migration is finished the next version should remove this query and replace it with a much simpler query on just ci_job_artifacts. See https://gitlab.com/gitlab-org/gitlab-ce/issues/42561 for followup.
* Merge branch 'pawel/connect_to_prometheus_through_proxy-30480' into 'master'Robert Speicher2018-02-073-6/+104
|\ | | | | | | | | | | | | Deploy prometheus through kubernetes and autoconnect to cluster Closes #30480 and #28916 See merge request gitlab-org/gitlab-ce!16182
| * Fix order of checks in editable? method.Pawel Chojnacki2018-02-071-3/+4
| | | | | | | | + address small nitpicks
| * Make prometheus service querying approach much nicer wrt to arity and ↵Pawel Chojnacki2018-02-071-3/+4
| | | | | | | | default function params
| * Merge branch 'master' into pawel/connect_to_prometheus_through_proxy-30480Mike Greiling2018-02-0630-198/+272
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (242 commits) Validate user namespace before saving so that errors persist on model Reset Project's column information in spec/lib/gitlab/background_migration/populate_merge_request_metrics_with_events_data_spec.rb Explicitly set cwd in Sidekiq memory killer instead of depending on getcwd Downgrade google-protobuf Close low level rugged repository in project cache worker File upload UI obeys LFS filters Resolve "Add a link to documentation on how to get external ip in the Kubernetes cluster details page" Upgrade GitLab Workhorse to v3.6.0 Add sorting options for /users API (admin only) improvements from feedback [ci-skip] add changelog remove file after `Upload#destroy` Fix a hardcoded pipeline ID in a spinach step Override group sidebar links Replace "cluster" with "Kubernetes cluster" Reorder async/sync tasks in BuildFinishedWorker to read traces efficiently Fix tests for Drop filename enforcement Revert using expand_fixture_path in factory Revert "Add FixtureHelpers for FactoryGirl" Refactor :trace to :trace_live in spec ...
| * | use find_or_initialize to fetch prometheus_service instancePawel Chojnacki2018-02-061-1/+1
| | |
| * | remove unnecessary commentPawel Chojnacki2018-02-061-1/+0
| | |
| * | fix rubocop errors and ensure prometheus_installed? doesn't fail in CI tests ↵Mike Greiling2018-01-311-1/+2
| | | | | | | | | | | | where project is nil
| * | hide prometheus manual integration form when auto config is activeMike Greiling2018-01-311-10/+8
| | |
| * | change prometheus service description text to match designMike Greiling2018-01-311-1/+1
| | |
| * | Merge branch 'master' into pawel/connect_to_prometheus_through_proxy-30480Mike Greiling2018-01-316-68/+24
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (119 commits) [ci skip] Fix example commands to refer to the correct versions Use axios instead of jquery ajax for setCiStatusFavicon refactor groups controller to match EE Fix broken test Introduce a new QA::Gitlab::Page::Component::Dropzone class Gitaly Server info for admin panel Add note about being in the `qa` directory for `bin/qa` to work Remove N+1 queries with /projects/:project_id/{access_requests,members} API endpoints Fix not all events being shown in group dashboard Add support for PreReceiveError in UserMergeBranch RPC Migrate Git::Repository#delete_refs to Gitaly Replace $.get in render math with axios Move mr widget related links into a vue file Make those files as close as EE to reduce conflicts Don't assume postgresql in two initializers Move Repository#can_be_merged? to Gitlab::Git::Repository Remove brakeman from .codeclimate.yml since it's now covered by the sast CI job Update Nokogiri to 1.8.2 Ignore conflicts in db/schema.rb in Gitlab::EeCompatCheck Remove Rugged exception in cache rescue ...
| * | | Fix rubocopPawel Chojnacki2018-01-301-0/+1
| | | |
| * | | fix service generic testsPawel Chojnacki2018-01-301-4/+1
| | | |
| * | | Merge remote-tracking branch 'upstream/master' into ↵Pawel Chojnacki2018-01-2922-142/+194
| |\ \ \ | | | | | | | | | | | | | | | pawel/connect_to_prometheus_through_proxy-30480
| * | | | check if service is templatePawel Chojnacki2018-01-171-0/+1
| | | | |
| * | | | Merge remote-tracking branch 'upstream/master' into ↵Pawel Chojnacki2018-01-1732-172/+349
| |\ \ \ \ | | | | | | | | | | | | | | | | | | pawel/connect_to_prometheus_through_proxy-30480
| * | | | | Fix rubocop warningsPawel Chojnacki2018-01-041-3/+6
| | | | | |
| * | | | | Test Prometheus proxy client generationPawel Chojnacki2018-01-041-2/+7
| | | | | |
| * | | | | Cleanup PrometheusService testsPawel Chojnacki2018-01-041-4/+0
| | | | | |
| * | | | | Cleanup implementation and add cluster finding testsPawel Chojnacki2018-01-043-18/+19
| | | | | |
| * | | | | Add test checking if prometheus integration is enabled after prometheus is ↵Pawel Chojnacki2018-01-042-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | installed
| * | | | | Auto enable prometheus service if Prometheus is InstalledPawel Chojnacki2018-01-021-4/+6
| | | | | |
| * | | | | Manual Configuration instead of Activation. Prometheus Service just got a ↵Pawel Chojnacki2018-01-021-8/+28
| | | | | | | | | | | | | | | | | | | | | | | | bit weirder
| * | | | | Move client creation to Prometheus Application, manufacture proper rest clientPawel Chojnacki2018-01-022-34/+18
| | | | | |
| * | | | | wipPawel Chojnacki2018-01-023-7/+80
| | | | | |
* | | | | | Merge branch 'rd-35856-backport-lfs-file-locking-api' into 'master'Sean McGivern2018-02-073-0/+20
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport LFS File Locking API Closes #35856 See merge request gitlab-org/gitlab-ce!16935
| * | | | | | Backport of LFS File Locking APIrd-35856-backport-lfs-file-locking-apiRubén Dávila2018-02-073-0/+20
| | | | | | |
* | | | | | | Merge branch 'fix/reduce-number-of-ref-exists-calls' into 'master'Sean McGivern2018-02-071-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check for keep-around commits once if target and source projects are the same Closes #37439 and gitaly#1000 See merge request gitlab-org/gitlab-ce!16972
| * | | | | | Check for keep-around commits once if target and source projects are the sameAhmad Sherif2018-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reduces the number of RefExists RPC call.
* | | | | | | Merge branch '41209-ci-linter-fails-on-gitlab-ci-blob-viewer' into 'master'Kamil Trzciński2018-02-071-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "CI linter fails to work" Closes #41209 See merge request gitlab-org/gitlab-ce!16922
| * | | | | | | Handle all YAML parser exceptions in .gitlab-ci.yml (fixes #41209)41209-ci-linter-fails-on-gitlab-ci-blob-viewerDylan Griffith2018-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move the exception handling as close to the source as possible to avoid leaking Psych ahstraction - Also remove unnecessary rescue all statement from LintsController. This should not be necessary anymore since any YAML errors should all be caught by the #validation_message method.
* | | | | | | | Merge branch ↵Kamil Trzciński2018-02-072-0/+68
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '38265-stuckcijobsworker-wrongly-detects-cancels-stuck-builds-when-per-job-timeout-is-more-than-an-hour' into 'master' Resolve "StuckCiJobsWorker wrongly detects, cancels 'stuck' builds when per-job timeout is more than an hour" Closes #38265, #42196, and #42750 See merge request gitlab-org/gitlab-ce!16756
| * | | | | | | | Update RedisCacheable#cache_attribute_keyMatija Čupić2018-02-051-1/+1
| | | | | | | | |
| * | | | | | | | Save runner attributes only if there's changesMatija Čupić2018-02-051-1/+1
| | | | | | | | |
| * | | | | | | | Extract attribute caching to RedisCacheable concernMatija Čupić2018-02-052-35/+44
| | | | | | | | |
| * | | | | | | | Improve runner attribute cachineMatija Čupić2018-02-051-30/+22
| | | | | | | | |
| * | | | | | | | Merge branch 'master' into ↵Matija Čupić2018-02-0426-202/+134
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | | | | | | | | | | | | | | | | | | 38265-stuckcijobsworker-wrongly-detects-cancels-stuck-builds-when-per-job-timeout-is-more-than-an-hour
| * | | | | | | | Update list of allowed attribute updates in RunnerMatija Čupić2018-02-041-3/+11
| | | | | | | | |
| * | | | | | | | Refactor runner attribute caching implementationMatija Čupić2018-02-041-27/+44
| | | | | | | | |
| * | | | | | | | Handle updating only contacted_at runner cacheMatija Čupić2018-01-291-1/+1
| | | | | | | | |
| * | | | | | | | Make Ci::Runner#online? slightly more performantMatija Čupić2018-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a small refactor to avoid querying Redis when we know there's nothing in it.
| * | | | | | | | Expose Ci::Runner#cached_contacted_at as TimeMatija Čupić2018-01-291-1/+5
| | | | | | | | |
| * | | | | | | | Generelized cached attribute usage in runnerMatija Čupić2018-01-291-8/+19
| | | | | | | | |
| * | | | | | | | Move info update implementation to Ci::Runner modelMatija Čupić2018-01-291-3/+23
| | | | | | | | |
| * | | | | | | | Check cache in Ci::Runner#online?Matija Čupić2018-01-291-1/+8
| | | | | | | | |
* | | | | | | | | Merge branch '38175-add-domain-field-to-auto-devops-application-setting' ↵Kamil Trzciński2018-02-073-3/+12
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into 'master' Resolve "Add domain field to Auto DevOps application setting" Closes #38175 See merge request gitlab-org/gitlab-ce!16604