Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-05-21Merge branch 'fix/gb/exclude-persisted-variables-from-environment-name' into ↵Grzegorz Bizon
'master' Do not allow to use `CI_PIPELINE_ID` in environment name Closes #46443 See merge request gitlab-org/gitlab-ce!19032
2018-05-21Merge branch '46082-runner-contacted_at-is-not-always-a-time-type' into 'master'Kamil Trzciński
Resolve "Runner#contacted_at is not always a Time type" Closes #46082 See merge request gitlab-org/gitlab-ce!18810
2018-05-21Merge branch '46454-wrong-value-in-ci-deploy-user' into 'master'Kamil Trzciński
Resolve "CI/CD jobs: Wrong value in env. variable CI_DEPLOY_USER using <gitlab-deploy-token> deploy token" Closes #46454 See merge request gitlab-org/gitlab-ce!19047
2018-05-21Remove unnecessary `with` from `allow`Shinya Maeda
2018-05-21Add spec for unathrozied proxy_urlShinya Maeda
2018-05-18Merge branch 'gitaly-1182-search-by-content-name' into 'master'Robert Speicher
Migrate Repo#search_by_{content,name} to Gitaly See merge request gitlab-org/gitlab-ce!18750
2018-05-18Fixes deploy tokens build variablesMayra Cabrera
It was using name, instead of username. Fixes documentation as well Closes #46454
2018-05-18Update pipeline persisted / predefined variables specsGrzegorz Bizon
2018-05-18Separate persisted and runtime pipeline variablesGrzegorz Bizon
2018-05-18Merge branch 'fix/gb/not-allow-to-trigger-skipped-manual-actions' into 'master'Kamil Trzciński
Do not allow to trigger manual actions that were skipped Closes #42589 See merge request gitlab-org/gitlab-ce!18985
2018-05-18Migrate RepositoryService#SearchFilesBy{Content,Name}Kim "BKC" Carlbäcker
2018-05-18Do not allow to use `CI_PIPELINE_ID` in environment nameGrzegorz Bizon
2018-05-17Merge branch '46193-fix-big-estimate' into 'master'Rémy Coutable
Resolve "Estimating a large amount results in a server error 500" Closes #46193 See merge request gitlab-org/gitlab-ce!18964
2018-05-17Fixes 500 error on /estimate BIG_VALUEJacopo
2018-05-17Fix: Use case in-sensitive ordering by name for groupsHarish Ved
2018-05-17Merge branch 'pipelines-index-performance' into 'master'Grzegorz Bizon
Improve performance of Projects::PipelinesController#index See merge request gitlab-org/gitlab-ce!18427
2018-05-17Merge branch '46177-fix-present-on-generic-commit-status' into 'master'Grzegorz Bizon
Resolve "NoMethodError: undefined method `present' for #<GenericCommitStatus:0x00007f6eacf34a40>" Closes #46177 See merge request gitlab-org/gitlab-ce!18979
2018-05-17Preload pipeline data for project pipelinesYorick Peterse
When displaying the pipelines of a project we now preload the following data: 1. Authors of the commits that belong to these pipelines 2. The number of warnings per pipeline, which is used by Ci::Pipeline#has_warnings? == Commit Authors Previously this data was queried for every Commit separately, leading to 20 SQL queries being executed in the worst case. With an average of 3 to 5 milliseconds per SQL query this could result in 100 milliseconds being spent in _just_ getting Commit authors. To preload this data Commit#author now uses BatchLoader (through Commit#lazy_author), and a separate module Gitlab::Ci::Pipeline::Preloader is used to ensure all authors are loaded before they are used. == Number of warnings This changes Ci::Pipeline#has_warnings? so it supports preloading of the number of warnings per pipeline. This removes the need for executing a COUNT(*) query for every pipeline just to see if it has any warnings or not.
2018-05-17Remove rails5 specific tests for #cast_value_from_cacheMatija Čupić
2018-05-17Add test for #cast_value_from_cacheMatija Čupić
2018-05-17Resolve "Opening Project with invite but without accepting leads to 404 ↵🙈 jacopo beschi 🙉
error page"
2018-05-17Merge branch 'zj-workhorse-commit-patch-diff' into 'master'Grzegorz Bizon
Workhorse to send raw diff and patch for commits Closes gitaly#1196 See merge request gitlab-org/gitlab-ce!18974
2018-05-16Respect the inheritance chain between Ci::Build and CommitStatusMayra Cabrera
Also moves the assertions were they belong
2018-05-16Revert "Move argument check to cached getter definition class method"Matija Čupić
This reverts commit 4e1bb1d1014237df79db6b3cc2beb24228a4b228.
2018-05-16Merge branch 'jprovazn-remote-upload-destroy' into 'master'Kamil Trzciński
Delete remote uploads Closes #45425 See merge request gitlab-org/gitlab-ce!18698
2018-05-16Merge branch '46010-allow-managing-group-runners-via-api' into 'master'Kamil Trzciński
API support + Improved policies for group runners Closes #45894 and #38979 See merge request gitlab-org/gitlab-ce!18851
2018-05-16Move argument check to cached getter definition class methodMatija Čupić
2018-05-16Add attribute check in cached getterMatija Čupić
2018-05-16Do not allow to trigger manual actions that were skippedGrzegorz Bizon
2018-05-16Merge branch 'zj-add-branch-mandatory' into 'master'Douwe Maan
Move Gitlab::Git::Repository#add_branch to mandatory Closes gitaly#540 See merge request gitlab-org/gitlab-ce!18939
2018-05-16Workhorse to send raw diff and patch for commitsZeger-Jan van de Weg
Prior to this change, this was done through unicorn. In theory this could time out. Workhorse has been sending these raw patches and diffs for a long time and is stable in doing so. Added bonus is the fact that `Commit#to_patch` can be removed. `Commit#to_diff` too, which closes https://gitlab.com/gitlab-org/gitaly/issues/324 Closes https://gitlab.com/gitlab-org/gitaly/issues/1196
2018-05-16Rename User#ci_authorized_runners -> ci_owned_runnersDylan Griffith
2018-05-16Allow group runners to be viewed/edited in APIDylan Griffith
2018-05-16Delete remote uploadsJan Provaznik
ObjectStore uploader requires presence of associated `uploads` record when deleting the upload file (through the carrierwave's after_commit hook) because we keep info whether file is LOCAL or REMOTE in `upload` object. For this reason we can not destroy uploads as "dependent: :destroy" hook because these would be deleted too soon. Instead we rely on carrierwave's hook to destroy `uploads` in after_commit hook. But in before_destroy hook we still have to delete not-mounted uploads (which don't use carrierwave's destroy hook). This has to be done in before_Destroy instead of after_commit because `FileUpload` requires existence of model's object on destroy action. This is not ideal state of things, in a next step we should investigate how to unify model dependencies so we can use same workflow for all uploads. Related to #45425
2018-05-15Dynamically cast value from cacheMatija Čupić
2018-05-15Makes CommitStatus and GenericCommitStatus respond to presentableMayra Cabrera
methods Includes Presentable module into CommitStatus. This fixes presenter methods being called on those classes. Closes #46177
2018-05-15Merge branch 'sh-enforce-unique-and-not-null-project-ids-project-features' ↵Yorick Peterse
into 'master' Add a unique and not null constraint on the project_features.project_id column Closes #37882 See merge request gitlab-org/gitlab-ce!18925
2018-05-15Add a unique and not null constraint on the project_features.project_id columnStan Hu
This commit has two migrations: 1. The first prunes duplicate rows in the project_features table and leaves the row with the highest ID. Since the behavior was indeterministic before and depended on which row the database decided to use, this change at least makes the permissions consistent. For example, in some cases, the Wiki may have been disabled but enabled in another entry. 2. The second adds a non-null constraint on the project_features.project_id column. Closes #37882 Fixes a significant part of gitlab-com/migration#408. We found that we were overcounting Wikis because of these duplicates. On GitLab.com, there are 56 rows with duplicate entries by project_id, and 16,661 rows with NULL project_id values.
2018-05-15Does not log failed sign-in attempts when database is in read-only modeDouglas Barbosa Alexandre
2018-05-14Check for exact time matchesMatija Čupić
2018-05-14Expect calls to read_attribute depending on cache presenceMatija Čupić
2018-05-14Move Gitlab::Git::Repository#add_branch to mandatoryZeger-Jan van de Weg
Prior to this change, a feature flag could be used to disable this feature. Now all requests go through Gitaly's OperationService. Closes https://gitlab.com/gitlab-org/gitaly/issues/540 When vendoring `Gitlab::Git` again in Gitaly, this implemenation will be gone, but this is readded there through: https://gitlab.com/gitlab-org/gitaly/merge_requests/717
2018-05-12Add RedisCacheable specs for memoization correctnessMatija Čupić
2018-05-12Make #cached_attr_reader and #cached_attr_time_reader specs Redis basedMatija Čupić
2018-05-11Add specs for #cached_attr_reader and cached_attr_time_readerMatija Čupić
2018-05-11Merge branch 'bvl-restrict-api-git-for-terms' into 'master'Douwe Maan
Block access to API & git when terms are enforced Closes #45849 See merge request gitlab-org/gitlab-ce!18816
2018-05-11Merge branch ↵Kamil Trzciński
'ce-5911-extract-ee-specific-files-lines-for-spec-models-clusters' into 'master' Backport EE specific cluster spec changes to CE See merge request gitlab-org/gitlab-ce!18866
2018-05-11Merge branch 'correct-runner-type-when-assigning-shared-to-project' into ↵Kamil Trzciński
'master' Ensure runner_type is updated correctly when assigning shared runner to project See merge request gitlab-org/gitlab-ce!18874
2018-05-10Merge branch 'bw-fix-sha-attribute' into 'master'Stan Hu
ShaAttribute crashes with ArgumentError if column doesn't exist See merge request gitlab-org/gitlab-ce!18880
2018-05-10Block access to API & git when terms are enforcedBob Van Landuyt
When terms are enforced, but the user has not accepted the terms access to the API & git is rejected with a message directing the user to the web app to accept the terms.