metrumresearchgroup / bbr

R interface for model and project management
https://metrumresearchgroup.github.io/bbr/
Other
23 stars 2 forks source link

Remove `check_lst_file()` #529

Closed seth127 closed 2 years ago

seth127 commented 2 years ago

This branch began as a proposed one-liner fix to the changes made in #527, but it expanded a bit in scope as I poked around in the code.

Original purpose

That proposed fix is in the first commit (7f51a88072dd92d9b5742e66b7ac97d6b00cb26b) and I still think we should, at the very least, bring that in as part of #527. More detail is in that commit message.

Refactoring to remove check_lst_file()

The rest of the commits are related to removing check_lst_file() altogether. The basic principle here is that I think we should move towards passing the user request through to bbi and passing back the (ideally reasonable) error that bbi would possibly return. This is a bit wrapped up in another comment I made on the bbi repo. I'm not sure we need to address those together, but I would kind of prefer it.

A bit more on the check_lst_file() function and why I think it's time has come to bid adieau:

kyleam commented 2 years ago

that commit message does say this was discovered "in the wild", which I'm confused by.

Skimming over this for the time being (since changes on the bbi side need to land first), but, just for reference, I'll send you the internal thread offline.

seth127 commented 2 years ago

thanks for the context. For posterity: it was basically that someone had manually put a second .lst file into their output dir, which caused some weird behavior.

I think I still stand by my basic point that:

seth127 commented 2 years ago

I got a clean bill of health with alpha.4 (mentioned here) so I'm gonna go ahead and merge this.