Commit graph

18 commits

Author SHA1 Message Date
GitLab Bot
3e06afc4cd Add latest changes from gitlab-org/gitlab@master 2020-12-10 12:09:43 +00:00
GitLab Bot
effda22b3e Add latest changes from gitlab-org/gitlab@master 2020-09-28 12:10:02 +00:00
GitLab Bot
dc965b8cc8 Add latest changes from gitlab-org/gitlab@master 2020-09-04 00:09:08 +00:00
GitLab Bot
23ff717a29 Add latest changes from gitlab-org/gitlab@master 2020-06-10 09:08:35 +00:00
GitLab Bot
896b68514b Add latest changes from gitlab-org/gitlab@master 2020-05-07 12:09:46 +00:00
GitLab Bot
42263d6451 Add latest changes from gitlab-org/gitlab@master 2020-03-02 00:07:41 +00:00
GitLab Bot
0282449e6e Add latest changes from gitlab-org/gitlab@master 2019-11-20 06:06:16 +00:00
GitLab Bot
25989ab7ef Add latest changes from gitlab-org/gitlab@master 2019-10-18 11:11:44 +00:00
Ash McKenzie
19ff9d9899
Replace rails_helper.rb with spec_helper.rb
rails_helper.rb's only logic was to require
spec_helper.rb.
2019-08-30 12:26:18 +10:00
Patrick Bajao
2eecfd8f9d Use Redis for CacheMarkDownField on non AR models
This allows using `CacheMarkdownField` for models that are not backed
by ActiveRecord.

When the including class inherits `ActiveRecord::Base` we include
`Gitlab::MarkdownCache::ActiveRecord::Extension`. This will cause the
markdown fields to be rendered and the generated HTML stored in a
`<field>_html` attribute on the record. We also store the version
used for generating the markdown.

All other classes that include this model will include the
`Gitlab::MarkdownCache::Redis::Extension`. This add the `<field>_html`
attributes to that model and will generate the html in them. The
generated HTML will be cached in redis under the key
`markdown_cache:<class>:<id>`. The class this included in must
therefore respond to `id`.
2019-06-05 13:19:59 +08:00
Jan Provaznik
433bcf9b04 Add local markdown version
Cached markdown version is composed both from global and local
markdown version. This allows admins to bump version locally when
needed (e.g. when external URL is changed).
2019-02-06 19:46:59 +01:00
Rémy Coutable
3a2abc1d50
Enable the Layout/ExtraSpacing cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
2019-01-24 13:05:45 +01:00
Shinya Maeda
e1449df7a2 Fix coding offence 2018-12-04 19:24:21 +09:00
Shinya Maeda
45a5ed6d02 fix wording 2018-12-03 22:01:30 +09:00
Shinya Maeda
bec4740f30 Fix the coding style 2018-12-03 21:47:26 +09:00
Shinya Maeda
dd4a8df4cb Validate enum uniqueness 2018-12-03 20:10:13 +09:00
Jan Provaznik
d95c1f0335 Use ResourceLabelEvent for tracking label changes 2018-09-07 13:39:20 +00:00
Jan Provaznik
6b2b3d7f49 Resource event model 2018-08-01 08:58:49 +00:00