mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
(bug) private method create_statistic_subtype
This commit is contained in:
parent
4d942b4161
commit
aee2c68485
@ -1,6 +1,8 @@
|
|||||||
# Changelog Fab-manager
|
# Changelog Fab-manager
|
||||||
|
|
||||||
- Optimized memory consumption in statistics fetcher service
|
- Optimized memory consumption in statistics fetcher service
|
||||||
|
- Fix a bug: private method `create_statistic_subtype'
|
||||||
|
- [TODO DEPLOY] `rails db:seed`
|
||||||
|
|
||||||
## v5.6.9 2023 February 02
|
## v5.6.9 2023 February 02
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ Sentry.init do |config|
|
|||||||
# Set traces_sample_rate to 1.0 to capture 100%
|
# Set traces_sample_rate to 1.0 to capture 100%
|
||||||
# of transactions for performance monitoring.
|
# of transactions for performance monitoring.
|
||||||
# We recommend adjusting this value in production.
|
# We recommend adjusting this value in production.
|
||||||
config.traces_sample_rate = 0.1
|
config.traces_sample_rate = 0.01
|
||||||
config.environment = Rails.env
|
config.environment = Rails.env
|
||||||
config.release = Version.current
|
config.release = Version.current
|
||||||
end
|
end
|
||||||
|
@ -145,7 +145,7 @@ end
|
|||||||
Plan.find_each do |plan|
|
Plan.find_each do |plan|
|
||||||
type = plan.find_statistic_type
|
type = plan.find_statistic_type
|
||||||
subtype = if StatisticSubType.find_by(key: plan.slug).nil?
|
subtype = if StatisticSubType.find_by(key: plan.slug).nil?
|
||||||
plan.create_statistic_subtype
|
StatisticSubType.create!(key: plan.slug, label: plan.name)
|
||||||
else
|
else
|
||||||
StatisticSubType.find_by(key: plan.slug)
|
StatisticSubType.find_by(key: plan.slug)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user