An error occurred fetching the project authors.
  1. 07 Jun, 2016 7 commits
  2. 06 Jun, 2016 1 commit
    • Timothy Andrew's avatar
      Add a `U2fRegistrations` table/model. · 791cc913
      Timothy Andrew authored
      - To hold registrations from U2F devices, and to authenticate them.
      - Previously, `User#two_factor_enabled` was aliased to the
        `otp_required_for_login` column on `users`.
      - This commit changes things a bit:
          - `User#two_factor_enabled` is not a method anymore
          - `User#two_factor_enabled?` checks both the
            `otp_required_for_login` column, as well as `U2fRegistration`s
          - Change all instances of `User#two_factor_enabled` to
            `User#two_factor_enabled?`
      - Add the `u2f` gem, and implement registration/authentication at the
        model level.
      791cc913
  3. 28 May, 2016 1 commit
  4. 16 May, 2016 1 commit
  5. 11 May, 2016 1 commit
  6. 10 May, 2016 2 commits
    • Sean McGivern's avatar
      Restrict starred projects to viewable ones · 97424ea5
      Sean McGivern authored
      `User#starred_projects` doesn't perform any visibility checks. This has
      a couple of problems:
      
      1. It assumes a user can always view all of their starred projects in
         perpetuity (project not changed to private, access revoked, etc.).
      2. It assumes that we'll only ever allow a user to star a project they
         can view. This is currently the case, but bugs happen.
      
      Add `User#viewable_starred_projects` to filter the starred projects by
      those the user either has explicit access to, or are public or
      internal. Then use that in all places where we list the user's starred
      projects.
      97424ea5
    • Zeger-Jan van de Weg's avatar
      dccf8a9f
  7. 09 May, 2016 1 commit
  8. 31 Mar, 2016 1 commit
  9. 15 Mar, 2016 1 commit
  10. 13 Mar, 2016 2 commits
  11. 11 Mar, 2016 2 commits
  12. 29 Feb, 2016 2 commits
  13. 24 Feb, 2016 1 commit
  14. 20 Feb, 2016 2 commits
  15. 09 Feb, 2016 1 commit
  16. 02 Feb, 2016 1 commit
  17. 08 Jan, 2016 1 commit
  18. 06 Jan, 2016 1 commit
  19. 03 Jan, 2016 1 commit
  20. 15 Dec, 2015 1 commit
  21. 14 Dec, 2015 1 commit
  22. 09 Dec, 2015 2 commits
  23. 07 Dec, 2015 1 commit
  24. 18 Nov, 2015 2 commits
    • Yorick Peterse's avatar
      Refactor User#authorized_groups/projects · e116a356
      Yorick Peterse authored
      These methods no longer include public groups/projects (that don't
      belong to the actual user) as this is handled by the various finder
      classes now. This also removes the need for passing extra arguments.
      
      Note that memoizing was removed _explicitly_. For whatever reason doing
      so messes up the users controller to a point where it claims a certain
      user does _not_ have access to certain groups/projects when it does have
      access. Existing code shouldn't be affected as these methods are only
      called in ways that they'd run queries anyway (e.g. a combination of
      "any?" and "each" which would run 2 queries regardless of memoizing).
      e116a356
    • Yorick Peterse's avatar
      Refactor getting user groups/projects/contributions · 5fcd9986
      Yorick Peterse authored
      This new setup no longer loads any IDs into memory using "pluck",
      instead using SQL UNIONs to merge the various datasets together. This
      results in greatly improved query performance as well as a reduction of
      memory usage.
      
      The old setup was in particular problematic when requesting the
      authorized projects _including_ public/internal projects as this would
      result in roughly 65000 project IDs being loaded into memory. These IDs
      would in turn be passed to other queries.
      5fcd9986
  25. 13 Nov, 2015 1 commit
  26. 03 Nov, 2015 1 commit
    • Yorick Peterse's avatar
      Fixed User sorting specs · a2f8f9ad
      Yorick Peterse authored
      The descriptions were not accurate and one particular spec seemingly
      expected the wrong User row to be returned.
      a2f8f9ad
  27. 02 Oct, 2015 1 commit