-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCHANGES
1177 lines (825 loc) · 18.1 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
4.7.14
----
* Fix logic error extract_longitude function
4.7.13
----
* Improved FMQuestion and FMOntrack loaders to extract latitude and longitude from
Location.point when Location.longitude and Location.latitude.
4.7.12
----
Formula for SpotCheckFindings.pending_unsupported_amount has been updated as below;
= audit_spotcheck.total_amount_of_ineligible_expenditure
audit_engagement.additional_supporting_documentation_provided
audit_engagement.justification_provided_and_accepted
audit_engagement.write_off_required
audit_engagement.amount_refunded
4.7.11
----
CI pipline improvements for version tagging.
4.7.10
----
Further improve Celery task failure error report
4.7.9
----
Make groups parameter name consistent
----
Hotfix for export access log to handle non-standard date format
4.7.6
----
* Missing dependencies for FMQuestionLoader, FMOntrack and LocationsiteLoader have been fixed.
* Due to cyclic dependecy between classes, 'depends' Option property was not possible to use.
To be able to declare dependency between datamart models (so their loaders), new Options
property called 'depends_as_str' has been added. Instantiation of these dependent models now
can be postponed to the loader execution time by having string definition of these model classes.
This way, we managed to break the cyclic dependency.
The design still supports 'depends' property but we plan to deprecate this property in the
future.
Please make sure that tupple definition has ',' as in the example below;
Example:
class FMQuestion:
...
Option:
depends_as_str = ('etools_datamart.apps.mart.data.model.Location',)
* paginator class for prp loader has been updated to the one used by etools loaders.
4.7.5
----
* Stage(country) and record count info along with RUNNING status are made available by extendin
the expiry of the cache entry that stores the etl country and count.
4.7.4
----
* EtoolsUser endpoint filtering by groups
Typical usages:
api/latest/datamart/users/?country_name=Afghanistan&group=FM%20User
api/latest/datamart/users/?country_name=Afghanistan&group=FM%20User,UNICEF%20User
4.7.3
----
* Country level error reporting for ETL loader's generic loop.
4.7.2
----
* Loader logic has been modified to delete records at country level in the target table when truncate option
is enabled.
4.7.1
----
* ExportAccessLog model and its usage changed. The export access logs include username now.
4.7.0
----
* add feature that logs timestamp of access to exports
4.6.4
----
* Page size increase for speed up
* Improvement on data.partner by prefetching related T2FTravelactivity
* Improvement on data.engagement
* Improvement on data.attachment
* Improvement on data.agreement (partners)
* Improvements on data.intervention
* Improvement on data.interventionbudget
4.6.3
----
* As a workaround,increased precision of pdindicator's fields (target_denominator,target_numerator,
baseline_denominator, baseline_numerator) to accomodate larger values.
* Added missing migration for explorer app.
4.6.2
----
* add missing failure handler for celery tasks to capture the details of the failure
4.6.1
----
* fix loaders delta logic
* increased PDIndicator.section_name field length
* fix missing record issue due to the case PDIndicator loader when there is no
ReportsDisaggregation for a given ReportsAppliedindicator record.
4.6
----
* first phase of reducing sql queries in etl loaders to reduce execution time
* apply ordering specialized paginator
4.5
----
* batched etl loading to reduce memory usage
4.4
----
* added action point filter
4.3
----
* custom user model
* upgrade pacakages
4.2.5
----
* fix partner min requirements
4.2.4
----
* fix partner min requirements
4.2.3
----
* fix partner min requirements
4.2.2
----
* fix partner min requirements
4.2.1
----
* fix partner min requirements
4.2
----
* tweaked unique together on export
* fm questions: added filter
4.1
----
* tweaks realms
4.0
----
* added realms updates
* django 4.2 support
3.59
----
* PRP sync last 180 days
3.58
----
* removed sources services
3.57.1
------
* fixed new FR services
3.57
------
* removed FR sources services
* fixed interventions services
3.56
------
* efficiency data report
* django 4.2
3.55.1
------
* sync deleted params
* humanize export running time
* refresh from db task object
3.55.1
------
* sync deleted params
* humanize export running time
* refresh from db task object
3.55
------
* improved performances
* added newrelic
* introduced black
3.54.2
------
* fixes
3.54.1
------
* added newrelic
3.54
------
* added audit/financial-findings/ endpoint
* added interventions-planned-visits endpoint
3.53.1
------
* fixed MR PV
* fixed travel action point
* fixed intervention-activity
3.53
------
* fixed celery accept content type
3.52
------
* ePD
* fixed xlsx export
3.51.13
-------
* hotfix MR v2
3.51.12
-------
* hotfix MR
3.51.11
-------
* added missing field in serializer
3.51.10
-------
* intervention add outstanding_amt_local
3.51.9
------
* audit fixed start/end date
3.51.8
------
* audit added start/end date
3.51.7
------
* engagements add vendor number
3.51.6
------
* fixed PRP data report
3.51.5
------
* updated FMOptions label length
3.51.4
------
* fixed truncate permission
* fixed intervention budget endpoints
3.51.3
------
* fixed intervention budget endpoints
3.51.2
------
* fixed intervention budget endpoints
3.51.1
------
* fixed intervention budget endpoints
3.51
------
* fixed intervention budget endpoints
* improve performace on FMQuestions
3.50
------
* fixed attachment endpoints
* fixed intervention budget endpoints
* fixed data report
3.49
------
* fixed Trip intervention field
* Data Report: added Indicator Title
* Intervention Budget: fix PartnersInterventionattachment
3.48
------
* updated drf 3.14
* fixed Trip intervention field
3.47
------
* disabled notifications
* updated etag functionality
3.46.1
------
* fixed Safe decimal
3.46
------
* PRP update
3.45
------
* tweak exports
3.44.1
------
* PD export serializers tweaks
3.44
------
* PD export serializers
3.43.7
------
* fr amend light serializer
3.43.6
------
* fr amend light serializer
3.43.5
------
* hact fix
3.43.4
------
* fixed all social auth login urls
3.43.3
------
* fixed social auth login settings
3.43.2
------
* fixed social auth login
3.43.1
------
* rollback django (pg not compatible)
3.43
------
* update to django 4.0
* update to celery 5.2
* fix inspectdb django 3.2/4.0
* tweak partner contact service
* added realm
3.42
------
* admin tweaks
* added partner hact
3.41.1
------
* tweak prp indicator
3.41
------
* updates to eTools 9.12
* FAM: Audit add weakness areas
3.40.2
------
* FAM: Spot checks added missing date
3.40.1
------
* FAM: Spot checks added dates
3.40
------
* PRP data report
3.39
------
* FAM reference number
* fixed User first/last name length
3.38.2
------
* Datareport: fixed report_status
* Intervention: fixed cp_outputs_data
3.38.1
------
* amend fund reservation light serializer
3.38
------
* fix request export for superusers
* amend fund reservation light serializer
3.37
------
* fund reservation light serializer
3.36
------
* fixed office
* amend email notification export
3.35
------
* reset migrations
3.34.1
------
* FM On-track: fixed locations
* FM Question: fixed locations
3.34
------
* PRP attachments improvements
* FM On-track: fixed locations
* FM Question: fixed locations
* fr tweaks
3.33
------
* export tweaks
* update requirements
* fix fund reservation
* amend FM question service
3.32.1
------
* fix permission issues
3.32
------
* export tweaks
* updates to eTools 9.11
3.31.2
------
* data report fix target
3.31.1
------
* engagements: use display status
3.31
------
* travel activity: create record also without location
3.30
------
* engagemements: added sections
3.29.2
------
* fixed hact history service (liquidation & cash transfer)
3.29.1
------
* fixed hact history service (totals by quarter)
3.29
------
* PRP progress report amend
3.28.3
------
* fixed admin template
3.28.2
------
* fmquestion: fixed overall finding
3.28.1
------
* fmontrack: fixed narrative finding
3.28
------
* tweaked fm questions
3.27.3
------
* missing fix
3.27.2
------
* added mr requirements for engagements
3.27.1
------
* fixed partner HACT
3.27
------
* updated to eTools 9.8
* added partner HACT
3.26
------
* added new export notification
* amend progress report service
* amend audit result service
3.25
------
* FmOnTrack: added programme areas
* FAM: added auditor vendor info
3.24
------
* added partner flags
3.23.1
------
* report indicator fix
3.23
----
* fix datareport
3.22
----
* schema update
3.21
----
* prp v2
3.20
----
* prp tweaks
3.19
----
* psea: added cso type
3.18.1
------
* fixed latitude
3.18
-----
* added support to django 3.2
* added location site endpoint
* added psea assessment and answer endpoints
3.17
-----
* tweaks to fmquestions
3.16
-----
* moved to python 3.9
3.15
-----
* added outcomes, outputs, activities apis
3.14
-----
* update fm services
3.13
-----
* add fm option viewset
* simplified hact detail model
3.12
-----
* fixed attachments for interventions
* fixed action points
* tweaked location admin
* added location filter tree_id
* fixed prc attachment
3.11
-----
* fixed locations services (part 2)
* tweaked action points for fm and psea
* amended partner
* removed field maxsize
3.10
-----
* fixed locations services
* fixed fm services
* fixed templates
3.9
-----
* fm endpoint added monitoring activity id and number
3.8
-----
* fund reservation added country name
3.7.1
-----
* fixed headers
3.7
----
* migrated to Django 3.2
* removed obsolete spotcheck model
3.6.1
-----
* fix fm on track
3.6
----
* added location site endpoint
* tweaked fm endpoints
* added higher risk rating for partner endpoint
3.5.1 Hotfix
-----
* prp hotfix
3.5
----
* migrate jsonfield
* fixed fm service
* tweaked attachement etools serializer
3.4
----
* migrated to Django 3.1
* added filterform for export view
* added partner type for fam endpoints
3.3
----
* gateway-type endpoint
* tweaked admin
* migrated do Django 3.0
* removed dbtemplates
* added location gateway endpoint
* fixed xls illegal char issue
* fam added status
* disable export by default
3.2
----
* adjust email settings
* added filters
3.1
----
* fix jwt integration
* added fam exports
3.0
----
* fix ETL
* disable notifications
* update requirements celery 5, drf 3.12
* extract unicef-security
2.14
----
* add geonameid to locations endpoint
* add pd_url to pd indicator endpoint
* set budget values in process_country and not through mapping
* fix InterventionBudget loader queryset
2.13
----
* add new office endpoint
* update etools source to match latest etools
* add ordering to model Meta for pagination where needed
2.12
----
* add disaggregation field to PRP data report
2.11
----
* fixes #18276 - Add `Achievement in reporting period` field to the prp/datareport endpoint
2.10.3
------
* fixes Intervention.frs
2.10.2
------
* fixes DataReportLoader
2.10.1
------
* use poetry instead of pipenv
* BACKWARD INCOMPATIBLE: all `prp` endpoints to the source database moved to `sources/prp`
* BACKWARD INCOMPATIBLE: all `etools` endpoints to the source database moved to `sources/etools`
* Offline requests and File Exports.
* new endpoint audit/spotcheck - ticket #16739
* new endpoint prp/data-report - ticket #16971
* updates schema to eTools 7.4
* updates schema to latest PRP
* fixes RapidPRO endpoints pagination
2.10
----
* Not released in prod
2.9
---
* Not released in prod
2.8
---
* fixes #16623 - wrong visit_url in TPMActivity
* fixes Location / GtewayType Loaders
2.7
-----
* add dedicated check to prevent missing filter declaration
* fixes AuditResult `status` filter
* fixes some missing field filtering
* uses `python:3.6-slim-stretch` as base image
2.6
---
* updates requirements
* add `status` and `vendor_number` to AuditResult
* add `status` filter to AuditResult endpoint
2.5
---
* updates AuditResult
* fixes #15714
* fixes #15746
2.4
---
* new endpoint "datamart/audit/results"
* updates ActionPoint std serializer
* bug fixes
* admin improvements
* filtering improvements
2.3
---
* fixes lat/lng informations
* fixes Intervention.reference_number
2.2
---
* fixes InterventionBudgetLoader
* admin improvements
* improves indexing
2.1
---
* Fixes TripLoader
* add lat/lng info to datamart/interventions/
* add centroid/lat/lng info to datamart/locations/
* add extra filter to datamart/t2f/trips/
* add 'vendor_number' to datamart/audit/engagements
* add 'reference_number' to datamart/audit/engagements
* raise default timeout value
2.0
---
* add PRP source endpoints
* new attachments/attachment endpoint
* improves performance
* bug fixes
* server start as unprivileged user
* upgrade to python 3.7
* dependencies upgrade
* fixes Internet Explorer Content-Disposition issue that prevent file downloading
1.26
----
* fixes Intervention endpoint
1.25
----
* restored `related_module_class` in ActionPoint
* fixes `partner_id` in Intervention
1.24
----
* improves Admin functionalities
* updates FundsReservation endpoints
* fixes FundsReservation ETL
* updates EtlTask management
* add ability to fully reset data
1.23
----
* Compatible with eTools 7.2
* new FundReservation&Header endpoint
* new Grant endpoint
* new InterventionIndicators endpoint
* new HACT History endpoint
* new HACT aggregate endpoint
* new Engagements endpoint
* new Trips endpoint
* new InterventionBudget endpoint
* updated InterventionByLocation endpoint
* updated Intervention endpoint
* updated TPMActivity endpoint
* updated Partner endpoint
* new v2 intervention serializer
* new PartnerContact endpoint
* new PartnerAgreement endpoint
* new ActionPoint endpoint
* new Workspaces endpoint
1.22
----
* Compatible with eTools 6.10
* New endpoint datamart/actionpoints/
* New endpoint datamart/interventions-locations/
* New endpoint datamart/users/
* New endpoint datamart/users-offices/
* New endpoint datamart/reports/sections/
* New endpoint datamart/partners/contacts/
* New endpoint datamart/partners/agreements/
* Updates datamart/travel-activities
* Updates datamart/travel-activities: add result_* fields
* Updates InterventionSerializerFull: add locations, offices, sections, partner_id and partner_source_id
* fixes Intervention serializers
* fixes formats popup menu
* new LocationMixin
* fixes Partner.hact_values handling
* ActionPoint - new serializer (v2)
* Fixes PDIndicator
1.21
----
* == Not released ==
1.20
----
* fixes FundsReservationLoader
* fixes FAMIndicatorLoader month handling
* fixes HACTLoader
* enable ETLLog reset
* add ability