Daniel
Explore posts from serversDTDrizzle Team
•Created by Daniel on 11/6/2024 in #help
Drizzle-kit push - pgPolicy ignores using configuration
Policy:
pgPolicy("Users can view their own active organization memberships", {
for: "select",
to: authenticatedRole,
using: and(
eq(table.userId, sql
(select requesting_user_id())
),
eq(table.status, sql'active'
),
),
})
Statement created with push:
CREATE POLICY "Organization members can view their associated organizations test" ON "organizations" AS PERMISSIVE FOR SELECT TO "authenticated";
The migration created doesnt have this issue.2 replies
Migrating from Airplane Prompts
I'm looking to migrate some Airplane scripts we have to Windmill, and I wanted to ask what's the best way to migrate Airplane prompts https://docs.airplane.dev/tasks/prompts. I looked at the documentation and it seems like a form in an approval page could be the way https://www.windmill.dev/docs/flows/flow_approval#add-a-form-to-the-approval-page, but if someone has done something similar, I'd be interested to know.
6 replies