Skip to content

Commit c7998d9

Browse files
committed
FINERACT-2481: Remove Pentaho reports from the initial data used by the report table
1 parent 6269cbb commit c7998d9

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed

fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,5 @@
228228
<include file="parts/0207_add_allow_full_term_for_tranche.xml" relativeToChangelogFile="true" />
229229
<include file="parts/0208_trial_balance_summary_with_asset_owner_journal_entry_aggregation_fix.xml" relativeToChangelogFile="true" />
230230
<include file="parts/0209_transaction_summary_with_asset_owner_and_from_asset_owner_id_for_asset_sales.xml" relativeToChangelogFile="true" />
231+
<include file="parts/0210_remove_pentaho_legacy_data.xml" relativeToChangelogFile="true"/>
231232
</databaseChangeLog>
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
21+
-->
22+
<?xml version="1.0" encoding="UTF-8"?>
23+
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
24+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
26+
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">
27+
28+
<changeSet author="fineract" id="0210">
29+
<comment>FINERACT-2481: Precisely removing 44 core Pentaho reports and their associated permissions to clean up initial data</comment>
30+
31+
<delete tableName="m_report_parameter">
32+
<where>report_id IN (SELECT id FROM stretchy_report WHERE report_name IN (
33+
'Balance Sheet', 'Income Statement', 'Trial Balance', 'Loan Account Schedule',
34+
'Branch Expected Cash Flow', 'Expected Payments By Date - Formatted', 'Savings Transactions',
35+
'Client Savings Summary', 'Active Loans - Details(Pentaho)', 'Active Loans - Summary(Pentaho)',
36+
'Active Loans by Disbursal Period(Pentaho)', 'Active Loans in last installment Summary(Pentaho)',
37+
'Active Loans in last installment(Pentaho)', 'Active Loans Passed Final Maturity Summary(Pentaho)',
38+
'Active Loans Passed Final Maturity(Pentaho)', 'Aging Detail(Pentaho)',
39+
'Aging Summary (Arrears in Months)(Pentaho)', 'Aging Summary (Arrears in Weeks)(Pentaho)',
40+
'Client Listing(Pentaho)', 'Client Loans Listing(Pentaho)', 'Expected Payments By Date - Basic(Pentaho)',
41+
'Funds Disbursed Between Dates Summary by Office(Pentaho)', 'Funds Disbursed Between Dates Summary(Pentaho)',
42+
'Loans Awaiting Disbursal Summary by Month(Pentaho)', 'Loans Awaiting Disbursal Summary(Pentaho)',
43+
'Loans Awaiting Disbursal(Pentaho)', 'Loans Pending Approval(Pentaho)',
44+
'Obligation Met Loans Details(Pentaho)', 'Obligation Met Loans Summary(Pentaho)',
45+
'Portfolio at Risk by Branch(Pentaho)', 'Portfolio at Risk(Pentaho)', 'Rescheduled Loans(Pentaho)',
46+
'TxnRunningBalances(Pentaho)', 'Written-Off Loans(Pentaho)', 'Client Saving Transactions',
47+
'Client Loan Account Schedule', 'Savings Transaction Receipt', 'Loan Transaction Receipt',
48+
'Staff Assignment History', 'GeneralLedgerReport', 'Active Loan Summary per Branch',
49+
'Balance Outstanding', 'Collection Report', 'Disbursal Report'
50+
))</where>
51+
</delete>
52+
53+
<delete tableName="stretchy_report">
54+
<where>report_name IN (
55+
'Balance Sheet', 'Income Statement', 'Trial Balance', 'Loan Account Schedule',
56+
'Branch Expected Cash Flow', 'Expected Payments By Date - Formatted', 'Savings Transactions',
57+
'Client Savings Summary', 'Active Loans - Details(Pentaho)', 'Active Loans - Summary(Pentaho)',
58+
'Active Loans by Disbursal Period(Pentaho)', 'Active Loans in last installment Summary(Pentaho)',
59+
'Active Loans in last installment(Pentaho)', 'Active Loans Passed Final Maturity Summary(Pentaho)',
60+
'Active Loans Passed Final Maturity(Pentaho)', 'Aging Detail(Pentaho)',
61+
'Aging Summary (Arrears in Months)(Pentaho)', 'Aging Summary (Arrears in Weeks)(Pentaho)',
62+
'Client Listing(Pentaho)', 'Client Loans Listing(Pentaho)', 'Expected Payments By Date - Basic(Pentaho)',
63+
'Funds Disbursed Between Dates Summary by Office(Pentaho)', 'Funds Disbursed Between Dates Summary(Pentaho)',
64+
'Loans Awaiting Disbursal Summary by Month(Pentaho)', 'Loans Awaiting Disbursal Summary(Pentaho)',
65+
'Loans Awaiting Disbursal(Pentaho)', 'Loans Pending Approval(Pentaho)',
66+
'Obligation Met Loans Details(Pentaho)', 'Obligation Met Loans Summary(Pentaho)',
67+
'Portfolio at Risk by Branch(Pentaho)', 'Portfolio at Risk(Pentaho)', 'Rescheduled Loans(Pentaho)',
68+
'TxnRunningBalances(Pentaho)', 'Written-Off Loans(Pentaho)', 'Client Saving Transactions',
69+
'Client Loan Account Schedule', 'Savings Transaction Receipt', 'Loan Transaction Receipt',
70+
'Staff Assignment History', 'GeneralLedgerReport', 'Active Loan Summary per Branch',
71+
'Balance Outstanding', 'Collection Report', 'Disbursal Report'
72+
)</where>
73+
</delete>
74+
75+
<delete tableName="m_permission">
76+
<where>code LIKE 'READ_%_PENTAHO'
77+
OR code LIKE 'READ_%(Pentaho)'
78+
OR code = 'READ_Staff Assignment History'</where>
79+
</delete>
80+
</changeSet>
81+
</databaseChangeLog>

0 commit comments

Comments
 (0)