Closed santib closed 1 year ago
after some debugging I see that the difference lays in the location_key
query_caller = caller
location_key = Digest::SHA256.hexdigest(query_caller.join)
which is different when calling create
separately, but the same when calling create_list
..
And the reason is that the line in the spec that triggers the query is different 🤯
Not sure if we could find a solution for this..
I'm closing this because it's not a false positive. The SQL queries are being triggered, it's just how it is supposed to work
Hi, seems like there is a false positive when used together with FactoryBot
create_list
. I'm not sure if the problem is in Prosopite codebase or somewhere else, but I'd like to hear others' thoughts.I created a reproduction script:
as you can see, two
create
works fine, but onecreate_list(.., 2)
doesn't