Skip to content

Commit 9610436

Browse files
author
Sang Truong
committed
FEATURE:TMA-1737, TMA-1738 - Change to propagate dateFilterConfig and dashboardPlugin during LCM release and rollout.
1 parent 0aba290 commit 9610436

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

.gdc-ii-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ configFilesForUpdate:
2222
- '.gdc-ii-config-chart.yaml'
2323

2424
customConstants:
25-
pipeline.deploy.testEnvironments: ['stg9', 'stg3', 'stg2', 'stg']
25+
pipeline.gitops-deploy.testEnvironments: ['stg9', 'stg3', 'stg2', 'stg']

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.42
1+
3.7.43

lib/gooddata/lcm/actions/collect_meta.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def call(params)
5353
client: development_client
5454
)
5555
kpi_dashboards = MdObject.query('analyticalDashboard', MdObject, client: development_client, project: from_project)
56-
objects = old_dashboards.to_a + kpi_dashboards.to_a
56+
kpi_dashboard_plugin = MdObject.query('dashboardPlugin', MdObject, client: development_client, project: from_project)
57+
kpi_date_filter_config = MdObject.query('dateFilterConfig', MdObject, client: development_client, project: from_project)
58+
objects = old_dashboards.to_a + kpi_dashboards.to_a + kpi_dashboard_plugin.to_a + kpi_date_filter_config.to_a
5759
else
5860
objects = GoodData::Dashboard.find_by_tag(
5961
production_tags,

spec/unit/actions/collect_meta_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
it 'retrieves all dashboards' do
2828
expect(GoodData::Dashboard).to receive(:all).and_return({})
29-
expect(GoodData::MdObject).to receive(:query).and_return({})
29+
expect(GoodData::MdObject).to receive(:query).exactly(3).times.and_return({})
3030
subject.class.call(params)
3131
end
3232
end

0 commit comments

Comments
 (0)