1. 21 9月, 2019 1 次提交
  2. 13 9月, 2019 1 次提交
  3. 04 9月, 2019 1 次提交
  4. 11 7月, 2019 1 次提交
  5. 16 1月, 2019 2 次提交
  6. 07 1月, 2019 1 次提交
  7. 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
  8. 07 7月, 2018 1 次提交
  9. 02 7月, 2018 1 次提交
  10. 03 3月, 2018 1 次提交
  11. 07 2月, 2018 3 次提交
    • L
      Put controller in its separate file · 5309d445
      Lin Jen-Shin 提交于
      5309d445
    • L
      Use a controller to hold request values · bbfce29b
      Lin Jen-Shin 提交于
      So that we don't need to hold env after the request.
      This makes it much harder to test, especially Rails session is
      acting weirdly, so we need `dig('flash', 'flashes', 'alert')`
      to dig the actual flash value.
      bbfce29b
    • L
      Try not to hold env and release the controller · d4d564c8
      Lin Jen-Shin 提交于
      after the request. This way, we could release the
      project referred from the controller, which potentially
      referred a repository which potentially allocated a lot of
      memories.
      
      Before this change, we could hold the last request data
      and cannot release the memory. After this change, the
      largest request data should be able to be collected from GC.
      
      This might not impact the instances having heavy load,
      as the last request should be changing all the time,
      and GC won't kick in for each request anyway.
      
      However it could still potentially allow us to free more
      memories for each GC runs, because now we could free one
      more request anyway.
      d4d564c8
  12. 21 11月, 2017 4 次提交
  13. 08 11月, 2017 1 次提交
  14. 02 11月, 2017 1 次提交
  15. 07 10月, 2017 1 次提交
    • T
      Create idea of read-only database · d1366971
      Toon Claes 提交于
      In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo
      secondary node). But in GitLab CE it also might be useful to have the
      "read-only" idea around. So port it back to GitLab CE.
      
      Also having the principle of read-only in GitLab CE would hopefully
      lead to less errors introduced, doing write operations when there
      aren't allowed for read-only calls.
      
      Closes gitlab-org/gitlab-ce#37534.
      d1366971