diff --git a/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml b/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml index 34da1913f50..2e504680042 100644 --- a/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml +++ b/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml @@ -228,4 +228,5 @@ + diff --git a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0210_remove_pentaho_legacy_data.xml b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0210_remove_pentaho_legacy_data.xml new file mode 100644 index 00000000000..da20ece8d8f --- /dev/null +++ b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0210_remove_pentaho_legacy_data.xml @@ -0,0 +1,80 @@ + + + + + + FINERACT-2481: Precisely removing 44 core Pentaho reports and their associated permissions to clean up initial data + + + report_id IN (SELECT id FROM stretchy_report WHERE report_name IN ( + 'Balance Sheet', 'Income Statement', 'Trial Balance', 'Loan Account Schedule', + 'Branch Expected Cash Flow', 'Expected Payments By Date - Formatted', 'Savings Transactions', + 'Client Savings Summary', 'Active Loans - Details(Pentaho)', 'Active Loans - Summary(Pentaho)', + 'Active Loans by Disbursal Period(Pentaho)', 'Active Loans in last installment Summary(Pentaho)', + 'Active Loans in last installment(Pentaho)', 'Active Loans Passed Final Maturity Summary(Pentaho)', + 'Active Loans Passed Final Maturity(Pentaho)', 'Aging Detail(Pentaho)', + 'Aging Summary (Arrears in Months)(Pentaho)', 'Aging Summary (Arrears in Weeks)(Pentaho)', + 'Client Listing(Pentaho)', 'Client Loans Listing(Pentaho)', 'Expected Payments By Date - Basic(Pentaho)', + 'Funds Disbursed Between Dates Summary by Office(Pentaho)', 'Funds Disbursed Between Dates Summary(Pentaho)', + 'Loans Awaiting Disbursal Summary by Month(Pentaho)', 'Loans Awaiting Disbursal Summary(Pentaho)', + 'Loans Awaiting Disbursal(Pentaho)', 'Loans Pending Approval(Pentaho)', + 'Obligation Met Loans Details(Pentaho)', 'Obligation Met Loans Summary(Pentaho)', + 'Portfolio at Risk by Branch(Pentaho)', 'Portfolio at Risk(Pentaho)', 'Rescheduled Loans(Pentaho)', + 'TxnRunningBalances(Pentaho)', 'Written-Off Loans(Pentaho)', 'Client Saving Transactions', + 'Client Loan Account Schedule', 'Savings Transaction Receipt', 'Loan Transaction Receipt', + 'Staff Assignment History', 'GeneralLedgerReport', 'Active Loan Summary per Branch', + 'Balance Outstanding', 'Collection Report', 'Disbursal Report' + )) + + + + report_name IN ( + 'Balance Sheet', 'Income Statement', 'Trial Balance', 'Loan Account Schedule', + 'Branch Expected Cash Flow', 'Expected Payments By Date - Formatted', 'Savings Transactions', + 'Client Savings Summary', 'Active Loans - Details(Pentaho)', 'Active Loans - Summary(Pentaho)', + 'Active Loans by Disbursal Period(Pentaho)', 'Active Loans in last installment Summary(Pentaho)', + 'Active Loans in last installment(Pentaho)', 'Active Loans Passed Final Maturity Summary(Pentaho)', + 'Active Loans Passed Final Maturity(Pentaho)', 'Aging Detail(Pentaho)', + 'Aging Summary (Arrears in Months)(Pentaho)', 'Aging Summary (Arrears in Weeks)(Pentaho)', + 'Client Listing(Pentaho)', 'Client Loans Listing(Pentaho)', 'Expected Payments By Date - Basic(Pentaho)', + 'Funds Disbursed Between Dates Summary by Office(Pentaho)', 'Funds Disbursed Between Dates Summary(Pentaho)', + 'Loans Awaiting Disbursal Summary by Month(Pentaho)', 'Loans Awaiting Disbursal Summary(Pentaho)', + 'Loans Awaiting Disbursal(Pentaho)', 'Loans Pending Approval(Pentaho)', + 'Obligation Met Loans Details(Pentaho)', 'Obligation Met Loans Summary(Pentaho)', + 'Portfolio at Risk by Branch(Pentaho)', 'Portfolio at Risk(Pentaho)', 'Rescheduled Loans(Pentaho)', + 'TxnRunningBalances(Pentaho)', 'Written-Off Loans(Pentaho)', 'Client Saving Transactions', + 'Client Loan Account Schedule', 'Savings Transaction Receipt', 'Loan Transaction Receipt', + 'Staff Assignment History', 'GeneralLedgerReport', 'Active Loan Summary per Branch', + 'Balance Outstanding', 'Collection Report', 'Disbursal Report' + ) + + + + code LIKE 'READ_%_PENTAHO' + OR code LIKE 'READ_%(Pentaho)' + OR code = 'READ_Staff Assignment History' + + +