1. 13 Dec, 2020 2 commits
    • Michael Kozono's avatar
      Merge branch 'api-support-for-deployment-frequency' into 'master' · 27aa2c6c
      Michael Kozono authored
      Adds API support for Project Deployment Frequency
      
      See merge request gitlab-org/gitlab!48265
      27aa2c6c
    • Amy Troschinetz's avatar
      Add API support for deployment frequency · be88cb17
      Amy Troschinetz authored
      **app/models/deployment.rb:**
      Select deployments that were created within a datetime range.
      
      **ee/app/finders/analytics/deployments_finder.rb:**
      Find successful deployments for a project within a datetime range.
      
      **ee/changelogs/unreleased/api-support-for-deployment-frequency.yml:**
      Changelog.
      
      **ee/lib/api/analytics/project_deployment_frequency.rb:**
      API for getting deployment frequencies for projects.
      
      **ee/lib/ee/api/api.rb:**
      Mount the new deployment frequency API.
      
      **ee/lib/ee/api/entities/analytics/deployment_frequency.rb:**
      Shape of deployment frequency API responses.
      
      **ee/spec/requests/api/analytics/project_deployment_frequency_spec.rb:**
      Test API.
      
      **ee/spec/finders/analytics/deployments_finder_spec.rb:**
      Test deployments finder.
      
      **spec/models/deployment_spec.rb:**
      Test created_between method.
      
      **doc/user/project/index.md:**
      Adds some docs for the new licensed feature flag.
      
      **doc/api/project_analytics.md:**
      Adds some docs for the API.
      
      **ee/app/models/license.rb:**
      Adds new licensed feature flag for project analytics.
      
      **ee/app/policies/ee/project_policy.rb:**
      Adds new policies for the new project analytics feature flag.
      
      **ee/spec/policies/project_policy_spec.rb:**
      Test for new project analytics policy and feature flag.
      
      **db/structure.sql:**
      **db/migrate/
      20201211042306_add_deployments_finder_by_finished_at_index.rb:**
      **db/schema_migrations/20201211042306:**
      
      Adding new index to make the deployments finder query fast.
      be88cb17
  2. 12 Dec, 2020 1 commit
  3. 11 Dec, 2020 37 commits