1. 11 Jul, 2017 1 commit
  2. 10 Jul, 2017 1 commit
  3. 07 Jul, 2017 1 commit
  4. 06 Jul, 2017 3 commits
    • Yorick Peterse's avatar
      Added Cop to blacklist the use of `dependent:` · ccb23d8870a8
      Yorick Peterse authored
      This is allowed for existing instances so we don't end up 76 offenses
      right away, but for new code one should _only_ use this if they _have_
      to remove non database data. Even then it's usually better to do this in
      a service class as this gives you more control over how to remove the
      data (e.g. in bulk).
      ccb23d8870a8
    • Yorick Peterse's avatar
      Add many foreign keys to the projects table · 8b8987deee58
      Yorick Peterse authored
      This removes the need for relying on Rails' "dependent" option for data
      removal, which is _incredibly_ slow (even when using :delete_all) when
      deleting large amounts of data. This also ensures data consistency is
      enforced on DB level and not on application level (something Rails is
      really bad at).
      
      This commit also includes various migrations to add foreign keys to
      tables that eventually point to "projects" to ensure no rows get
      orphaned upon removing a project.
      8b8987deee58
    • Lin Jen-Shin's avatar
  5. 05 Jul, 2017 3 commits
  6. 04 Jul, 2017 1 commit
  7. 03 Jul, 2017 3 commits
  8. 30 Jun, 2017 3 commits
  9. 29 Jun, 2017 2 commits
  10. 28 Jun, 2017 8 commits
  11. 26 Jun, 2017 1 commit
  12. 23 Jun, 2017 3 commits
  13. 21 Jun, 2017 1 commit
  14. 19 Jun, 2017 2 commits
  15. 16 Jun, 2017 2 commits
    • Pawel Chojnacki's avatar
      Move Prometheus service to project model · 41ea5ad13c4c
      Pawel Chojnacki authored
      41ea5ad13c4c
    • Yorick Peterse's avatar
      Refactor Project.with_feature_available_for_user · cfe62efd6b28
      Yorick Peterse authored
      This method used to use a UNION, which would lead to it performing the
      same query twice; producing less than ideal performance. Further, in
      certain cases ActiveRecord could get confused and mess up the variable
      bindings, though it's not clear how/why exactly this happens.
      
      Fortunately we can work around all of this by building some of the WHERE
      conditions manually, allowing us to use a simple OR statement to get all
      the data we want without any of the above problems.
      cfe62efd6b28
  16. 08 Jun, 2017 2 commits
  17. 05 Jun, 2017 1 commit
  18. 03 Jun, 2017 1 commit
  19. 02 Jun, 2017 1 commit