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-04-24Add unit tests and fix broken endpointsyasonik
2019-04-23Revert Rails.application.env_config after using mock_auth_hashRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-04-23Merge branch ↵Kamil Trzciński
'60569-timeline-entry-label-link-is-not-applying-the-filter-on-issues' into 'master' Adds `label_name` back as a scalar param in `IssuableFinder` Closes #60569 See merge request gitlab-org/gitlab-ce!27507
2019-04-23Add label_name as scalar param of IssuableFinderHeinrich Lee Yu
This was removed by a previous MR but broke some links
2019-04-19Check that source and target branch existStan Hu
This ensures the return value is consistent if the source and/or branch do not exist.
2019-04-18Migrate correlation and tracing code to LabKitAndrew Newdigate
This change is a fairly straightforward refactor to extract the tracing and correlation-id code from the gitlab rails codebase into the new LabKit-Ruby project. The corresponding import into LabKit-Ruby was in https://gitlab.com/gitlab-org/labkit-ruby/merge_requests/1 The code itself remains very similar for now. Extracting it allows us to reuse it in other projects, such as Gitaly-Ruby. This will give us the advantages of correlation-ids and distributed tracing in that project too.
2019-04-15Add ability to do variable substitutionReuben Pereira
- In prometheus proxy api, allow variables to be replaced. For example, if 'up{env="%{ci_environment_slug}"}' is passed to the endpoint, it becomes 'up{env="production"}' before being sent to prometheus.
2019-04-15Merge branch 'sh-validate-ref-name-in-commit' into 'master'Rémy Coutable
Validate refs used in controllers don't have spaces Closes #58572 and gitaly#1425 See merge request gitlab-org/gitlab-ce!24037
2019-04-15Add some frozen string to spec/**/*.rbgfyoung
Adds frozen string to the following: * spec/bin/**/*.rb * spec/config/**/*.rb * spec/controllers/**/*.rb xref https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-04-15Validate refs used in controllers don't have spacesStan Hu
This avoids an unnecessary call to Gitaly and reduces gRPC errors. * Closes https://gitlab.com/gitlab-org/gitaly/issues/1425 * Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58572
2019-04-11Align UrlValidator to validate_url gem implementation.Thong Kuah
Renamed UrlValidator to AddressableUrlValidator to avoid 'url:' naming collision with ActiveModel::Validations::UrlValidator in 'validates' statement. Make use of the options attribute of the parent class ActiveModel::EachValidator. Add more options: allow_nil, allow_blank, message. Renamed 'protocols' option to 'schemes' to match the option naming from UrlValidator.
2019-04-09Move Contribution Analytics related spec in ↵Imre Farkas
spec/features/groups/group_page_with_external_authorization_service_spec to EE
2019-04-09Merge branch 'osw-multi-assignees-merge-requests' into 'master'Nick Thomas
[Backport] Support multiple assignees for merge requests See merge request gitlab-org/gitlab-ce!27089
2019-04-09Resolve Environments#additional_metrics TypeError, ensure unix formatSarah Yasonik
2019-04-09Set release name when adding release notes to an existing tagJason Goodman
Also set the release sha and author
2019-04-09[CE] Support multiple assignees for merge requestsOswaldo Ferreira
Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
2019-04-08Enable Gitaly FindCommit caching for TreeControllerStan Hu
Accessing /namespace/project/tree/master appears to query FindCommit 5 times with identical parameters. This reduces the number of FindCommit queries to 1.
2019-04-06Expand FindCommit caching to blob and refsStan Hu
This enables FindCommit caching to the following actions: * BlobController#show * RefsController#logs_tree It also improves caching in CommitsController since some duplicate requests were occuring inside the before_action definitions.
2019-04-06Add Knative metrics to PrometheusChris Baumbauer
2019-04-05Add part of needed codeGosia Ksionek
Add columns to store project creation settings Add project creation level column in groups and default project creation column in application settings Remove obsolete line from schema Update migration with project_creation_level column existence check Rename migrations to avoid conflicts Update migration methods Update migration method
2019-04-05Merge branch 'revert-3962b00b' into 'master'Andreas Brandl
Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'" See merge request gitlab-org/gitlab-ce!27051
2019-04-05Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl
This reverts merge request !26823
2019-04-05Enable FindCommit caching for project and commits pagesStan Hu
This reduces a handful of duplicate FindCommit calls while viewing the projects and commits pages.
2019-04-05Move Contribution Analytics related spec in ↵Imre Farkas
spec/features/groups/group_page_with_external_authorization_service_spec to EE
2019-04-05Merge branch '58375-api-controller' into 'master'Sean McGivern
Add a prometheus proxy API per environment Closes #58375 See merge request gitlab-org/gitlab-ce!26841
2019-04-05Autocorrect with RSpec/ExampleWording copThong Kuah
- rewords examples starting with 'should' - rewords examples starting with 'it' Note: I had to manually fixup "onlies" to "only"
2019-04-04Fix and expand Gitaly FindCommit cachingStan Hu
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/26248 added support for deduplicating FindCommit requests using Gitaly ref name caching. However, not all endpoints were covered, and in one case the Gitaly wrapper wasn't actually surrounding the serialization step. We can safely cache ref names between FindCommit calls for #index and #show endpoints for merge requests and pipelines. This can significantly reduce the number of FindCommit requests.
2019-04-04Use environment_params when defining expected_paramsrpereira2
2019-04-04Do not hardcode project and namespace name in urlrpereira2
The names can change in different runs of the spec.
2019-04-04Call permit! on paramsrpereira2
2019-04-04Remove permitting of paramsrpereira2
- It is now being done in ProxyService class.
2019-04-04Add spec for invalid environment idrpereira2
2019-04-04Make filter params specs more readablePeter Leitzen
2019-04-04Streamline controller specsPeter Leitzen
2019-04-04Add a Prometheus API per environmentrpereira2
The api will proxy requests to the environment's prometheus server. The Prometheus::ProxyService class can be reused when we add support for group prometheus servers.
2019-04-04Renamed terminal_specification to channel_specificationFrancisco Javier López
We're moving from using terminology related to terminals when we refer to Websockets connections in Workhorse. It's more appropiate a concept like channel.
2019-04-04Merge branch 'xanf/gitlab-ce-transfer-disables-js' into 'master'Sean McGivern
Resolve "Failing group transfer disables expandable sections" Closes #45511 See merge request gitlab-org/gitlab-ce!26837
2019-04-04Consider array params on rendering MR list on dashboardIgor
This fixes the bug, when approver filter is provided, but dashboard asks to enter any filter
2019-04-04Fixed test specsOswaldo Ferreira
- added suggestions to mock data - fixed props to be not required
2019-04-03Specify time window for additional metrics apisyasonik
Adds support for start and end parameters in the #additional_metrics endpoint of the EnvironmentsController. start and end are meant to be unix timestamps, per the Prometheus API (as the consumer of this endpoint will eventually be transitioned to a prometheus endpoint). This functionality is behind the :metrics_time_window feature flag for development.
2019-04-03Redirect to edit page on group transfer failureIllya Klymov
2019-04-02Merge branch 'sh-cache-pipeline-find-commits' into 'master'Kamil Trzciński
Cache FindCommit results in pipelines view See merge request gitlab-org/gitlab-ce!26776
2019-04-02Cache FindCommit results in pipelines viewStan Hu
For each pipeline, the controller will call `Pipeline#latest?` to determine if the pipeline's ref is the latest for that branch. Since it's likely that the same branches are being used in each pipeline, we can reduce Gitaly overhead by caching the results of the FindCommit call.
2019-04-02Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq into ↵John Jarvis
jarv/dev-to-gitlab-2019-04-02
2019-04-02Merge branch 'security-id-potential-denial-languages' into 'master'GitLab Release Tools Bot
Return cached languages if they've been detected before See merge request gitlab/gitlabhq!2998
2019-04-02Merge branch 'security-mass-assignment-on-project-update' into 'master'GitLab Release Tools Bot
Disallow changing namespace of a project in update method See merge request gitlab/gitlabhq!3028
2019-03-27Allow ref name caching CommitService#find_commitStan Hu
For a given merge request, it's quite common to see duplicate FindCommit Gitaly requests because the Gitaly CommitService caches the request by the commit SHA, not by the ref name. However, most of the duplicate requests use the ref name, so the cache is never actually used in practice. This leads to unnecessary requests that slow performance. This commit allows certain callers to bypass the ref name to OID conversion in the cache. We don't do this by default because it's possible the tip of the branch changes during the commit, which would cause the caller to get stale data. This commit also forces the Ci::Pipeline to use the full ref name so that caching can work for merge requests. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/57083
2019-03-27Add API access check to GraphqlFelipe Artur
Check if user can access API on GraphqlController
2019-03-26Refactor specs according to the code reviewMałgorzata Ksionek
2019-03-25Add cr remarksMałgorzata Ksionek