Skip to content
Snippets Groups Projects
  1. Mar 27, 2019
  2. Mar 26, 2019
    • Bob Van Landuyt's avatar
      Allow multiple repositories per project · d36415b7
      Bob Van Landuyt authored
      This changes the repository type from a binary `wiki?` to a type. So
      we can have more than 2 repository types.
      
      Now everywhere we called `.wiki?` and expected a boolean, we check
      that type.
      d36415b7
  3. Mar 22, 2019
  4. Mar 13, 2019
  5. Mar 12, 2019
  6. Mar 07, 2019
  7. Mar 01, 2019
  8. Feb 27, 2019
    • Jacopo's avatar
      Add project http fetch statistics API · 5ae9a44a
      Jacopo authored
      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
  9. Feb 26, 2019
  10. Feb 25, 2019
  11. Feb 20, 2019
  12. Feb 11, 2019
  13. Feb 08, 2019
  14. Feb 06, 2019
  15. Jan 31, 2019
  16. Jan 29, 2019
    • Andreas Brandl's avatar
      Flush InternalId records after import · fede3a0b
      Andreas Brandl authored
      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.
      Unverified
      fede3a0b
  17. Jan 28, 2019
  18. Jan 25, 2019
    • Gabriel Mazetto's avatar
      Refactor Storage Migration · 7bc16889
      Gabriel Mazetto authored
      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. Jan 24, 2019
  20. Jan 21, 2019
  21. Jan 16, 2019
    • Yorick Peterse's avatar
      Refactor checking personal project limits · 2d9a6f2b
      Yorick Peterse authored
      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.
      Unverified
      2d9a6f2b
  22. Jan 14, 2019
  23. Jan 11, 2019
  24. Jan 09, 2019
  25. Jan 07, 2019
    • Gabriel Mazetto's avatar
      Only set as `read_only` when starting the per-project migration · ee4af0c6
      Gabriel Mazetto authored
      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
    • Reuben Pereira's avatar
      f40b5860
    • Steve Azzopardi's avatar
      Add explicit test for #latest_successful_build_for! · 935dc667
      Steve Azzopardi authored
      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.
      Unverified
      935dc667
    • Steve Azzopardi's avatar
      Create `get_build` for project model · f9c8822a
      Steve Azzopardi authored
      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.
      Unverified
      f9c8822a
    • Steve Azzopardi's avatar
      Refactor project.latest_successful_builds_for def · 7ac32ae2
      Steve Azzopardi authored
      `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.
      Unverified
      7ac32ae2
  26. Jan 04, 2019
  27. Jan 03, 2019
  28. Jan 02, 2019
Loading