You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we have two entities: Appeal and AppealHistory, with the latter used to track changes to Appeal. We have replaced Appeal in all aggregated data and listings where Appeal was originally used. While valid_from and valid_to attributes in AppealHistory allow us to fetch data for specific time periods, these attributes are not utilized within the system itself but only at the endpoint level. This has resulted in a complex structure for endpoints where both Appeal and AppealHistory are needed for calculations, requiring manual definition of valid_from and valid_to attributes.
Problem Statement
Currently, we have two entities:
Appeal
andAppealHistory
, with the latter used to track changes toAppeal
. We have replacedAppeal
in all aggregated data and listings whereAppeal
was originally used. Whilevalid_from
andvalid_to
attributes inAppealHistory
allow us to fetch data for specific time periods, these attributes are not utilized within the system itself but only at the endpoint level. This has resulted in a complex structure for endpoints where bothAppeal
andAppealHistory
are needed for calculations, requiring manual definition ofvalid_from
andvalid_to
attributes.Some places where it is used
go-api/api/drf_views.py
Lines 272 to 277 in 06f1bc0
go-api/api/drf_views.py
Lines 807 to 814 in 06f1bc0
Proposal
To simplify the structure and usage, we propose the following:
AppealHistory
is used withAppeal
.AppealHistory
and treat it as a separate entity.Related Discussions/PRs
cc: @szabozoltan69 @tovari @batpad @frozenhelium @samshara @udaynwa @susilnem
The text was updated successfully, but these errors were encountered: