digitallyinduced/thin-backend

Bad Policy breaks migration without feedback

janat08 opened this issue · 7 comments

I just entered true in policy editor input, and now migrations don't run without telling me why.

Or is it that I'm trying to let people access the database without having an account?

AJAX 200 https://thin.dev/Migrations?projectId=34fe39ad-0a64-4174-b949-f6729bc948f6
TSS: Checking if repeated 500 times for interval 1000 against data:  
initPolicyEditor

Do you get any error message? Maybe you can share a screenshot?

I'm able to reproduce the issue with your policy 👍

I've likely found the issue. A fix is deploying right now

It's working again. Now there's a second error: The policy cannot be named all because that's a reserved keyword in postgresql. Maybe call it Visible to everyone 👍

Closing this as this is fixed now :)