Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-11Banzai - avoid redis if attr is in DB cacheMario de la Ossa
When cache_collection_render runs we end up reading and writing things to redis even if we already have the rendered field cached in the DB. This commit avoids using redis at all whenever we have the field already rendered in the DB cache.
2019-06-05Use Redis for CacheMarkDownField on non AR modelsPatrick Bajao
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-04-24Backport EE cache updateFelipe Artur
2019-03-26Merge branch '54916-extended-tooltip-for-merge-request-links' into 'master'Phil Hughes
Resolve "Extended tooltip for merge request links" Closes #54916 See merge request gitlab-org/gitlab-ce!25221
2019-03-21Add merge request popover with detailsSam Bigelow
- Show pipeline status, title, MR Status and project path - Popover attached to gitlab flavored markdown everywhere, including: + MR/Issue Title + MR/Issue description + MR/Issue comments + Rendered markdown files
2019-03-20Rename the hidden option to whitelistedDouglas Barbosa Alexandre
2019-03-20Add option to not exclude _html fields from attributesDouglas Barbosa Alexandre
2019-02-06Add local markdown versionJan Provaznik
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-04Remove Redcarpet markdown engineJan Provaznik
This engine was replaced with CommonMarker in 11.4, it was deprecated since then.
2019-01-31Use the sourcepos attribute for finding tasksBrett Walker
2019-01-31Don't consider field invalid if updating html alsoBrett Walker
2019-01-17Bumping the CACHE_COMMONMARK_VERSIONBrett Walker
Since the rendering of footnotes is changed, the cached html need to be updated
2018-11-29Merge branch 'security-xss-in-markdown-following-unrecognized-html-element' ↵Cindy Pallares
into 'master' [master] XSS in markdown following unrecognized HTML element Closes #2732 See merge request gitlab/gitlabhq!2599
2018-08-07Enable more frozen string in app/models/**/*.rbgfyoung
Partially addresses #47424.
2018-07-06Use proper markdown rendering for previewsBrett Walker
2018-06-14enable CommonMark as the defaultBrett Walker
2018-04-17for cached markdown fields, select the correct engineBrett Walker
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.
2017-12-22Use relative URLs when linking to uploaded filesNick Thomas
2017-12-12Treat empty markdown and html strings as valid cached text, not missing ↵Greg Stark
cache that needs to be updated
2017-11-02CE port of code changed for epicsJarka Kadlecova
2017-10-06Create idea of read-only databaseToon Claes
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-08-14Whitelist or fix additional `Gitlab/PublicSend` cop violationsRobert Speicher
An upcoming update to rubocop-gitlab-security added additional violations.
2017-07-24Resolve "Lazy load images on the Frontend"Tim Zallmann
2017-07-05Fix stubbing attributes alongside cache_markdown_fieldNick Thomas
2017-05-02Refresh the markdown cache if it was `nil`Bob Van Landuyt
If the cached html_field for a markdown_field is `nil` while the mfarkdown_field is not, it needs to be refreshed.
2017-04-25Swap a before_save call with a before_create/before_update pair to avoid a ↵Nick Thomas
confict with elasticsearch-model
2017-04-21Start versioning cached markdown fieldsNick Thomas
2017-04-21Remove the ClearDatabaseCacheWorkerNick Thomas
2017-02-23ActiveSupport delegation is preferred over ForwardableDouwe Maan
2017-02-23Enable Style/MutableConstantDouwe Maan
2017-01-25address commentsJarka Kadlecova
2017-01-19make mentions working when project not specifiedJarka Kadlecova
2016-10-07Add markdown cache columns to the database, but don't use them yetNick Thomas
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.