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 the institution type is treated as a single value within the institutions model; from prior discussions, an institution can be multiple institution types for SBL; I believe HMDA is still a single value, @Kibrael@nongarak? We need to create a relational mapping table between institution and institution_type; and update the models(dao, and dto) to reflect this.
The text was updated successfully, but these errors were encountered:
AFAIK, HMDA institution type is a derived field with a single value, not actually something submitted to us by the FI. I think we get it with a combination of federal regulator and NIC data.
In SBL, we are asking institutions what their type is, and giving them up to ~15 options to choose from, as many as they would like. Some of these are mutually exclusive practically speaking, but I don't think we'll enforce that in this first year (i.e. you can't be both a credit union and a bank).
Closes#68
Changed the FI DTO to have sbl_institution_type_ids (instead of id) and
use a list
Changed the FI DAO to have sbl_institution_type_ids and
sbl_institution_types, both of which are now lists
Changed the FI DAO sbl_institution_type_ids to be an AssociationProxy
(view) based on the sbl_institution_types
Created an fi_to_type_mapping table that holds the relationship between
FI sbl_institution_types and the slb_institution_type table entries
Updated the institution_repo fi upsert function to look for incoming DTO
sbl_institution_type_ids, and retrieve the corresponding
SBLInstitutionTypeDao entries. They are then associated with the fi_data
before being inserted/updated (which populates the new mapping table)
Updated the pytests to work with this new concept of lists, especially
the test_add_institution repo test.
Will write a new story for the sbl-project repo once these chanegs are
approved and merged in to update the mock_data json
Currently the institution type is treated as a single value within the institutions model; from prior discussions, an institution can be multiple institution types for SBL; I believe HMDA is still a single value, @Kibrael @nongarak? We need to create a relational mapping table between institution and institution_type; and update the models(dao, and dto) to reflect this.
The text was updated successfully, but these errors were encountered: