Skip to content
Snippets Groups Projects
  1. Aug 01, 2018
    • Zeger-Jan van de Weg's avatar
      Add repository languages for projects · 79a5d768
      Zeger-Jan van de Weg authored
      Our friends at GitHub show the programming languages for a long time,
      and inspired by that this commit means to create about the same
      functionality.
      
      Language detection is done through Linguist, as before, where the
      difference is that we cache the result in the database. Also, Gitaly can
      incrementaly scan a repository. This is done through a shell out, which
      creates overhead of about 3s each run. For now this won't be improved.
      
      Scans are triggered by pushed to the default branch, usually `master`.
      However, one exception to this rule the charts page. If we're requesting
      this expensive data anyway, we just cache it in the database.
      
      Edge cases where there is no repository, or its empty are caught in the
      Repository model. This makes use of Redis caching, which is probably
      already loaded.
      
      The added model is called RepositoryLanguage, which will make it harder
      if/when GitLab supports multiple repositories per project. However, for
      now I think this shouldn't be a concern. Also, Language could be
      confused with the i18n languages and felt like the current name was
      suiteable too.
      
      Design of the Project#Show page is done with help from @dimitrieh. This
      change is not visible to the end user unless detections are done.
      Unverified
      79a5d768
  2. Jul 31, 2018
  3. Jul 30, 2018
  4. Jul 28, 2018
  5. Jul 27, 2018
  6. Jul 26, 2018
  7. Jul 25, 2018
  8. Jul 24, 2018
  9. Jul 23, 2018
  10. Jul 20, 2018
  11. Jul 19, 2018
  12. Jul 18, 2018
    • Stan Hu's avatar
      Limit the TTL for anonymous sessions to 1 hour · c559c43d
      Stan Hu authored
      By default, all sessions are given the same expiration time configured in the
      session store (e.g. 1 week). However, unauthenticated users can generate a lot
      of sessions, primarily for CSRF verification. It makes sense to reduce the TTL
      for unauthenticated to something much lower than the default (e.g. 1 hour) to
      limit Redis memory. In addition, Rails creates a new session after login,
      so the short TTL doesn't even need to be extended.
      
      Closes #48101
      c559c43d
    • Imre (Admin)'s avatar
      Delete UserActivities and related workers · c62fce98
      Imre (Admin) authored
      Unverified
      c62fce98
  13. Jul 17, 2018
Loading