Commit graph

13 commits

Author SHA1 Message Date
Jarka Košanová
c0e9eb0eac Support short reference to group entities from project entities
- add a direct project parent (group) to Banzai context
- if an epic is referenced from a direct descendant
  -> change epic to_reference to use short reference
2018-10-04 10:22:00 +02:00
Brett Walker
750af9fd32 Use proper markdown rendering for previews 2018-07-06 18:49:33 +00:00
Brett Walker
f79410fe17 enable CommonMark as the default 2018-06-14 08:30:16 +00:00
Brett Walker
36a5a2c331 for cached markdown fields, select the correct engine
and also make sure that if a field is saved, then the existing cache version is maintained or only upgraded to the version with the same markdown engine.
2018-04-17 17:42:19 +02:00
Greg Stark
e8ab4d92b4 Treat empty markdown and html strings as valid cached text, not missing cache that needs to be updated 2017-12-12 14:01:53 +00:00
Toon Claes
d13669716a Create idea of read-only database
In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo
secondary node). But in GitLab CE it also might be useful to have the
"read-only" idea around. So port it back to GitLab CE.

Also having the principle of read-only in GitLab CE would hopefully
lead to less errors introduced, doing write operations when there
aren't allowed for read-only calls.

Closes gitlab-org/gitlab-ce#37534.
2017-10-06 22:37:40 +02:00
Bob Van Landuyt
3dd2476eb3 Refresh the markdown cache if it was nil
If the cached html_field for a markdown_field is `nil` while the
mfarkdown_field is not, it needs to be refreshed.
2017-05-02 15:24:41 +02:00
Nick Thomas
0e24b1280e Fix a failing spec 2017-04-25 17:13:44 +01:00
Nick Thomas
d2b883b750 Start versioning cached markdown fields 2017-04-21 17:24:33 +01:00
Nick Thomas
e9819de10a Remove the ClearDatabaseCacheWorker 2017-04-21 11:52:28 +01:00
Douwe Maan
02494f7ce8 Fix specs 2017-02-23 09:31:57 -06:00
Ebrahim Byagowi
7e3ff18523 Add RTL support to markdown renderer 2016-10-16 17:47:48 +03:30
Nick Thomas
e94cd6fdfe Add markdown cache columns to the database, but don't use them yet
This commit adds a number of _html columns and, with the exception of Note,
starts updating them whenever the content of their partner fields changes.

Note has a collision with the note_html attr_accessor; that will be fixed later

A background worker for clearing these cache columns is also introduced - use
`rake cache:clear` to set it off. You can clear the database or Redis caches
separately by running `rake cache:clear:db` or `rake cache:clear:redis`,
respectively.
2016-10-07 02:54:25 +01:00