Skip to content

Commit 048abbe

Browse files
authored
Merge pull request #391 from unicef/expose_year_of_audit
expose year_of_audit in engagement views
2 parents 201c0a0 + 25d4e06 commit 048abbe

File tree

10 files changed

+48
-25
lines changed

10 files changed

+48
-25
lines changed

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
4.7.15
2+
----
3+
* Exposed year_of_audit in two engagement views.
4+
15
4.7.14
26
----
37
* Fix logic error extract_longitude function

src/etools_datamart/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
NAME = "etools-datamart"
2-
VERSION = __version__ = "4.7.14"
2+
VERSION = __version__ = "4.7.15"
33
__author__ = ""

src/etools_datamart/api/endpoints/datamart/audit_engagement.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class Meta(DataMartSerializer.Meta):
5151
"partner",
5252
"agreement",
5353
"po_item",
54+
"year_of_audit",
5455
)
5556

5657

@@ -121,6 +122,7 @@ class Meta(DataMartSerializer.Meta):
121122
"action_points",
122123
"status",
123124
"audit_opinion",
125+
"year_of_audit",
124126
)
125127

126128
def get_partner(self, obj):

tests/api/interfaces/_api_checker/test_data/data/_api_latest_datamart_audit_engagement-details_.fixture.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
"financial_findings": "0.00",
6969
"audit_opinion": null,
7070
"action_points": null,
71-
"key_internal_control_weaknesses": null
71+
"key_internal_control_weaknesses": null,
72+
"year_of_audit": null
7273
}
7374
},
7475
{
@@ -138,7 +139,8 @@
138139
"financial_findings": "0.00",
139140
"audit_opinion": null,
140141
"action_points": null,
141-
"key_internal_control_weaknesses": null
142+
"key_internal_control_weaknesses": null,
143+
"year_of_audit": null
142144
}
143145
},
144146
{
@@ -208,7 +210,8 @@
208210
"financial_findings": "0.00",
209211
"audit_opinion": null,
210212
"action_points": null,
211-
"key_internal_control_weaknesses": null
213+
"key_internal_control_weaknesses": null,
214+
"year_of_audit": null
212215
}
213216
}
214217
],

tests/api/interfaces/_api_checker/test_data/data/_api_latest_datamart_audit_engagements_.fixture.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@
6868
"financial_findings": "0.00",
6969
"audit_opinion": null,
7070
"action_points": null,
71-
"key_internal_control_weaknesses": null
71+
"key_internal_control_weaknesses": null,
72+
"year_of_audit": null
7273
}
7374
},
7475
{
@@ -138,7 +139,8 @@
138139
"financial_findings": "0.00",
139140
"audit_opinion": null,
140141
"action_points": null,
141-
"key_internal_control_weaknesses": null
142+
"key_internal_control_weaknesses": null,
143+
"year_of_audit": null
142144
}
143145
},
144146
{
@@ -208,7 +210,8 @@
208210
"financial_findings": "0.00",
209211
"audit_opinion": null,
210212
"action_points": null,
211-
"key_internal_control_weaknesses": null
213+
"key_internal_control_weaknesses": null,
214+
"year_of_audit": null
212215
}
213216
}
214217
],

tests/api/interfaces/_api_checker/test_data/test_list/_api_latest_datamart_audit_engagement-details_/get/197add8e52191fc33bc0669a32ea63213e8608ee9b3b24c42981397919aba411.response.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"qs_filter": "{}",
1616
"qs_exclude": "{}",
1717
"cache-ttl": "1y",
18-
"Content-Length": "1452",
18+
"Content-Length": "1515",
1919
"Referrer-Policy": "same-origin",
2020
"Cross-Origin-Opener-Policy": "same-origin"
2121
},
@@ -46,7 +46,8 @@
4646
"financial_findings": "0.00",
4747
"action_points": null,
4848
"status": null,
49-
"audit_opinion": null
49+
"audit_opinion": null,
50+
"year_of_audit": null
5051
},
5152
{
5253
"po_item": null,
@@ -68,7 +69,8 @@
6869
"financial_findings": "0.00",
6970
"action_points": null,
7071
"status": null,
71-
"audit_opinion": null
72+
"audit_opinion": null,
73+
"year_of_audit": null
7274
},
7375
{
7476
"po_item": null,
@@ -90,7 +92,8 @@
9092
"financial_findings": "0.00",
9193
"action_points": null,
9294
"status": null,
93-
"audit_opinion": null
95+
"audit_opinion": null,
96+
"year_of_audit": null
9497
}
9598
]
9699
},

tests/api/interfaces/_api_checker/test_data/test_list/_api_latest_datamart_audit_engagement-details_/get/77293dc2be4d1446d85ffe425e5dbf254c1f0ed35c6c2079410ef1aa19e6063b.response.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"qs_filter": "{}",
1616
"qs_exclude": "{}",
1717
"cache-ttl": "1y",
18-
"Content-Length": "2442",
18+
"Content-Length": "2505",
1919
"Referrer-Policy": "same-origin",
2020
"Cross-Origin-Opener-Policy": "same-origin"
2121
},
@@ -57,7 +57,8 @@
5757
"exchange_rate": "0.00",
5858
"partner": 100,
5959
"agreement": null,
60-
"po_item": null
60+
"po_item": null,
61+
"year_of_audit": null
6162
},
6263
{
6364
"country_name": "chad",
@@ -90,7 +91,8 @@
9091
"exchange_rate": "0.00",
9192
"partner": 100,
9293
"agreement": null,
93-
"po_item": null
94+
"po_item": null,
95+
"year_of_audit": null
9496
},
9597
{
9698
"country_name": "lebanon",
@@ -123,7 +125,9 @@
123125
"exchange_rate": "0.00",
124126
"partner": 100,
125127
"agreement": null,
126-
"po_item": null
128+
"po_item": null,
129+
"year_of_audit": null
130+
127131
}
128132
]
129133
},

tests/api/interfaces/_api_checker/test_data/test_list/_api_latest_datamart_audit_engagements_/get/77293dc2be4d1446d85ffe425e5dbf254c1f0ed35c6c2079410ef1aa19e6063b.response.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"qs_filter": "{}",
1616
"qs_exclude": "{}",
1717
"cache-ttl": "1y",
18-
"Content-Length": "2442",
18+
"Content-Length": "2505",
1919
"Referrer-Policy": "same-origin",
2020
"Cross-Origin-Opener-Policy": "same-origin"
2121
},
@@ -57,7 +57,8 @@
5757
"exchange_rate": "0.00",
5858
"partner": 100,
5959
"agreement": null,
60-
"po_item": null
60+
"po_item": null,
61+
"year_of_audit": null
6162
},
6263
{
6364
"country_name": "chad",
@@ -90,8 +91,9 @@
9091
"exchange_rate": "0.00",
9192
"partner": 100,
9293
"agreement": null,
93-
"po_item": null
94-
},
94+
"po_item": null,
95+
"year_of_audit": null
96+
},
9597
{
9698
"country_name": "lebanon",
9799
"schema": "lebanon",
@@ -123,7 +125,8 @@
123125
"exchange_rate": "0.00",
124126
"partner": 100,
125127
"agreement": null,
126-
"po_item": null
128+
"po_item": null,
129+
"year_of_audit": null
127130
}
128131
]
129132
},

tests/api/interfaces/_api_checker/test_data/test_record/_api_latest_datamart_audit_engagement-details_797_/get/dc937b59892604f5a86ac96936cd7ff09e25f18ae6b758e8014a24c7fa039e91.response.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"qs_exclude": "{}",
1313
"cache-hit": "False",
1414
"cache-ttl": "1y",
15-
"Content-Length": "455",
15+
"Content-Length": "476",
1616
"Referrer-Policy": "same-origin",
1717
"Cross-Origin-Opener-Policy": "same-origin"
1818
},
@@ -36,7 +36,8 @@
3636
"financial_findings": "0.00",
3737
"action_points": null,
3838
"status": null,
39-
"audit_opinion": null
40-
},
39+
"audit_opinion": null,
40+
"year_of_audit": null
41+
},
4142
"content_type": "application/json"
42-
}
43+
}

tests/api/interfaces/_api_checker/test_data/test_record/_api_latest_datamart_audit_engagements_1_/get/dc937b59892604f5a86ac96936cd7ff09e25f18ae6b758e8014a24c7fa039e91.response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@
8686
"year_of_audit": null
8787
},
8888
"content_type": "application/json"
89-
}
89+
}

0 commit comments

Comments
 (0)