1. 02 11月, 2018 1 次提交
  2. 31 10月, 2018 2 次提交
  3. 30 10月, 2018 2 次提交
    • T
      Enhance performance of counting local LFS objects · d5f290e4
      Toon Claes 提交于
      Add an index to the `file_store` column on `lfs_objects`. This makes
      counting local objects faster.
      
      Also, there is no longer need to check for objects with `file_store`
      being `NULL`. See
      https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18557
      
      ---
      
      ### Query plans
      
      #### Before & with `NULL`
      
      ```
      Aggregate  (cost=113495.96..113495.97 rows=1 width=8) (actual time=1691.394..1691.394 rows=1 loops=1)
        ->  Seq Scan on lfs_objects  (cost=0.00..106415.50 rows=2832186 width=0) (actual time=0.012..1312.488 rows=2852607 loops=1)
              Filter: ((file_store = 1) OR (file_store IS NULL))
              Rows Removed by Filter: 131
      Planning time: 0.077 ms
      Execution time: 1691.433 ms
      ```
      
      #### Before, without `NULL`
      
      ```
      Aggregate  (cost=113495.96..113495.97 rows=1 width=8) (actual time=856.423..856.424 rows=1 loops=1)
        ->  Seq Scan on lfs_objects  (cost=0.00..106415.50 rows=2832186 width=0) (actual time=0.012..672.181 rows=2852607 loops=1)
              Filter: (file_store = 1)
              Rows Removed by Filter: 131
      Planning time: 0.128 ms
      Execution time: 856.470 ms
      ```
      
      #### After & with `NULL`
      
      ```
      Aggregate  (cost=68819.95..68819.96 rows=1 width=8) (actual time=583.355..583.355 rows=1 loops=1)
        ->  Index Only Scan using index_lfs_objects_on_file_store on lfs_objects  (cost=0.43..61688.35 rows=2852643 width=0) (actual time=0.028..399.177 rows=2852607 loops=1)
              Filter: ((file_store = 1) OR (file_store IS NULL))
              Rows Removed by Filter: 131
              Heap Fetches: 867
      Planning time: 0.096 ms
      Execution time: 583.404 ms
      ```
      
      #### After, without `NULL`
      
      ```
      Aggregate  (cost=68817.29..68817.30 rows=1 width=8) (actual time=490.550..490.551 rows=1 loops=1)
        ->  Index Only Scan using index_lfs_objects_on_file_store on lfs_objects  (cost=0.43..61685.68 rows=2852643 width=0) (actual time=0.040..311.760 rows=2852607 loops=1)
              Index Cond: (file_store = 1)
              Heap Fetches: 831
      Planning time: 0.294 ms
      Execution time: 490.590 ms
      ```
      
      Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6067
      d5f290e4
    • I
      b9652d8e
  4. 29 10月, 2018 1 次提交
    • T
      Associate clusters model to groups · 0e15eec8
      Thong Kuah 提交于
      Even though we currently only should have one group for a cluster, we
      allow the flexibility to associate to other groups in the future.
      
      This also matches the runner <=> groups association.
      
      - Adds Cluster#first_group, aliased to Cluster#group. For the
      conceivable future, a cluster will have at most one group.
      
      - Prevent mixing of group and project clusters. If project type
      clusters, it should only have projects assigned.  Similarly with groups.
      
      - Default cluster_type to :project_type. As it's very small table we can
      set default and null: false in one release.
      0e15eec8
  5. 26 10月, 2018 1 次提交
  6. 25 10月, 2018 2 次提交
  7. 24 10月, 2018 1 次提交
    • J
      Redact unsubscribe links in issuable texts · c1c14964
      Jan Provaznik 提交于
      It's possible that user pastes accidentally also unsubscribe link
      which is included in footer of notification emails. This unsubscribe
      link contains personal token which attacker then use to act as the
      original user (e.g. for sending comments under his/her identity).
      c1c14964
  8. 23 10月, 2018 1 次提交
  9. 22 10月, 2018 1 次提交
  10. 13 10月, 2018 1 次提交
  11. 10 10月, 2018 1 次提交
    • Z
      Remove Git circuit breaker · 30b4ce94
      Zeger-Jan van de Weg 提交于
      Was introduced in the time that GitLab still used NFS, which is not
      required anymore in most cases. By removing this, the API it calls will
      return empty responses. This interface has to be removed in the next
      major release, expected to be 12.0.
      30b4ce94
  12. 09 10月, 2018 1 次提交
  13. 06 10月, 2018 1 次提交
  14. 05 10月, 2018 3 次提交
  15. 03 10月, 2018 3 次提交
  16. 02 10月, 2018 5 次提交
  17. 01 10月, 2018 3 次提交
  18. 26 9月, 2018 1 次提交
  19. 25 9月, 2018 1 次提交
    • V
      Geo: sync disabled wikis. Stage 2 · 15d011d6
      Valery Sizov 提交于
      We started syncing all the wiki regardless of the fact it's disabled or
      not. We couldn't do that in one stage because of needing of smoth update
      and deprecating things. This is the second stage that finally removes
      unused columns in the geo_node_status table.
      15d011d6
  20. 24 9月, 2018 2 次提交
  21. 19 9月, 2018 1 次提交
  22. 14 9月, 2018 2 次提交
  23. 13 9月, 2018 1 次提交
    • J
      Fix column differences in `db/schema.rb` · a0bb444c
      Jan Provaznik 提交于
      project_custom_attributes and group_custom_attributes used datetime
      instead of datetime_with_timezone column type in database schema. But
      actually migration defines `t.timestamps_with_timezone`.
      a0bb444c
  24. 08 9月, 2018 1 次提交
  25. 07 9月, 2018 1 次提交