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-07-10Add newline before subjectMałgorzata Ksionek
Fix rubocop offences
2019-07-09Add cr remarksMałgorzata Ksionek
2019-07-09Update class callsMałgorzata Ksionek
2019-04-01Add # frozen_string_literal to spec/modelsThong Kuah
Adds `# frozen_string_literal: true` to spec/models ruby files
2018-03-01Adapt cycle analytics spec helper and cycle analytics usage data specTiago Botelho
2017-07-27Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable
services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-02-02Reduce the number of loops that Cycle Analytics specs useRobert Speicher
See https://gitlab.com/gitlab-org/gitlab-ce/issues/27402
2017-01-27Use `:empty_project` where possible in model specsRobert Speicher
2017-01-17refactor fetcher and fixed specsJames Lopez
2017-01-17more refactoring and fixing old specsJames Lopez
2016-11-29Merge branch 'jej-fix-missing-access-check-on-issues' into 'security'Douwe Maan
Fix missing access checks on issue lookup using IssuableFinder Split from !2024 to partially solve https://gitlab.com/gitlab-org/gitlab-ce/issues/23867 :warning: - Potentially untested :bomb: - No test coverage :traffic_light: - Test coverage of some sort exists (a test failed when error raised) :vertical_traffic_light: - Test coverage of return value (a test failed when nil used) :white_check_mark: - Permissions check tested - [x] :white_check_mark: app/controllers/projects/branches_controller.rb:39 - `before_action :authorize_push_code!` helpes limit/prevent exploitation. Always checks for reporter access so fine with confidential issues, issues only visible to team, etc. - [x] :traffic_light: app/models/cycle_analytics/summary.rb:9 [`.count`] - [x] :white_check_mark: app/controllers/projects/todos_controller.rb:19 - [x] Potential double render in app/controllers/projects/todos_controller.rb - https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#cedccb227af9bfdf88802767cb58d43c2b977439_24_24 See merge request !2030
2016-10-12Ignore deployment for statistics in Cycle Analytics, except in staging and ↵James Lopez
production stages Also, updated specs and docs.
2016-09-20Implement a second round of review comments from @DouweM.Timothy Andrew
- Don't use `TableReferences` - using `.arel_table` is shorter! - Move some database-related code to `Gitlab::Database` - Remove the `MergeRequest#issues_closed` and `Issue#closed_by_merge_requests` associations. They were either shadowing or were too similar to existing methods. They are not being used anywhere, so it's better to remove them to reduce confusion. - Use Rails 3-style validations - Index for `MergeRequest::Metrics#first_deployed_to_production_at` - Only include `CycleAnalyticsHelpers::TestGeneration` for specs that need it. - Other minor refactorings.
2016-09-20Fix all cycle analytics specs.Timothy Andrew
A number of failures were introduced due to performance improvements (like pre-calculating metrics).
2016-09-07Test the `code` cycle analytics phase.Timothy Andrew
- Move the "data belongs to other project" test case into the generated tests, and remove the explicit tests from the `code` and `plan` phases.
2016-09-02Refactor cycle analytics specs.Timothy Andrew
1. Generalise the specs that will be common across all cycle analytics phases. 2. Rewrite specs `issue` and `plan` to use this abstracted testing strategy. 3. Specs that are specific to a given phase, or unwieldy to test in an abstracted manner, are added to each phase's spec.
2016-09-02Add tests for the `plan` cycle analytics phase.Timothy Andrew
Clean up the `issue` tests as well
2016-08-26Fetch cycle analytics data for a specific date range.Timothy Andrew
1. Supported date ranges are 30 / 90 days ago. The default is 90 days ago. 2. All issues created before "x days ago" are filtered out, even if they have other related data (test runs, merge requests) within the filter range.
2016-08-26Scope Cycle Analytics queries to a projectTimothy Andrew
2016-08-26Add a spec for the `CycleAnalytics#issue` method.Timothy Andrew