Commit graph

11 commits

Author SHA1 Message Date
Nick Thomas
48d563a3e4 Stop putting private tokens in Gon 2016-09-19 12:27:37 +01:00
Connor Shea
16a8160e9f
Fix help page paths to make sure shortcuts and the UI help page work.
Add a test to make sure the help page UI path doesn't break in the future.

Fix #19972 and #19889.
2016-07-19 11:17:14 -06:00
Paco Guzman
b5fa56eb3f Unused got variable with very bad performance
In any case if just want the value which is always ‘gitlab’

require 'benchmark/ips'

Project.first # To load database things
GitlabIssueTrackerService.first # To load database things

Benchmark.ips do |x|
  x.config(:time => 5, :warmup => 2)

  x.report("current") do
    Project.new.default_issue_tracker.to_param
  end

  x.report("") do
    'gitlab'
  end

  x.compare!
end

Calculating -------------------------------------
             current     4.000  i/100ms
                        30.938k i/100ms
-------------------------------------------------
             current     47.298  (±10.6%) i/s -    232.000 
                          4.366M (±20.9%) i/s -     17.202M

Comparison:
                    :  4366456.0 i/s
             current:       47.3 i/s - 92318.26x slower
2016-06-28 17:01:37 +02:00
Fatih Acet
92af60c244 Move award_menu_url variable into gon object. 2016-06-09 03:37:40 +03:00
Alfredo Sumaran
3b39214f29 Merge remote-tracking branch 'origin/master' into issue_14904 2016-04-21 12:47:32 -05:00
Jacob Schatz
b3f4e8b218 Revert "Merge branch 'sentry-js' into 'master' "
This reverts commit 0f309794e7, reversing
changes made to 1e596fef1c.
2016-04-21 07:27:27 -04:00
Alfredo Sumaran
5c10b29700 Merge remote-tracking branch 'origin/master' into issue_14904
# Conflicts:
#	app/views/shared/issuable/_sidebar.html.haml
2016-04-20 17:26:47 -05:00
Arinde Eniola
3e7a8b0789 place the sentry config into a new file, and some changes 2016-04-19 22:04:52 +01:00
Alfredo Sumaran
b41ddf9c69 Add shortcut_path to GonHelper module 2016-04-18 15:04:57 -05:00
Jacob Schatz
5f98fdcdc9 Add sentry logger to GitLab 2016-04-18 12:26:32 -04:00
Stan Hu
c7e384aab2 Add spec for deletion of authorized OAuth2 application
Closes #14370

Move gon function into its own helper
2016-04-14 07:24:58 -07:00