1. 23 5月, 2019 1 次提交
  2. 31 1月, 2019 1 次提交
  3. 24 1月, 2019 1 次提交
  4. 05 12月, 2018 1 次提交
  5. 17 11月, 2018 1 次提交
    • G
      Enable even more frozen string for lib/gitlab · 7ec8af50
      gfyoung 提交于
      Enables frozen string for the following:
      
      * lib/gitlab/hook_data/**/*.rb
      * lib/gitlab/i18n/**/*.rb
      * lib/gitlab/import/**/*.rb
      * lib/gitlab/import_export/**/*.rb
      * lib/gitlab/kubernetes/**/*.rb
      * lib/gitlab/legacy_github_import/**/*.rb
      * lib/gitlab/manifest_import/**/*.rb
      * lib/gitlab/metrics/**/*.rb
      * lib/gitlab/middleware/**/*.rb
      
      Partially addresses gitlab-org/gitlab-ce#47424.
      7ec8af50
  6. 01 11月, 2018 1 次提交
  7. 24 9月, 2018 1 次提交
  8. 06 9月, 2018 1 次提交
  9. 28 8月, 2018 1 次提交
  10. 25 6月, 2018 1 次提交
  11. 22 6月, 2018 2 次提交
  12. 19 6月, 2018 1 次提交
  13. 14 5月, 2018 1 次提交
  14. 06 4月, 2018 1 次提交
  15. 05 4月, 2018 2 次提交
    • B
      Don't export `Project#description_html` · 902cec12
      Bob Van Landuyt 提交于
      Since we can regenerate `description_html` from the `description`, we
      should not export it. This avoids some complexity when overriding the
      description during an import/export where we would need to invalidate
      this cached field.
      
      Now we refresh the markdown cache after the import
      902cec12
    • B
      Override values from JSON with import data · e3acc982
      Bob Van Landuyt 提交于
      This overrides values defined in the project JSON with the values
      provided in project.import_data.data['override_params'].
      
      These could be passed from the API.
      e3acc982
  16. 16 3月, 2018 1 次提交
  17. 12 1月, 2018 1 次提交
  18. 23 11月, 2017 1 次提交
    • S
      Use latest_merge_request_diff association · 991bf24e
      Sean McGivern 提交于
      Compared to the merge_request_diff association:
      
      1. It's simpler to query. The query uses a foreign key to the
         merge_request_diffs table, so no ordering is necessary.
      2. It's faster for preloading. The merge_request_diff association has to load
         every diff for the MRs in the set, then discard all but the most recent for
         each. This association means that Rails can just query for N diffs from N
         MRs.
      3. It's more complicated to update. This is a bidirectional foreign key, so we
         need to update two tables when adding a diff record. This also means we need
         to handle this as a special case when importing a GitLab project.
      
      There is some juggling with this association in the merge request model:
      
      * `MergeRequest#latest_merge_request_diff` is _always_ the latest diff.
      * `MergeRequest#merge_request_diff` reuses
        `MergeRequest#latest_merge_request_diff` unless:
          * Arguments are passed. These are typically to force-reload the association.
          * It doesn't exist. That means we might be trying to implicitly create a
            diff. This only seems to happen in specs.
          * The association is already loaded. This is important for the reasons
            explained in the comment, which I'll reiterate here: if we a) load a
            non-latest diff, then b) get its `merge_request`, then c) get that MR's
            `merge_request_diff`, we should get the diff we loaded in c), even though
            that's not the latest diff.
      
      Basically, `MergeRequest#merge_request_diff` is the latest diff in most cases,
      but not quite all.
      991bf24e
  19. 03 10月, 2017 1 次提交
  20. 06 9月, 2017 5 次提交
  21. 05 9月, 2017 8 次提交
  22. 17 8月, 2017 1 次提交
  23. 03 5月, 2017 1 次提交
  24. 06 4月, 2017 1 次提交
  25. 05 4月, 2017 1 次提交
  26. 19 12月, 2016 1 次提交
  27. 03 11月, 2016 1 次提交