1. 17 Aug, 2018 1 commit
  2. 10 Aug, 2018 3 commits
  3. 09 Aug, 2018 2 commits
  4. 08 Aug, 2018 1 commit
  5. 07 Aug, 2018 1 commit
  6. 06 Aug, 2018 1 commit
    • Yorick Peterse's avatar
      Respond to DB health in background migrations · cbfd8c00e473
      Yorick Peterse authored
      This changes the BackgroundMigration worker so it checks for the health
      of the DB before performing a background migration. This in turn allows
      us to reduce the minimum interval, without having to worry about blowing
      things up if we schedule too many migrations.
      
      In this setup, the BackgroundMigration worker will reschedule jobs as
      long as the database is considered to be in an unhealthy state. Once the
      database has recovered, the migration can be performed.
      
      To determine if the database is in a healthy state, we look at the
      replication lag of any replication slots defined on the primary. If the
      lag is deemed to great (100 MB by default) for too many slots, the
      migration is rescheduled for a later point in time.
      
      The health checking code is hidden behind a feature flag, allowing us to
      disable it if necessary.
      cbfd8c00e473
  7. 02 Aug, 2018 1 commit
  8. 01 Aug, 2018 1 commit
  9. 30 Jul, 2018 1 commit
  10. 25 Jul, 2018 2 commits
  11. 24 Jul, 2018 1 commit
  12. 20 Jul, 2018 1 commit
  13. 19 Jul, 2018 1 commit
    • Sean McGivern's avatar
      Add a Gitlab::Profiler.print_by_total_time convenience method · 632273a01660
      Sean McGivern authored
      This method uses Gitlab::Profiler::TotalTimeFlatPrinter internally, which is the
      same as RubyProf::FlatPrinter, but the min_percent option (and new max_percent
      option) applies to the _total_ time, not the _self_ time. This helps us figure
      out if we're calling a library inefficiently, for instance.
      632273a01660
  14. 17 Jul, 2018 1 commit
  15. 16 Jul, 2018 1 commit
  16. 12 Jul, 2018 1 commit
  17. 11 Jul, 2018 1 commit
  18. 09 Jul, 2018 5 commits
  19. 06 Jul, 2018 2 commits
  20. 04 Jul, 2018 1 commit
    • Bob Van Landuyt's avatar
      Add pipeline lists to GraphQL · 0a85b2bcbc2d
      Bob Van Landuyt authored
      This adds Keyset pagination to GraphQL lists. PoC for that is
      pipelines on merge requests and projects.
      
      When paginating a list, the base-64 encoded id of the ordering
      field (in most cases the primary key) can be passed in the `before` or
      `after` GraphQL argument.
      0a85b2bcbc2d
  21. 03 Jul, 2018 1 commit
  22. 30 Jun, 2018 2 commits
  23. 28 Jun, 2018 1 commit
  24. 26 Jun, 2018 1 commit
    • Sean McGivern's avatar
      Add a helper to rename a column using a background migration · 82cd3828cb5b
      Sean McGivern authored
      This works the same way as change_column_type_using_background_migration, but
      for renaming a column. It takes a table, not a relation, to match its concurrent
      counterpart.
      
      Also, generalise the cleanup migrations to reduce code duplication.
      82cd3828cb5b
  25. 25 Jun, 2018 2 commits
  26. 22 Jun, 2018 1 commit
  27. 21 Jun, 2018 1 commit
  28. 20 Jun, 2018 2 commits