Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Admin
Commits
e01ae794
Unverified
Commit
e01ae794
authored
8 months ago
by
Sébastien Gaya
Committed by
GitHub
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
set new data with updated template (#2097)
* set new data with updated template * fix
parent
1a5df82a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/jobs/refactor_options_job.rb
+5
-0
5 additions, 0 deletions
app/jobs/refactor_options_job.rb
with
5 additions
and
0 deletions
app/jobs/refactor_options_job.rb
+
5
−
0
View file @
e01ae794
...
...
@@ -14,11 +14,13 @@ class RefactorOptionsJob < ApplicationJob
template
.
option_categories
=
template
.
show_category
template
.
option_summary
=
template
.
show_summary
template
.
option_status
=
template
.
show_status
block
.
data
=
template
.
data
block
.
save
end
Communication
::
Block
.
organizations
.
find_each
do
|
block
|
template
=
block
.
template
template
.
option_link
=
template
.
with_link
block
.
data
=
template
.
data
block
.
save
end
Communication
::
Block
.
pages
.
find_each
do
|
block
|
...
...
@@ -26,12 +28,14 @@ class RefactorOptionsJob < ApplicationJob
template
.
option_image
=
template
.
show_image
template
.
option_summary
=
template
.
show_description
template
.
option_main_summary
=
template
.
show_main_description
block
.
data
=
template
.
data
block
.
save
end
Communication
::
Block
.
persons
.
find_each
do
|
block
|
template
=
block
.
template
template
.
option_image
=
template
.
with_photo
template
.
option_link
=
template
.
with_link
block
.
data
=
template
.
data
block
.
save
end
Communication
::
Block
.
posts
.
find_each
do
|
block
|
...
...
@@ -41,6 +45,7 @@ class RefactorOptionsJob < ApplicationJob
template
.
option_date
=
!
template
.
hide_date
template
.
option_image
=
!
template
.
hide_image
template
.
option_summary
=
!
template
.
hide_summary
block
.
data
=
template
.
data
block
.
save
end
# Headings (pas de lien avec les options)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment