Skip to content

Commit 1d5a08d

Browse files
authored
Merge pull request #1914 from fedspendingtransparency/FDG-10559
FDG-10559 Release UTF Reports Section to Prod
2 parents 7567c7f + 832e372 commit 1d5a08d

File tree

3 files changed

+47
-52
lines changed

3 files changed

+47
-52
lines changed

env/qat.js

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,5 @@ module.exports = {
88
LOWER_ENV_FEATURE_WHITELIST: ['reportGeneration'],
99
ADDITIONAL_DATASETS: {},
1010
USE_MOCK_RELEASE_CALENDAR_DATA_ON_API_FAIL: true,
11-
ADDITIONAL_ENDPOINTS: {
12-
'319': {
13-
endpoint: 'v1/accounting/od/utf_account_balances',
14-
dateField: 'eff_date',
15-
downloadName: 'UTF_Account_Balances ',
16-
alwaysSortWith: ['-eff_date', 'acct_statement'],
17-
apiFilter: {
18-
field: 'acct_desc',
19-
downloadLabel: 'Account',
20-
label: 'Choose a Federal or State Account',
21-
dataUnmatchedHeader: 'There is no data to display based on the current filters selected.',
22-
dataUnmatchedMessage: 'Select a different account description and/or date range in order to preview the data.',
23-
dataDefaultHeader: 'This table requires additional filters.',
24-
dataDefaultMessage: 'Select an account in the filter section above to display the data.',
25-
dataSearchLabel: 'Search account descriptions',
26-
notice: `Effective Dates on Fiscal Data may differ from the published effective dates for corresponding reports on TreasuryDirect.`,
27-
fieldFilter: {
28-
field: 'report_type',
29-
value: ['Federal', 'State'],
30-
},
31-
},
32-
selectColumns: [],
33-
},
34-
'320': {
35-
endpoint: 'v1/accounting/od/utf_transaction_subtotals',
36-
dateField: 'eff_date',
37-
downloadName: 'UTF_Transaction_Subtotals ',
38-
alwaysSortWith: ['-eff_date', 'trans_statement', 'trans_desc_cd'],
39-
apiFilter: {
40-
field: 'acct_desc',
41-
downloadLabel: 'Account',
42-
label: 'Choose a Federal or State Account',
43-
dataUnmatchedHeader: 'There is no data to display based on the current filters selected.',
44-
dataUnmatchedMessage: 'Select a different account description and/or date range in order to preview the data.',
45-
dataDefaultHeader: 'This table requires additional filters.',
46-
dataDefaultMessage: 'Select an account in the filter section above to display the data.',
47-
dataSearchLabel: 'Search account descriptions',
48-
notice: `Effective Dates on Fiscal Data may differ from the published effective dates for corresponding reports on TreasuryDirect.`,
49-
fieldFilter: {
50-
field: 'report_type',
51-
value: ['Federal', 'State'],
52-
},
53-
},
54-
selectColumns: [],
55-
},
56-
},
11+
ADDITIONAL_ENDPOINTS: {},
5712
};

src/components/published-reports/published-reports.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,13 @@ import Experimental from '../experimental/experimental';
44
import GenerativeReportsSection from './generative-reports-section/generative-reports-section';
55
import FilterReportsSection from './filter-reports-section/filter-reports-section';
66
import { IDatasetConfig } from '../../models/IDatasetConfig';
7-
import LowerEnvironmentFeature from '../lower-environment-feature/lower-environment-feature';
87

98
export const sectionTitle = 'Reports and Files';
109

1110
const PublishedReports: FunctionComponent<{ pageConfig: IDatasetConfig }> = ({ pageConfig }) => {
1211
return (
1312
<>
14-
{pageConfig.reportGenKey && (
15-
<LowerEnvironmentFeature featureId="reportGeneration">
16-
<GenerativeReportsSection dataset={pageConfig} />
17-
</LowerEnvironmentFeature>
18-
)}
13+
{pageConfig.reportGenKey && <GenerativeReportsSection dataset={pageConfig} />}
1914
<ReportsSection dataset={pageConfig} />
2015
{pageConfig.runTimeReportConfig && pageConfig.runTimeReportConfig?.experimental && (
2116
<Experimental featureId="fipReportsSection">

src/transform/endpointConfig.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,6 +2725,51 @@ const endpointConfig = {
27252725
},
27262726
selectColumns: ['record_date', 'country_currency_desc', 'exchange_rate', 'effective_date'],
27272727
},
2728+
//UTF
2729+
'319': {
2730+
endpoint: 'v1/accounting/od/utf_account_balances',
2731+
dateField: 'eff_date',
2732+
downloadName: 'UTF_Account_Balances ',
2733+
alwaysSortWith: ['-eff_date', 'acct_statement'],
2734+
apiFilter: {
2735+
field: 'acct_desc',
2736+
downloadLabel: 'Account',
2737+
label: 'Choose a Federal or State Account',
2738+
dataUnmatchedHeader: 'There is no data to display based on the current filters selected.',
2739+
dataUnmatchedMessage: 'Select a different account description and/or date range in order to preview the data.',
2740+
dataDefaultHeader: 'This table requires additional filters.',
2741+
dataDefaultMessage: 'Select an account in the filter section above to display the data.',
2742+
dataSearchLabel: 'Search account descriptions',
2743+
notice: `Effective Dates on Fiscal Data may differ from the published effective dates for corresponding reports on TreasuryDirect.`,
2744+
fieldFilter: {
2745+
field: 'report_type',
2746+
value: ['Federal', 'State'],
2747+
},
2748+
},
2749+
selectColumns: [],
2750+
},
2751+
'320': {
2752+
endpoint: 'v1/accounting/od/utf_transaction_subtotals',
2753+
dateField: 'eff_date',
2754+
downloadName: 'UTF_Transaction_Subtotals ',
2755+
alwaysSortWith: ['-eff_date', 'trans_statement', 'trans_desc_cd'],
2756+
apiFilter: {
2757+
field: 'acct_desc',
2758+
downloadLabel: 'Account',
2759+
label: 'Choose a Federal or State Account',
2760+
dataUnmatchedHeader: 'There is no data to display based on the current filters selected.',
2761+
dataUnmatchedMessage: 'Select a different account description and/or date range in order to preview the data.',
2762+
dataDefaultHeader: 'This table requires additional filters.',
2763+
dataDefaultMessage: 'Select an account in the filter section above to display the data.',
2764+
dataSearchLabel: 'Search account descriptions',
2765+
notice: `Effective Dates on Fiscal Data may differ from the published effective dates for corresponding reports on TreasuryDirect.`,
2766+
fieldFilter: {
2767+
field: 'report_type',
2768+
value: ['Federal', 'State'],
2769+
},
2770+
},
2771+
selectColumns: [],
2772+
},
27282773
//FBP
27292774
'313': {
27302775
endpoint: 'v1/accounting/od/fbp_balances',

0 commit comments

Comments
 (0)