Skip to content
Snippets Groups Projects
  1. Jan 14, 2020
  2. Jan 06, 2020
  3. Jan 02, 2020
  4. Dec 18, 2019
  5. Dec 16, 2019
  6. Nov 15, 2019
    • Paul Slaughter's avatar
      Wrap sourcegraph in feature flag and user opt-in · ddcb7c1d
      Paul Slaughter authored
      ------------
      DB Migration
      ------------
      
      This commit contains a DB migration adding the following fields:
      
      - `applicaiton_settings::sourcegraph_public_only` this is helpful for
      managing the difference between self-hosted and gitlab.com, where on
      .com Sourcegraph is not authorized to see private projects, but in a
      self-hosted instance, it's based on the authentication token they
      preconfigure with their private sourcegraph instance.
      
      - `user_preferences::sourcegraph_enabled` this is used to determine
      if the user has opted in for sourcegraph or not.
      
      ------------
      Feature flag
      ------------
      
      Example:
      
      ```
      Feature.enable(:sourcegraph, Project.find_by_full_path('lorem/ipsum'))
      ```
      
      It is possible to conditionally apply this feature flag, so that the
      bundle is only loaded on certain projects. This makes showing the admin
      (or user) settings based on this flag difficult since there is no project
      or group in scope for these views. For this reason, we've introduced the
      `Gitlab::Sourcegraph` module to encapsulate whether a feature is
      available (conditionally or globally).
      
      How?
      
      Conditional or global enablement can be tested with:
      
      ```
      !Feature.get(:sourcegraph).off?
      ```
      
      https://github.com/jnunemaker/flipper/blob/fa78a0030c7f139aecc3f9c8468baf9fd1498eb9/lib/flipper/feature.rb#L223
      
      ----
      Also
      ----
      
      The bundle is only loaded in project routes (potential for further optimization here)
      Verified
      ddcb7c1d
    • Felix Becker's avatar
      Add Sourcegraph integration · 7f4049c3
      Felix Becker authored and Paul Slaughter's avatar Paul Slaughter committed
      - Initial draft
      Verified
      7f4049c3
  7. Nov 07, 2019
    • Heinrich Lee Yu's avatar
      Render canary links based on server-side flag · 2026dc0d
      Heinrich Lee Yu authored
      This fixes the issue where these may be inconsistent with the
      canary favicon.
      
      This happens when:
      
      1. The cookie is set but the canary is not serving any requests
      2. The cookie is not set but we're forcing traffic to canary on
      specific routes
      2026dc0d
  8. Oct 23, 2019
  9. Sep 19, 2019
  10. Sep 18, 2019
  11. Aug 28, 2019
  12. Aug 26, 2019
  13. Aug 21, 2019
  14. Aug 14, 2019
  15. Jul 04, 2019
  16. Jun 28, 2019
  17. May 20, 2019
  18. May 10, 2019
  19. May 08, 2019
  20. May 07, 2019
  21. May 03, 2019
  22. Apr 26, 2019
  23. Apr 25, 2019
  24. Feb 19, 2019
  25. Feb 06, 2019
  26. Jan 31, 2019
    • Tim Zallmann's avatar
      EE Port for lazy loading select2 · 50c5efba
      Tim Zallmann authored
      Wraps all imports for select 2 to deferred imports,
      especially in the main.js we are actually checking if there 
      is any select 2 element on the page or not.
      50c5efba
  27. Jan 29, 2019
  28. Jan 08, 2019
  29. Dec 10, 2018
  30. Dec 08, 2018
  31. Dec 07, 2018
  32. Oct 15, 2018
  33. Sep 20, 2018
    • Mike Greiling's avatar
      Upgrade eslint to v5 · b1761aae
      Mike Greiling authored
      We needed to disable a few eslint-config-airbnb-base rules in order
      to keep the number of line changes under control. These should be
      re-enabled asap.
      Verified
      b1761aae
Loading