gitlab-org--gitlab-foss/spec
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
..
bin Add some frozen string to spec/**/*.rb 2019-04-15 10:17:05 +00:00
config Add some frozen string to spec/**/*.rb 2019-04-15 10:17:05 +00:00
controllers Merge branch '58941-use-gitlab-serverless-with-existing-knative-installation' into 'master' 2019-06-04 11:20:09 +00:00
db Change the schema of the common_metrics.yml 2019-04-17 20:02:24 +08:00
dependencies
factories Merge branch 'set-real-next-run-at-for-preventing-duplciate-pipeline-creations' into 'master' 2019-06-04 08:22:14 +00:00
features Use Redis for CacheMarkDownField on non AR models 2019-06-05 13:19:59 +08:00
finders Move file one folder level up to avoid namespace conflict 2019-06-03 15:42:06 +01:00
fixtures Backporting EE fix 2019-06-03 22:42:39 +00:00
frontend Merge branch 'fix-external-dashboard-specs' into 'master' 2019-06-04 21:58:51 +00:00
graphql Expose wiki_size on GraphQL API 2019-06-04 12:11:41 +00:00
haml_lint/linter Move files from lib/haml_lint to haml_lint 2019-05-21 19:49:14 -07:00
helpers Use Redis for CacheMarkDownField on non AR models 2019-06-05 13:19:59 +08:00
initializers Store Let's Encrypt private key in settings 2019-05-28 04:47:34 +00:00
javascripts Merge branch 'fe-jestify-specs-starting-with-a-1' into 'master' 2019-06-04 21:20:31 +00:00
lib Use Redis for CacheMarkDownField on non AR models 2019-06-05 13:19:59 +08:00
mailers Fix typo in project invitation declined test 2019-05-31 20:49:27 +08:00
migrations Fix migration failure when groups are missing route 2019-06-01 23:06:46 -07:00
models Use Redis for CacheMarkDownField on non AR models 2019-06-05 13:19:59 +08:00
policies Check instance cluster feature at policy level 2019-05-07 08:37:04 +12:00
presenters Merge branch 'abstract-auto-merge' into 'master' 2019-06-03 11:24:59 +00:00
rack_servers Better document the current states of our testing levels 2019-04-17 15:50:10 +02:00
requests Merge branch 'osw-sync-merge-ref-upon-mergeability-check' into 'master' 2019-06-03 16:29:41 +00:00
routing Merge branch 'dz-scope-project-routes-3' into 'master' 2019-05-31 15:53:04 +00:00
rubocop Merge branch 'qa-extend-click-visit-actions' into 'master' 2019-05-28 16:44:22 +00:00
serializers Abstract auto merge processes 2019-06-03 13:15:29 +07:00
services Merge branch 'cancel-auto-merge-when-merge-request-is-closed' into 'master' 2019-06-04 11:24:07 +00:00
sidekiq/cron
support Merge branch '58941-use-gitlab-serverless-with-existing-knative-installation' into 'master' 2019-06-04 11:20:09 +00:00
tasks Merge branch 'gitaly-version-v1.43.0' into 'master' 2019-05-31 14:16:54 +00:00
uploaders Remove legacy artifact related code 2019-05-31 10:49:17 +07:00
validators Align UrlValidator to validate_url gem implementation. 2019-04-11 06:29:07 +00:00
views Add Pipeline IID to views 2019-05-30 09:32:20 +00:00
workers Merge branch 'introduce-auto-merge-process-worker' into 'master' 2019-06-04 11:15:47 +00:00
factories_spec.rb
fast_spec_helper.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb Revert "Merge branch 'revert-04c3c6dd' into 'master'" 2019-05-22 21:47:32 +02:00