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
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-04-05 13:13:10 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-04-05 16:48:41 +0300
commit902cec12b5b531434ccf7ecf6df22ddb4249c253 (patch)
tree370ebbe5e0f0c49dad5d6b742941fe4a49761568 /app/models/project.rb
parente3acc982a87d8d694690c928cf5ca792218c1782 (diff)
Don't export `Project#description_html`
Since we can regenerate `description_html` from the `description`, we should not export it. This avoids some complexity when overriding the description during an import/export where we would need to invalidate this cached field. Now we refresh the markdown cache after the import
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 71d2f30698e..1d583831156 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -1478,6 +1478,7 @@ class Project < ActiveRecord::Base
remove_import_jid
update_project_counter_caches
after_create_default_branch
+ refresh_markdown_cache!
end
def update_project_counter_caches