Commit graph

20 commits

Author SHA1 Message Date
Sam Rose
435458d2b1 Update API on frontend to use v4
Use options object to pass params for project endpoint
2017-03-14 06:58:20 -04:00
Alfredo Sumaran
6b2d4947a6 Merge branch '23948-assign-to-me' into 'master'
re-add Assign to Me link on new MR/Issue forms

Closes #23948

See merge request !9499
2017-03-07 07:08:38 +00:00
Simon Knox
4f143aa8f2 re-add Assign to Me link on new MR/Issue forms 2017-03-07 16:23:52 +11:00
Eric Eastwood
f602efea65 Fix wrong image src with cached gl-emoji and relative root 2017-03-06 12:54:46 -06:00
Eric Eastwood
e6fc0207cb Use native unicode emojis
- gl_emoji for falling back to image/css-sprite when the browser
   doesn't support an emoji
 - Markdown rendering (Banzai filter)
 - Autocomplete
 - Award emoji menu
    - Perceived perf
    - Immediate response because we now build client-side
 - Update `digests.json` generation in gemojione rake task to be more
   useful and  include `unicodeVersion`

MR: !9437

See issues

 - #26371
 - #27250
 - #22474
2017-03-06 12:54:46 -06:00
Valery Sizov
5a4ad9abce Make JS use API v3 because v4 is not frozen yet 2017-03-01 12:57:50 +02:00
Douwe Maan
7ea641b6d0 Enable Style/ColonMethodCall 2017-02-23 09:31:57 -06:00
Clement Ho
f20875ec45 Add username to gon 2017-01-09 16:00:53 -06:00
Munken
2d170a20dc Render math in Asciidoc and Markdown with KaTeX using code blocks 2016-12-14 16:50:54 +00:00
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