codexstanford / codex-insurance-fullstack

0 stars 0 forks source link

Ensure datasets don't have repeat facts - zniquify #64

Closed pjames27 closed 4 months ago

pjames27 commented 4 months ago

Currently, the same fact can get written to the dataset multiple times. To avoid this, we should use the epilog.js subroutine zniquify after adding facts to a dataset, and certainly before writing datasets to the database.

pfw13 commented 4 months ago

zniquify is called now before smth is sent to the server. This should be sufficient, i.e., it doesn't seem necessary to call this function in every subroutine that defines more facts.