1. 02 4月, 2019 1 次提交
    • S
      Cache FindCommit results in pipelines view · e37383d4
      Stan 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.
      e37383d4
  2. 28 3月, 2019 1 次提交
    • S
      Allow ref name caching CommitService#find_commit · db759c5d
      Stan 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
      db759c5d
  3. 20 3月, 2019 1 次提交
  4. 19 3月, 2019 1 次提交
  5. 13 3月, 2019 2 次提交
  6. 07 3月, 2019 1 次提交
  7. 06 3月, 2019 2 次提交
  8. 05 3月, 2019 2 次提交
    • J
      Rename ClusterUpdateAppWorker to ClusterPatchAppWorker · 3bdff7aa
      João Cunha 提交于
      - This is to avoid colision with EE ClusterUpdateAppWorker
      3bdff7aa
    • J
      Creates Clusterss::ApplciationsController update endpoint · f8234d9a
      João Cunha 提交于
      - Creates new route
      - Creates new controller action
      - Creates call stack:
        Clusterss::ApplciationsController calls -->
        Clusters::Applications::UpdateService calls -->
        Clusters::Applications::ScheduleUpdateService calls -->
        ClusterUpdateAppWorker calls -->
        Clusters::Applications::PatchService -->
        ClusterWaitForAppInstallationWorker
      
      DRY req params
      
      Adds gcp_cluster:cluster_update_app queue
      
      Schedule_update_service is uneeded
      
      Extract common logic to a parent class (UpdateService will need it)
      
      Introduce new UpdateService
      
      Fix rescue class namespace
      
      Fix RuboCop offenses
      
      Adds BaseService for create and update services
      
      Remove request_handler code duplication
      
      Fixes update command
      
      Move update_command to ApplicationCore so all apps can use it
      
      Adds tests for Knative update_command
      
      Adds specs for PatchService
      
      Raise error if update receives an unistalled app
      
      Adds update_service spec
      
      Fix RuboCop offense
      
      Use subject in favor of go
      
      Adds update endpoint specs for project namespace
      
      Adds update endpoint specs for group namespace
      f8234d9a
  9. 01 3月, 2019 1 次提交
    • R
      Refactor model and spec · 43e713eb
      Reuben Pereira 提交于
      - Move some specs into contexts
      - Let get_slugs method take a parameter and return a specific slug.
      - Add rescues when using Addressable::URI.
      43e713eb
  10. 28 2月, 2019 1 次提交
  11. 27 2月, 2019 1 次提交
  12. 25 2月, 2019 3 次提交
  13. 23 2月, 2019 1 次提交
  14. 20 2月, 2019 1 次提交
  15. 19 2月, 2019 1 次提交
  16. 18 2月, 2019 1 次提交
    • R
      Fix Projects::MergeRequests::DiffsController specs · 45ce5ff7
      Rémy Coutable 提交于
      These specs were flaky and only passing after a retry due to how
      rspec-retry works.
      
      1. The test with paths that don't exist was returning 200 on the first
        try, then 404 on the second, not because the paths don't exist, but
        because the MR IID didn't change, thus the MR couldn't be found.
        I decided to remove the test entirely since we don't seem to return
        404 for paths that don't exist.
      2. The test with a user that cannot view the merge request was failing
        the first time because the project owner wasn't removed with
        `project.team.truncate`.
        Changing the `let(:user)` to `create(:user)` and calling
        `project.add_maintainer(user)` in the `before` block fix the test.
      Signed-off-by: NRémy Coutable <remy@rymai.me>
      45ce5ff7
  17. 12 2月, 2019 1 次提交
  18. 07 2月, 2019 1 次提交
  19. 06 2月, 2019 2 次提交
  20. 05 2月, 2019 2 次提交
  21. 31 1月, 2019 3 次提交
  22. 30 1月, 2019 1 次提交
  23. 29 1月, 2019 1 次提交
    • M
      Save sorting preference for Issues/MRs in BE · 49c74068
      Mario de la Ossa 提交于
      In order to let users' sorting preferences transfer between devices, we
      save the preference for issues and MRs (one preference for issues, one
      for MRs) in the backend inside the UserPreference object
      49c74068
  24. 28 1月, 2019 1 次提交
  25. 25 1月, 2019 2 次提交
    • K
      Add Container Registry API · 045d07ba
      Kamil Trzciński 提交于
      This includes a set of APIs to manipulate container registry.
      This includes also an ability to delete tags based on requested
      criteria, like keep-last-n, matching-name, older-than.
      045d07ba
    • J
      Adds milestone search · 22eb2e4c
      Jacopo 提交于
      Adds to search ILIKE search for milestones title in:
        - Milestones dashboard
        - Group milestones page
        - Project milestones page
      22eb2e4c
  26. 24 1月, 2019 1 次提交
  27. 23 1月, 2019 1 次提交
  28. 22 1月, 2019 1 次提交
    • S
      Support flat response for envs index route · db054bc1
      syasonik 提交于
      To support environment folders in the UI on the Environments List
      page, the environments index route previously returned one environment
      per folder, excluding those other than the latest deploy. However, the
      environtments dropdown on the metrics dashboard requires that any
      environment be selectable.
      
      To accommodate both use cases, support an optional 'nested' parameter
      in the index route to return either a flat, complete response or a
      nested response based on the use case in question. The new default
      response structure is the flat response.
      db054bc1
  29. 18 1月, 2019 1 次提交
  30. 16 1月, 2019 1 次提交