Skip to content

Commit 328163b

Browse files
authored
Merge pull request #1522 from fedspendingtransparency/FDG-9042
FDG-9042 GAS Dataset - 11: Promote New Dataset to Prod
2 parents 79d95e5 + 39bc3b0 commit 328163b

File tree

3 files changed

+94
-96
lines changed

3 files changed

+94
-96
lines changed

env/uat.js

-96
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,6 @@ module.exports = {
66
WEB_SOCKET_BASE_URL: 'wss://downloads.uat.fiscaldata.treasury.gov/main',
77
EXPERIMENTAL_WHITELIST: ['experimental-page', 'afg-overview', 'publishedReportsSection', 'dataPreview'],
88
ADDITIONAL_DATASETS: {
9-
'015-BFS-2024Q1-002': {
10-
slug: '/daily-government-account-series/',
11-
seoConfig: {
12-
pageTitle: 'Daily Government Account Series',
13-
description:
14-
'The Government Account Series (GAS) Daily Activity Summary dataset contains GAS securities ' +
15-
'activity amounts for specific federal government accounts, including trust funds. The GAS securities in ' +
16-
'these accounts are categorized as either Held by the Public or Intragovernmental Holdings. The daily opening ' +
17-
'balance, issued, and redeemed amounts are included and aggregated on a month-to-date and fiscal-year-to-date basis.',
18-
keywords: 'Debt, Financial Summaries',
19-
},
20-
topics: ['debt', 'financial-summaries'],
21-
relatedDatasets: ['015-BFS-2014Q1-13', '015-BFS-2014Q1-03', '015-BFS-2014Q1-11'],
22-
currentDateButton: 'byDay',
23-
},
249
'015-BFS-2014Q3-052': {
2510
slug: '/top-treasury-offset-program/',
2611
seoConfig: {
@@ -75,87 +60,6 @@ module.exports = {
7560
// 'Pivot Value' in UI, 'Pivot Value (Field)' on form
7661
valueFieldOptions: ['position_bil_amt'],
7762
},
78-
'310': {
79-
endpoint: 'v1/accounting/od/gas_held_by_public_daily_activity',
80-
dateField: 'record_date',
81-
downloadName: 'GAS_HeldByThePublic_DailyActivity',
82-
alwaysSortWith: ['-record_date', 'src_line_nbr'],
83-
selectColumns: [],
84-
// 'Pivot View' in UI; 'Pivot View (Field)' and 'Pivot View (Name)' on form
85-
dataDisplays: [
86-
{
87-
title: 'Account Description',
88-
dimensionField: 'account_desc',
89-
},
90-
],
91-
// 'Pivot Value' in UI, 'Pivot Value (Field)' on form
92-
valueFieldOptions: [
93-
'daily_opening_balance_amt',
94-
'daily_issued_amt',
95-
'daily_redeemed_amt',
96-
'mtd_opening_balance_amt',
97-
'mtd_issued_amt',
98-
'mtd_redeemed_amt',
99-
'fytd_opening_balance_amt',
100-
'fytd_issued_amt',
101-
'fytd_redeemed_amt',
102-
'daily_ending_balance_amt',
103-
],
104-
},
105-
'311': {
106-
endpoint: 'v1/accounting/od/gas_intragov_holdings_daily_activity',
107-
dateField: 'record_date',
108-
downloadName: 'GAS_IntragovernmentalHoldings_DailyActivity',
109-
alwaysSortWith: ['-record_date', 'src_line_nbr'],
110-
selectColumns: [],
111-
// 'Pivot View' in UI; 'Pivot View (Field)' and 'Pivot View (Name)' on form
112-
dataDisplays: [
113-
{
114-
title: 'Account Description',
115-
dimensionField: 'account_desc',
116-
},
117-
],
118-
// 'Pivot Value' in UI, 'Pivot Value (Field)' on form
119-
valueFieldOptions: [
120-
'daily_opening_balance_amt',
121-
'daily_issued_amt',
122-
'daily_redeemed_amt',
123-
'mtd_opening_balance_amt',
124-
'mtd_issued_amt',
125-
'mtd_redeemed_amt',
126-
'fytd_opening_balance_amt',
127-
'fytd_issued_amt',
128-
'fytd_redeemed_amt',
129-
'daily_ending_balance_amt',
130-
],
131-
},
132-
'312': {
133-
endpoint: 'v1/accounting/od/gas_daily_activity_totals',
134-
dateField: 'record_date',
135-
downloadName: 'GAS_DailyActivity_Totals',
136-
alwaysSortWith: ['-record_date', 'src_line_nbr'],
137-
selectColumns: [],
138-
// 'Pivot View' in UI; 'Pivot View (Field)' and 'Pivot View (Name)' on form
139-
dataDisplays: [
140-
{
141-
title: 'Total Description',
142-
dimensionField: 'total_desc',
143-
},
144-
],
145-
// 'Pivot Value' in UI, 'Pivot Value (Field)' on form
146-
valueFieldOptions: [
147-
'daily_opening_balance_amt',
148-
'daily_issued_amt',
149-
'daily_redeemed_amt',
150-
'mtd_opening_balance_amt',
151-
'mtd_issued_amt',
152-
'mtd_redeemed_amt',
153-
'fytd_opening_balance_amt',
154-
'fytd_issued_amt',
155-
'fytd_redeemed_amt',
156-
'daily_ending_balance_amt',
157-
],
158-
},
15963
'299': {
16064
endpoint: 'v1/debt/treasury_offset_program',
16165
dateField: 'record_date',

src/transform/endpointConfig.js

+82
Original file line numberDiff line numberDiff line change
@@ -2772,6 +2772,88 @@ const endpointConfig = {
27722772
},
27732773
},
27742774
},
2775+
// GAS
2776+
'310': {
2777+
endpoint: 'v1/accounting/od/gas_held_by_public_daily_activity',
2778+
dateField: 'record_date',
2779+
downloadName: 'GAS_HeldByThePublic_DailyActivity',
2780+
alwaysSortWith: ['-record_date', 'src_line_nbr'],
2781+
selectColumns: [],
2782+
// 'Pivot View' in UI; 'Pivot View (Field)' and 'Pivot View (Name)' on form
2783+
dataDisplays: [
2784+
{
2785+
title: 'Account Description',
2786+
dimensionField: 'account_desc',
2787+
},
2788+
],
2789+
// 'Pivot Value' in UI, 'Pivot Value (Field)' on form
2790+
valueFieldOptions: [
2791+
'daily_opening_balance_amt',
2792+
'daily_issued_amt',
2793+
'daily_redeemed_amt',
2794+
'mtd_opening_balance_amt',
2795+
'mtd_issued_amt',
2796+
'mtd_redeemed_amt',
2797+
'fytd_opening_balance_amt',
2798+
'fytd_issued_amt',
2799+
'fytd_redeemed_amt',
2800+
'daily_ending_balance_amt',
2801+
],
2802+
},
2803+
'311': {
2804+
endpoint: 'v1/accounting/od/gas_intragov_holdings_daily_activity',
2805+
dateField: 'record_date',
2806+
downloadName: 'GAS_IntragovernmentalHoldings_DailyActivity',
2807+
alwaysSortWith: ['-record_date', 'src_line_nbr'],
2808+
selectColumns: [],
2809+
// 'Pivot View' in UI; 'Pivot View (Field)' and 'Pivot View (Name)' on form
2810+
dataDisplays: [
2811+
{
2812+
title: 'Account Description',
2813+
dimensionField: 'account_desc',
2814+
},
2815+
],
2816+
// 'Pivot Value' in UI, 'Pivot Value (Field)' on form
2817+
valueFieldOptions: [
2818+
'daily_opening_balance_amt',
2819+
'daily_issued_amt',
2820+
'daily_redeemed_amt',
2821+
'mtd_opening_balance_amt',
2822+
'mtd_issued_amt',
2823+
'mtd_redeemed_amt',
2824+
'fytd_opening_balance_amt',
2825+
'fytd_issued_amt',
2826+
'fytd_redeemed_amt',
2827+
'daily_ending_balance_amt',
2828+
],
2829+
},
2830+
'312': {
2831+
endpoint: 'v1/accounting/od/gas_daily_activity_totals',
2832+
dateField: 'record_date',
2833+
downloadName: 'GAS_DailyActivity_Totals',
2834+
alwaysSortWith: ['-record_date', 'src_line_nbr'],
2835+
selectColumns: [],
2836+
// 'Pivot View' in UI; 'Pivot View (Field)' and 'Pivot View (Name)' on form
2837+
dataDisplays: [
2838+
{
2839+
title: 'Total Description',
2840+
dimensionField: 'total_desc',
2841+
},
2842+
],
2843+
// 'Pivot Value' in UI, 'Pivot Value (Field)' on form
2844+
valueFieldOptions: [
2845+
'daily_opening_balance_amt',
2846+
'daily_issued_amt',
2847+
'daily_redeemed_amt',
2848+
'mtd_opening_balance_amt',
2849+
'mtd_issued_amt',
2850+
'mtd_redeemed_amt',
2851+
'fytd_opening_balance_amt',
2852+
'fytd_issued_amt',
2853+
'fytd_redeemed_amt',
2854+
'daily_ending_balance_amt',
2855+
],
2856+
},
27752857
};
27762858

27772859
const setCompleteTableDisplayItem = response => {

src/transform/static-metadata/datasets.json

+12
Original file line numberDiff line numberDiff line change
@@ -629,5 +629,17 @@
629629
"currentDateButton": "byMonth",
630630
"disableAllTables": true,
631631
"sharedApiFilterOptions": true
632+
},
633+
"015-BFS-2024Q1-002": {
634+
"slug": "/daily-government-account-series/",
635+
"seoConfig": {
636+
"pageTitle": "Daily Government Account Series",
637+
"description":
638+
"The Government Account Series (GAS) Daily Activity Summary dataset contains GAS securities activity amounts for specific federal government accounts, including trust funds. The GAS securities in these accounts are categorized as either Held by the Public or Intragovernmental Holdings. The daily opening balance, issued, and redeemed amounts are included and aggregated on a month-to-date and fiscal-year-to-date basis.",
639+
"keywords": "Debt, Financial Summaries"
640+
},
641+
"topics": ["debt", "financial-summaries"],
642+
"relatedDatasets": ["015-BFS-2014Q1-13", "015-BFS-2014Q1-03", "015-BFS-2014Q1-11"],
643+
"currentDateButton": "byDay"
632644
}
633645
}

0 commit comments

Comments
 (0)