Created
July 23, 2019 18:03
-
-
Save perryqh/74cbbbb474ce950165b75651163df35b to your computer and use it in GitHub Desktop.
Testing PDU CMS staging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ===== Staging Test ===== | |
# Baseline. The following are the values from the "centralized" branch | |
garden_widget = GardenWidget.find_by(slug: 'button') | |
Setting.where(name: 'button_border_width'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 4432 | |
garden_widget = GardenWidget.find_by(slug: 'calls-to-action') | |
Setting.where(name: 'gradient_animation_duration'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 16072 | |
Setting.where(name: 'gradient_animation_duration', default_value: '7'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 16072 | |
Setting.where(name: 'foo'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 0 | |
# Deploy https://github.com/g5search/g5-content-management-system/pull/3994/files | |
# Run PDU | |
# | |
garden_widget = GardenWidget.find_by(slug: 'button') | |
Setting.where(name: 'button_border_width'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 0 | |
garden_widget = GardenWidget.find_by(slug: 'calls-to-action') | |
Setting.where(name: 'gradient_animation_duration'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 16072 | |
Setting.where(name: 'gradient_animation_duration', default_value: '7'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 0 | |
Setting.where(name: 'gradient_animation_duration', default_value: '6'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 16072 | |
Setting.where(name: 'foo'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 16072 | |
# | |
# == change back to centralized branch and run PDU | |
# | |
garden_widget = GardenWidget.find_by(slug: 'button') | |
Setting.where(name: 'button_border_width'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 4432 | |
garden_widget = GardenWidget.find_by(slug: 'calls-to-action') | |
Setting.where(name: 'gradient_animation_duration'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 16072 | |
Setting.where(name: 'gradient_animation_duration', default_value: '7'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 16072 | |
Setting.where(name: 'gradient_animation_duration', default_value: '6'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 0 | |
Setting.where(name: 'foo'). | |
joins(:widget). | |
where('widgets.garden_widget_id=:gwid', gwid: garden_widget.id). | |
count | |
# 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment