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
2021-11-18Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42GitLab Bot
2020-05-20Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot
2019-07-16Rename Redactor classes to ReferenceRedactorSarah Yasonik
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.
2018-10-07Enable more frozen string in lib/**/*.rbgfyoung
Enables frozen for the following: * lib/*.rb * lib/banzai/**/*.rb * lib/bitbucket/**/*.rb * lib/constraints/**/*.rb * lib/container_registry/**/*.rb * lib/declarative_policy/**/*.rb Partially addresses #47424.
2017-11-16Adds Rubocop rule for line break after guard clauseJacopo
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-11-06Resolve "DashboardController#activity.json is slow due to SQL"Francisco Javier López
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-09-06Adds cacheless render to Banzai object renderTiago Botelho
2017-08-14Whitelist or fix additional `Gitlab/PublicSend` cop violationsRobert Speicher
An upcoming update to rubocop-gitlab-security added additional violations.
2017-08-04Don't bother going through an entire Banzai pipeline for empty textRobert Speicher
This bails out of `cacheless_render` immediately unless the provided text is present, since there's no point. This is a slight improvement in our test performance. Across the creation of 1,000 `Namespace` records, which caches the `description` field and which is blank by default in its factory, this saves about four seconds, which... sure. Why not.
2017-04-21Start versioning cached markdown fieldsNick Thomas
2017-04-21Remove a use of module_functionNick Thomas
2017-01-19make mentions working when project not specifiedJarka Kadlecova
2016-11-04Split out markdown cache storage into a separate methodNick Thomas
2016-10-14Use module_function in Banzai::RendererYorick Peterse
Using `extend self` prevents GitLab Performance Monitoring from being able to track class methods. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23347
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.
2016-07-19Make banzai module that handles markdown singletonGrzegorz Bizon
2016-07-13ObjectRenderer doesn't crash when no objects to cache with ↵Paco Guzman
Rails.cache.read_multi
2016-07-12Object renderer read_multi rendered entries from CachePaco Guzman
2016-06-21Move pre_process into render_resultYorick Peterse
The method Banzai::Renderer.pre_process would always be called, regardless of whether the Markdown to render was already cached or not. In cache the document _was_ cached the output of the pre-processing pipeline was ignored resulting in it doing nothing but wasting CPU cycles. This commit moves Banzai::Renderer.pre_process into Banzai::Renderer.render_result so that it's _only_ used when needed.
2016-04-11Instrument Banzai codeYorick Peterse
2016-03-03Add a PreProcessPipelineRobert Speicher
2016-01-06Revert "Temporarily disable Markdown caching"Douwe Maan
This reverts commit d337d5e7137d9b3fd0f9b8890a3ba9296323acc7.
2016-01-06Revert "Add DEBUG_BANZAI_CACHE env var to debug Banzai cache issue."Douwe Maan
This reverts commit 4b027bc93a7875c3937f6b90ac1049b4a4d72da5.
2016-01-04Add DEBUG_BANZAI_CACHE env var to debug Banzai cache issue.Douwe Maan
2015-12-16Temporarily disable Markdown cachingDouwe Maan
2015-12-15Move Markdown/reference logic from Gitlab::Markdown to BanzaiDouwe Maan