summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add warning that gitlab-secrets isn't includedadd-warning-to-backup-rake-taskCindy Pallares2019-05-081-0/+8
| | | | | | Many customers forget to include the gitlab-secrets.json file. This adds a warning that both gitlab-secrets.json and gitlab.rb are not included in the backup.
* Refactor spec to reload existing_label right after creationPatrick Derichs2019-05-081-1/+1
| | | | | This will avoid timestamp comparison issues later within equality check with attributes
* Merge branch ↵Robert Speicher2019-05-071-0/+6
|\ | | | | | | | | | | | | 'ce-11099-removing-the-project-that-holds-the-insights-configuration-raises-an-error' into 'master' Add remove_foreign_key_if_exists See merge request gitlab-org/gitlab-ce!28172
| * Add remove_foreign_key_if_existsce-11099-removing-the-project-that-holds-the-insights-configuration-raises-an-errorLin Jen-Shin2019-05-071-0/+6
| |
* | Merge branch '56850-add-new-unicorn-metrics' into 'master'Ash McKenzie2019-05-073-17/+69
|\ \ | | | | | | | | | | | | | | | | | | Resolve "Add new Unicorn metrics" Closes #56850 See merge request gitlab-org/gitlab-ce!27474
| * | Add back ruby_memory_bytes metric, limit duplication, clean upRyan Cobb2019-04-292-9/+18
| | | | | | | | | | | | | | | | | | This adds back ruby_memory_bytes for backwards compatibility, limits code duplication, cleans up unused methods, and limits the unicorn worker sampling scope.
| * | Cleanup syntax in System max_open_file_descriptorsRyan Cobb2019-04-261-4/+2
| | |
| * | Update docs and calculate process start time via proc tableRyan Cobb2019-04-242-20/+20
| | | | | | | | | | | | | | | | | | This updates monitor docs to reflect the new ruby and unicorn metrics as well as making it so we fetch process start time via the proc table instead of via CLOCK_BOOTTIME
| * | Move process specific metrics to ruby samplerRyan Cobb2019-04-242-15/+15
| | | | | | | | | | | | | | | These metrics are not unicorn specific and can be used across ruby processes
| * | Adds new metrics for unicorn monitoringRyan Cobb2019-04-182-8/+53
| | | | | | | | | | | | | | | | | | This adds new metrics for monitoring unicorn. These metrics include process_cpu_seconds_total, process_start_time_seconds, process_max_fds, and unicorn_workers.
* | | Confirm existence of head_pipeline if pipeline success requiredKerri Miller2019-05-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Pipelines are created by an async worker, so a rapid sequence of API calls can trigger a state where the pipeline, whose existence is part of determining if we wait for the pipeline to successfully complete before merging, can trigger the MR to be immediately merged instead. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/55127
* | | Register "gitaly_delta_islands" feature flagJacob Vosmaer2019-05-071-1/+2
| | |
* | | Merge branch 'sh-fix-related-merge-requests-path' into 'master'Rémy Coutable2019-05-071-0/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Use a path for the related merge requests endpoint Closes #61280 See merge request gitlab-org/gitlab-ce!28171
| * | | Use a path for the related merge requests endpointsh-fix-related-merge-requests-pathStan Hu2019-05-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hosts using a non-standard configuration may have a different hostname/port/scheme than what may be configured on the GitLab server. While expose_url should generate a proper URL, there are cases where it may not work. Since we don't need the full URL, we can use the relative path. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61280
* | | | Bump clair-local-scan to v2.0.8Olivier Gonzalez2019-05-071-1/+1
|/ / /
* | | Add improvements to the global search processFrancisco Javier López2019-05-073-47/+51
| | | | | | | | | | | | | | | | | | | | | Removed the conditions added to Project.with_feature_available_for_user, and moved to the IssuableFinder. Now, we ensure that, in the projects retrieved in the Finder, the user has enough access for the feature.
* | | Merge branch 'winh-separate-frontend-fixtures' into 'master'Phil Hughes2019-05-071-1/+5
|\ \ \ | |_|/ |/| | | | | | | | Generate EE-specific JavaScript fixtures into ee/ directory (CE-backport) See merge request gitlab-org/gitlab-ce!28032
| * | Allow to override Gitlab.ee? with IS_GITLAB_EEWinnie Hellmann2019-05-021-1/+5
| | | | | | | | | | | | (cherry picked from commit f3b74d59865a88be67663339447667c725961413)
* | | Merge branch 'allow-replying-to-individual-notes-from-api' into 'master'James Lopez2019-05-071-1/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Allow replying to an individual note in the API Closes #61392 See merge request gitlab-org/gitlab-ce!28120
| * | | Allow replying to an individual note in the APIallow-replying-to-individual-notes-from-apiSean McGivern2019-05-061-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | If you can do this in the UI, you should be able to do it in the API. If a discussion is not a single note discussion, or it is replyable, you can reply to it.
* | | | Fix issuables state_id nil when importing projects from GitHubFelipe Artur2019-05-063-0/+3
|/ / / | | | | | | | | | | | | | | | Issues and merge requests imported from GitHub are having state_id set to null. This fixes the GitHub project importer and schedule migrations to fix state_id.
* | | Implement support for CI variables of type fileKrasimir Angelov2019-05-064-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add env_var and file as supported types for CI variables. Variables of type file expose to users existing gitlab-runner behaviour - save variable value into a temp file and set the path to this file in an ENV var named after the variable key. Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/46806.
* | | Merge branch '30093-apply-bfg-object-map-to-database' into 'master'Douwe Maan2019-05-063-15/+35
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove cleaned up OIDs from database and cache Closes #30093 See merge request gitlab-org/gitlab-ce!26555
| * | | Remove cleaned up OIDs from database and cacheNick Thomas2019-05-063-15/+35
| | | |
* | | | Merge branch 'jc-disconnect-git-alternates-client' into 'master'Stan Hu2019-05-062-0/+14
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Add client methods for DisconnectGitAlternates rpc See merge request gitlab-org/gitlab-ce!27938
| * | | Add client methods for DisconnectGitAlternates rpcjc-disconnect-git-alternates-clientJohn Cai2019-05-032-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | DisconnectGitAlternates is a Gitaly RPC that will delete a repository's objects/info/alternates file. This commit adds client support for that RPC.
* | | | Merge branch 'jej/session-stored-globaly' into 'master'Dmitriy Zaporozhets2019-05-062-0/+49
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Session stored globally per request See merge request gitlab-org/gitlab-ce!27658
| * | | | Session stored globally per requestjej/session-stored-globalyJames Edwards-Jones2019-05-022-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | - This can be accessed with Session.current and is restored after. - Data can be stored under a key with NamespacedSessionStore
* | | | | Merge branch 'ce-11225-es_limited_namespaces_removal' into 'master'Nick Thomas2019-05-061-0/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Backport "Fix namespace/project removal elasticsearch limit" to CE See merge request gitlab-org/gitlab-ce!27933
| * | | | | Backport of 328-versioned-es-schemace-11225-es_limited_namespaces_removalMario de la Ossa2019-05-021-0/+6
| | | | | |
* | | | | | Merge branch 'patch-49' into 'master'Sean McGivern2019-05-061-0/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No leading/trailing spaces when generating heading ids (Fixes #57528) Closes #57528 See merge request gitlab-org/gitlab-ce!27025
| * | | | | | Use strip to remove leading/trailing spacesWillian Balmant2019-04-111-2/+1
| | | | | | | | | | | | | | | | | | | | | Change based on comments in MR #27025
| * | | | | | No leading/trailing spaces when generating heading ids (Fixes #57528)Willian Balmant2019-04-101-2/+2
| | | | | | | | | | | | | | | | | | | | | Update based on comments in MR #27025
| * | | | | | No leading/trailing spaces when generating heading ids (Fixes #57528)Willian Balmant2019-04-041-0/+2
| | | | | | |
* | | | | | | Run rubocop -a on CE filessh-upgrade-rubocop-0.68.0-ceStan Hu2019-05-0535-51/+40
| | | | | | |
* | | | | | | Revert changes in lib/tasks/lint.rakeStan Hu2019-05-051-2/+15
| | | | | | |
* | | | | | | Remove stdout/stderr capture in static-analysisStan Hu2019-05-051-15/+1
| | | | | | |
* | | | | | | Add logging for time and lint startStan Hu2019-05-051-0/+1
| | | | | | |
* | | | | | | Allow guests users to access project releasesKrasimir Angelov2019-05-032-10/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is step one of resolving https://gitlab.com/gitlab-org/gitlab-ce/issues/56838. Here is what changed: - Revert the security fix from bdee9e8412d. - Do not leak repository information (tag name, commit) to guests in API responses. - Do not include links to source code in API responses for users that do not have download_code access. - Show Releases in sidebar for guests. - Do not display links to source code under Assets for users that do not have download_code access. GET ':id/releases/:tag_name' still do not allow guests to access releases. This is to prevent guessing tag existence.
* | | | | | | Propagate excluded paths to SAST & DS jobsFabien Catteau2019-05-032-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Propagate DS_EXCLUDED_PATHS to dependency_scanning job, and SAST_EXCLUDED_PATHS and SAST_BANDIT_EXCLUDED_PATHS to sast job. This makes possible to excluded certains paths from SAST reports and Dependency Scanning reports, respectively.
* | | | | | | Whitelist query limits for internal APIStan Hu2019-05-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating a merge request for push options, there may be over 100 queries that are run to create a merge request. Even after we reduce the number of queries by disabling the Sidekiq jobs, it appears we still hover near this limit. Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/11450
* | | | | | | Add gitlab-managed option to clusters formMayra Cabrera2019-05-032-0/+2
| |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When this option is enabled, GitLab will create namespaces and service accounts as usual. When disabled, GitLab wont create any project specific kubernetes resources Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56557
* | | | | | Use git_garbage_collect_worker to run pack_refsJan Provaznik2019-05-021-0/+6
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PackRefs is not an expensive gitaly call - we want to call it more often (than as part of full `gc`) because it helps to keep number of refs files small - too many refs file may be a problem for deployments with slow storage.
* | | | | Adds a way to start multiple manual jobs in stageMayra Cabrera2019-05-022-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds an endpoint on PipelinesController - Adds a service that iterates over every build in a stage and plays it. - Includes 'play_manual' details on EntitySerializer - Builds a new Stage state: PlayManual. An stage can take this status if it has manual builds or an skipped, scheduled or manual status - Includes FE modifications and specs
* | | | | Add support for two-step Gitaly Rebase RPCLuke Duncalfe2019-05-022-1/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new two-step Gitaly `Rebase` RPC yields the rebase commit SHA to the client before proceeding with the rebase. This avoids an issue where the rebase commit SHA was returned when the RPC had fully completed, and in some cases this would be after the Rails `post_receive` worker services had already run. In these situations, the merge request did not yet have its rebase_commit_sha attribute set introducing the possibility for bugs (such as previous approvals being reset). https://gitlab.com/gitlab-org/gitlab-ee/issues/5966
* | | | | Merge branch '27777-drop-projects-ci_id-column' into 'master'Douglas Barbosa Alexandre2019-05-021-13/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "Drop "projects"."ci_id" column" Closes #27777 See merge request gitlab-org/gitlab-ce!27623
| * | | | | Remove unused projects.ci_id column27777-drop-projects-ci_id-columnDmitriy Zaporozhets2019-05-021-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And remove Gitlab::Ci::Trace#deprecated_path as it relies on ci_id Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | | | Update deployment chat message notificationJason Goodman2019-05-022-1/+5
|/ / / / / | | | | | | | | | | | | | | | | | | | | Include link to user and commit title. Rearrange text
* | | | | Add opentracing integration for graphqlJan Provaznik2019-05-021-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extends existing graphql's tracer with opentracing measurements. Because it also adds Tracing::Graphql class (for opentracing), it also renames Graphql::Tracing class to Graphql::GenericTracing to minimize confusion with similar class names.
* | | | | Propagate ENV vars to SAST and Dependency Scanning Docker containers only if ↵Victor Zagorodny2019-05-012-18/+38
| | | | | | | | | | | | | | | | | | | | they are set