Open mayel opened 11 months ago
I will pick this one. I'm gonna start by writing some tests on the defaults and refactor a good part of Bonfire.Boundaries.Users
because it's a bit messy, then move to the optimization.
Here there's not much detail, but I would assume the optimization is about these reinsert attempts, right? https://github.com/bonfire-networks/bonfire_boundaries/blob/main/lib/contexts/users.ex#L94
Great :) Yeah that's right. I'll note that the comment about "bad practice to run seeds/fixtures as part of migrations" is no longer relevant as I recently added EctoSparkles.DataMigration
and refactored this to use it instead of Ecto schema migrations.
@chobeat I've started adding some docs to boundaries code which hopefully makes it more readable: https://github.com/bonfire-networks/bonfire_boundaries/commit/9256cc61b59e421c799aeb61ebcbd19c1acb7a87
thanks, that will help me a lot
also it's bad practice to run seeds/fixtures as part of migrations so may need to run them some other way