1. 22 3月, 2019 1 次提交
  2. 13 3月, 2019 1 次提交
  3. 12 3月, 2019 1 次提交
  4. 08 3月, 2019 1 次提交
  5. 01 3月, 2019 2 次提交
  6. 27 2月, 2019 1 次提交
    • J
      Add project http fetch statistics API · 5ae9a44a
      Jacopo 提交于
      The API get projects/:id/traffic/fetches allows user with write
      access to the repository to get the number of clones for the
      last 30 days.
      5ae9a44a
  7. 26 2月, 2019 1 次提交
  8. 25 2月, 2019 1 次提交
  9. 21 2月, 2019 1 次提交
  10. 20 2月, 2019 1 次提交
  11. 12 2月, 2019 1 次提交
  12. 09 2月, 2019 1 次提交
  13. 08 2月, 2019 1 次提交
  14. 06 2月, 2019 1 次提交
  15. 31 1月, 2019 2 次提交
  16. 29 1月, 2019 1 次提交
    • A
      Flush InternalId records after import · fede3a0b
      Andreas Brandl 提交于
      After the import has finished, we flush (delete) the InternalId records
      related to the project at hand. This means we're starting over with
      tracking correct internal id values, a new record will be created
      automatically when the next internal id is generated.
      
      The GitHub importer assigns iid values by using supplied values from
      GitHub. We skip tracking internal id values during the import in favor
      of higher concurrency. Deleting any InternalId records after the import
      has finished is an extra measure to guarantee consistency.
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54270.
      fede3a0b
  17. 28 1月, 2019 1 次提交
  18. 26 1月, 2019 1 次提交
    • G
      Refactor Storage Migration · 7bc16889
      Gabriel Mazetto 提交于
      Specs were reviewed and improved to better cover the current behavior.
      There was some standardization done as well to facilitate the
      implementation of the rollback functionality.
      
      StorageMigratorWorker was extracted to HashedStorage namespace were
      RollbackerWorker will live one as well.
      7bc16889
  19. 24 1月, 2019 1 次提交
  20. 21 1月, 2019 1 次提交
  21. 16 1月, 2019 1 次提交
    • Y
      Refactor checking personal project limits · 2d9a6f2b
      Yorick Peterse 提交于
      This refactors the code used for checking if a user has exceeded the
      personal projects limit. As part of this refactor the method has been
      renamed from Project#check_limit to "check_personal_projects_limit", as
      this name makes it much more clear what the purpose of the method is.
      Standalone unit tests have also been added, as before we only had a
      single generic validation test that did not cover all cases.
      
      The old implementation of the refactored method also included a `rescue`
      statement. This code would only run when a project creator was not set.
      The error that would be added wasn't super useful, especially since
      there would already be errors for the creator not being present. As none
      of the other code in the "check_personal_projects_limit" raises, it has
      been removed.
      2d9a6f2b
  22. 14 1月, 2019 1 次提交
  23. 11 1月, 2019 2 次提交
  24. 09 1月, 2019 1 次提交
    • S
      Remove get_build method for find_by_id · ab6b9a1c
      Steve Azzopardi 提交于
      The original intention of `get_build` was as a workaround not to violate
      `CodeReuse/ActiveRecord`. `find_by_id` does the exact same thing but
      does not violate the rubocop rule.
      ab6b9a1c
  25. 08 1月, 2019 5 次提交
    • G
      Only set as `read_only` when starting the per-project migration · ee4af0c6
      Gabriel Mazetto 提交于
      In the previous code, we locked the project during the migration
      scheduling step, which works fine for small setups, but can be
      problematic in really big installations.
      
      We now moved the logic to inside the worker, so we minimize the time a
      project will be read-only. We also make sure we only do that if
      reference counter is `0` (no current operation is in progress).
      ee4af0c6
    • R
      Add table and model for error tracking settings · f40b5860
      Reuben Pereira 提交于
      f40b5860
    • S
      Add explicit test for #latest_successful_build_for! · 935dc667
      Steve Azzopardi 提交于
      project.latest_successful_build_for! is being tested inside of `describe
      explicit. In doing so some duplication was generated but not
      `#latest_successful_build_for!` has full coverage unlike before.
      
      Move `create_pipeline` & `create_build` as helper methods for this spec
      to reduce duplication.
      935dc667
    • S
      Create `get_build` for project model · f9c8822a
      Steve Azzopardi 提交于
      Inside of `Projects::ArtifactsController` and
      `Projects::BuildArtifactsController` we fetching the build by id using
      active record directly which violates `CodeReuse/ActiveRecord` rubocop
      rule. Create `get_build` inside of `project` model which does the same
      thing.
      f9c8822a
    • S
      Refactor project.latest_successful_builds_for def · 7ac32ae2
      Steve Azzopardi 提交于
      `project.latest_successful_builds_for(ref)` is being used to find a
      single job all the time. This results into us having to call `find_by`
      inside of the controller which violates our CodeReuse/ActiveRecord
      rubocop rule.
      
      Refactor `project.latest_successful_builds_for(ref)` to
      `project.latest_successful_build_for(job_name, ref)` which will execute
      the `find_by` inside of the model.
      
      Also create `project.latest_successful_build_for!(job_name, ref)` which
      raises an exception instead of returning nil.
      7ac32ae2
  26. 05 1月, 2019 1 次提交
  27. 04 1月, 2019 2 次提交
  28. 03 1月, 2019 2 次提交
  29. 02 1月, 2019 3 次提交