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
2019-09-19Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-16Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-10Add support for custom domains to the internal Pages APIKrasimir Angelov
Update the `/internal/pages` endpoint to return virtual domain configuration for custom domains.
2019-09-05CE port for pipelines for external pull requestsFabio Pitino
Detect if pipeline runs for a GitHub pull request When using a mirror for CI/CD only we register a pull_request webhook. When a pull_request webhook is received, if the source branch SHA matches the actual head of the branch in the repository we create immediately a new pipeline for the external pull request. Otherwise we store the pull request info for when the push webhook is received. When using "only/except: external_pull_requests" we can detect if the pipeline has a open pull request on GitHub and create or not the job based on that.
2019-08-31Avoid calling freeze on already frozen strings in app/modelsdineshpanda
2019-08-31Limit access request email to 10 most recently active owners/maintainersManoj MJ
This change limits the number of emails for new access requests notifications to 10 most recently active owners/maintainers
2019-08-29Allow project feature permissions to be overridden during importGeorge Koltsov
2019-08-28Update CE files for GSD projects filterVictor Zagorodny
A new param with_security_reports was added to GET /groups/:id/projects API and the code to support this logic in GroupProjectsFinder and Project model. Also, a DB index was added to ci_job_artifacts table to speed up the search of security reports artifacts for projects
2019-08-26Remove the object pools feature flagZeger-Jan van de Weg
The flag defaulted to true, so there's no change unless users turned it off. Given there's a lack of issues regarding object pools, this should be OK.
2019-08-21Add SortingPreference concernGeorge Koltsov
Sorting preference functionality has been extracted from `IssuableCollections` to a new `SortingPreference` concern in order to reuse this functionality in projects (and groups in the future).
2019-08-15Migrations for Cycle Analytics backendAdam Hegyi
This change lays the foundation for customizable cycle analytics stages. The main reason for the change is to extract the event definitions to separate objects (start_event, end_event) so that it could be easily customized later on.
2019-08-15Allow disabling group/project email notificationsBrett Walker
- Adds UI to configure in group and project settings - Removes notification configuration for users when disabled at group or project level
2019-08-13Reduce Gitaly calls in PostReceiveStan Hu
This commit reduces I/O load and memory utilization during PostReceive for the common case when no project hooks or services are set up. We saw a Gitaly N+1 issue in `CommitDelta` when many tags or branches are pushed. We can reduce this overhead in the common case because we observe that most new projects do not have any Web hooks or services, especially when they are first created. Previously, `BaseHooksService` unconditionally iterated through the last 20 commits of each ref to build the `push_data` structure. The `push_data` structured was used in numerous places: 1. Building the push payload in `EventCreateService` 2. Creating a CI pipeline 3. Executing project Web or system hooks 4. Executing project services 5. As the return value of `BaseHooksService#execute` 6. `BranchHooksService#invalidated_file_types` We only need to generate the full `push_data` for items 3, 4, and 6. Item 1: `EventCreateService` only needs the last commit and doesn't actually need the commit deltas. Item 2: In addition, `Ci::CreatePipelineService` only needed a subset of the parameters. Item 5: The return value of `BaseHooksService#execute` also wasn't being used anywhere. Item 6: This is only used when pushing to the default branch, so if many tags are pushed we can save significant I/O here. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65878 Fic
2019-08-09Merge branch '39217-remove-kubernetes-service-integration' into 'master'James Lopez
Remove KubernetesService integration See merge request gitlab-org/gitlab-ce!31365
2019-08-08Bring scoped environment variables to coreHordur Freyr Yngvason
As decided in https://gitlab.com/gitlab-org/gitlab-ce/issues/53593
2019-08-08Final removal of KubernetesServiceTiger
Creating new records has been disabled, and all existing records been migrated to clusters as of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28534
2019-08-07Use separate Kubernetes namespaces per environmentTiger Watson
Kubernetes deployments on new clusters will now have a separate namespace per project environment, instead of sharing a single namespace for the project. Behaviour of existing clusters is unchanged. All new functionality is controlled by the :kubernetes_namespace_per_environment feature flag, which is safe to enable/disable at any time.
2019-08-07Fix nil take regressionMatija Čupić
2019-08-05Speed up loading and filtering deploy keys and their projectsNick Thomas
This commit changes how we eager-load projects, routes, and namespaces required by the deploy keys endpoint, getting a 10x improvement in my local testing. The endpoint still doesn't scale in-general, but going from ~13 seconds to dump a 63K result to generating the same thing in ~1.6 seconds seems like a good improvement to me.
2019-07-31Remove unused cluster configuration logicTiger
All cluster resources are now created on demand when a deployment job starts.
2019-07-26Merge branch 'mc/feature/find-all-artifacts-for-sha' into 'master'Robert Speicher
Find build by sha from ref Closes #64534 and #45697 See merge request gitlab-org/gitlab-ce!30843
2019-07-26Rename latest_successful to be more explicitMatija Čupić
* Reword Project#latest_successful_build_for to Project#latest_successful_build_for_ref * Reword Ci::Pipeline#latest_successful_for to Ci::Pipeline#latest_successful_build_for_ref
2019-07-24Merge branch 'optimise-import-performance' into 'master'Stan Hu
Optimise import performance Closes #64924 See merge request gitlab-org/gitlab-ce!31045
2019-07-24Optimise import performanceKamil Trzciński
- Fix `O(n)` complexity of `append_or_update_attribute`, we append objects to an array and re-save project - Remove the usage of `keys.include?` as it performs `O(n)` search, instead use `.has_key?` - Remove the usage of `.keys.first` as it performs a copy of all keys, instead use `.first.first`
2019-07-23Find build by sha from refMatija Čupić
Adds ability to find builds by sha when only specifying a ref.
2019-07-23Merge branch 'gsemet/gitlab-ce-gsemet-master-patch-33258' into 'master'Sean McGivern
Multiple pipeline support for Build status See merge request gitlab-org/gitlab-ce!30828
2019-07-23Add specs for specifying pipeline behaviorMatija Čupić
Adds specs for testing the new behavior of specifying a pipeline when POSTing a status.
2019-07-22Removed project autocomplete paginationJan Provaznik
This pagination is not used anywhere so there is no reason to keep it. It seems the usage of offset_id was probably removed in 90c60138db4e1f86026aac5760febe4ba066ca30
2019-07-20Fix the project auto devops APINick Thomas
If `project_auto_devops.enabled` is nil for a project, when setting any auto devops values via the API, we try to create a new row in the DB, instead of re-using the existing one. This leads to the project_id being set to nil, and the database `NOT NULL` constraint leading to a 500 response. This commit resolves the issue by correctly detecting the presence of a ProjectAutoDevops row and re-using it. Persistence is also moved away from explicit `update!` calls and into relying on `autosave: true` on the model.
2019-07-15Remove old ignore_column in AR modelsDmitriy Zaporozhets
Next models are affected: * Project * Namespace * Issue * Merge request * CI Trigger * CI Pipeline schedule Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2019-07-13Fix typo "beetween" in timeout validation messageDaniel Danner
2019-07-12Backports of "Remove feature flag behind MR's multiple assignees"Igor
2019-07-12Upgrade to Rails 5.2Heinrich Lee Yu
Updates changed method names and fixes spec failures
2019-07-10Add a rubocop for Rails.loggerMayra Cabrera
Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
2019-07-10Resolve Gitaly N+1 for CI/CD environments statusesGrzegorz Bizon
2019-07-09Merge branch 'master' into sathieu/gitlab-ce-project_apiDouglas Barbosa Alexandre
2019-07-09Enable repository object pools by defaultJames Ramsay
Object pools allow Git objects to be shared from the parent project to forks, reducing storage requirements.
2019-07-03Add build_git_strategy attribute to project APIMathieu Parent
We map the boolean to the string 'fetch' or 'clone', to be more explicit.
2019-06-28Remove deprecated `#forked_from?` checkBob Van Landuyt
I forgot to clean up this bit in we switched the `forked_from_project` relation to use fork networks in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22226
2019-06-27Remove group_clusters feature flagThong Kuah
Now we have terminals for instance and group clusters we can remove the FF now. Deploying to group clusters has been working without complaints too.
2019-06-26Move Multiple Issue Boards for Projects to CoreAlexandru Croitor
Refactor code to allow multiple issue boards management for projects in CE
2019-06-24Re-add ignore_column for import columnsStan Hu
This `ignore_column` was present for a while but recently removed, but to ensure we don't get error 500s let's keep it for a while.
2019-06-19Remove import columns from projects tableStan Hu
In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21497, we migrated all project import data into a separate table, `project_import_data`. In addition, we also added: ``` ignore_column :import_status, :import_jid, :import_error ``` In https://gitlab.com/gitlab-com/gl-infra/production/issues/908, we observed some of these `import_error` columns consumed megabytes of error backtraces and caused slow loading of projects whenever a `SELECT * from projects` query loaded the row into memory. Since we have long migrated away from these columns, we can now drop these columns entirely.
2019-06-17Merge branch '9490-record-repository_type-on-lfs_objects_projects-ce' into ↵Grzegorz Bizon
'master' CE backport for gitlab-ee!13894 (Save repository_type to LfsObjectsProject) See merge request gitlab-org/gitlab-ce!29179
2019-06-17CE backport for changes in EE MR 13894Luke Duncalfe
This backports to CE changes that allow the recording of the repository_type in the table lfs_objects_projects. This is in order to allow future pruning of unreferenced LFS objects, as we will need to know which repository to look in for the LFS pointer file. The EE MR that contains the original code and a full explanation of the changes is https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894 EE Issue https://gitlab.com/gitlab-org/gitlab-ee/issues/9490 Note that there was a lot of CE code changed in the EE MR because we want to allow the wiki repository to also use LFS. See https://gitlab.com/gitlab-org/gitlab-ce/issues/43721. As the wiki is an unlicensed feature, a full backport is required to enable this.
2019-06-14Fix inability to set visibility_level on project via APIStan Hu
Consider the scenario: 1. The default visibility level is set to internal 2. A user attempts to create a private project within a private group Previously this would always fail because default_value_for would overwrite the private visibility setting, no matter what visibility_level were specified. This was happening because default_value_for was confused by the default value of 0 specified by the database schema. default_value_for attempts to assign the default value in the block by checking whether the attribute has changed. The problem is that since the default value by the database was 0, and the user requested 0, this appeared as though no changes were made. As a result, default_value_for would always overwrite the user's preference. To fix this, we remove the use of default_value_for and only set the visibility level to the default application setting when no preference has been given at creation time. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63158