Commit graph

15 commits

Author SHA1 Message Date
James Lopez
a4d242b887 refactored some namespace stuff and fixed project tree restorer spec. also removing controller so that it belongs to the UI MR 2016-05-04 17:42:02 +02:00
James Lopez
7614d230a2 fix conflicts 2016-04-21 17:28:56 +02:00
James Lopez
267fd01ce8 fixed import and spec is now passing! 2016-04-13 17:47:14 +02:00
James Lopez
0d8a97dcef some more fixes to import projects 2016-04-12 17:10:30 +02:00
Arinde Eniola
1d1ca8b9c2 fix emoji aliases not showing in autocomplete 2016-04-09 13:29:37 +01:00
James Lopez
d29c816dfe Merge branch 'feature/project-export' of gitlab.com:gitlab-org/gitlab-ce into feature/project-import 2016-04-08 16:04:59 +02:00
Yorick Peterse
5830d80b8d Pre-calculate Emoji digests
By pre-calculating the digests we can manually construct the emoji URLs,
removing the need for using Rails' asset URL helpers. The reason we
don't want to use these helpers for Emojis is two-fold:

1. Rails' image_url() method is slow, really slow. For one it _might_
   have to calculate digests but it also performs a lot of other
   intensive operations (judging by the source code and based on
   measuring timings).

2. We have a lot of Emoji which coupled with the above can result in it
   taking minutes to load Emoji autocomplete data.

Using this pre-calculation setup generating the digests takes around 7
seconds (including the time it takes to start Rails/Rake), and only
around 600 milliseconds to load _all_ the autocomplete data of a project
(measured locally).

This commit _does_ change the Emoji URLs from absolute to relative URLs
as these are much easier to generate.

To update the Emoji data simply run:

    rake gemojione:digests

Then commit any changes.

Fixes gitlab-org/gitlab-ce#14009
2016-03-30 19:29:17 +02:00
James Lopez
a59ba217ae WIP - building up import tree with sub relations, etc 2016-03-14 18:32:56 +01:00
James Lopez
cbae4038ac updated test json 2016-03-11 11:37:42 +01:00
James Lopez
b7149266ea WIP project members - json not quite right yet 2016-03-11 10:25:34 +01:00
James Lopez
febff153cc started mapping members 2016-03-10 18:43:57 +01:00
James Lopez
2dc2ce45d7 WIP - broken spec and some import stuff so I can create a MR on this. 2016-03-09 16:21:02 +01:00
Robert Speicher
bbdf05993b Update fixtures/emojis/aliases.json
Also adds a script to re-generate them from the index.
2016-02-15 23:41:44 -05:00
Robert Speicher
262286936a Update fixtures/emojis/index.json
Current as of Gemojione 2.2.1 - https://git.io/vgQx0
2016-02-15 23:41:42 -05:00
Valery Sizov
b6de0d2830 Emoji picker: better alias handling 2015-12-24 11:28:55 +02:00