WIP: Implement database persistence of MRF Policies
This Merge Request implements database persistence for MRF Policies
Additions
This MR adds another migration that brings the mrf_policies
table into the database. Each row is composed of a policy
field that accepts a string, and its associated data, in a losely-defined map
format.
With a combination of unique indexes and :on_conflict
settings, we ensure that only one row exists for each policy. An example of persistence implementation is provided with the KeywordPolicy module (!794 (merged)).
As a side-effect, this commit also brings .iex.exs
in the .gitignore
file. While it is not essential, developers (and especially newcomers) should be encouraged to define custom aliases & imports to ease development.
Tests have been added. However due to lack of static typing, they have limited value .
TODO
-
Comment on why the spawn
Related Issues & MRs
- #612 (closed)
- #644 (closed)
- !848 (closed) (whose merge is conditioned by this MR)
If you have anything to say about this MR, please comment below.