From bacd208d1da07b43c4fffbc2ab7715c96cae3a25 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Mon, 30 Sep 2024 14:38:58 +0900 Subject: [PATCH] fix: enable RLS for tables --- README.md | 2 +- package.json | 2 +- supabase/migrations/20240930052523_enable_rls.sql | 2 ++ yarn.lock | 8 ++++---- 4 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 supabase/migrations/20240930052523_enable_rls.sql diff --git a/README.md b/README.md index 9661b9c..0619b52 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ To set up the `.dev.vars` file, you will need to provide the following variables ## Usage - Add the following to your `.ubiquibot-config.yml` file with the appropriate URL: ```yaml -- plugin: ubiquity-os-marketplace/generate-vector-embeddings +- plugin: https://ubiquity-os-comment-vector-embeddings-main.ubiquity.workers.dev with: matchThreshold: 0.95 warningThreshold: 0.75 diff --git a/package.json b/package.json index 54ad601..869d1c3 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "lint-staged": "15.2.7", "npm-run-all": "4.1.5", "prettier": "3.3.2", - "supabase": "1.191.3", + "supabase": "1.200.3", "ts-jest": "29.1.5", "tsx": "4.15.6", "typescript": "5.4.5", diff --git a/supabase/migrations/20240930052523_enable_rls.sql b/supabase/migrations/20240930052523_enable_rls.sql new file mode 100644 index 0000000..623072b --- /dev/null +++ b/supabase/migrations/20240930052523_enable_rls.sql @@ -0,0 +1,2 @@ +ALTER TABLE "issues" ENABLE ROW LEVEL SECURITY; +ALTER TABLE "issue_comments" ENABLE ROW LEVEL SECURITY; \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 519f6f7..ebaf74d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6407,10 +6407,10 @@ summary@2.1.0: resolved "https://registry.yarnpkg.com/summary/-/summary-2.1.0.tgz#be8a49a0aa34eb6ceea56042cae88f8add4b0885" integrity sha512-nMIjMrd5Z2nuB2RZCKJfFMjgS3fygbeyGk9PxPPaJR1RIcyN9yn4A63Isovzm3ZtQuEkLBVgMdPup8UeLH7aQw== -supabase@1.191.3: - version "1.191.3" - resolved "https://registry.yarnpkg.com/supabase/-/supabase-1.191.3.tgz#9e28643b10bc458f8c13a1e3f3ba9172679093f0" - integrity sha512-5tIG7mPc5lZ9QRbkZssyHiOsx42qGFaVqclauXv+1fJAkZnfA28d0pzEDvfs33+w8YTReO5nNaWAgyzkWQQwfA== +supabase@1.200.3: + version "1.200.3" + resolved "https://registry.yarnpkg.com/supabase/-/supabase-1.200.3.tgz#52cd53fd0bcd46af0748c8ffa61fac05e21a0a23" + integrity sha512-3NdhqBkfPVlm+rAhWQoVcyr54kykuAlHav/GWaAoQEHBDbbYI1lhbDzugk8ryQg92vSLwr3pWz0s4Hjdte8WyQ== dependencies: bin-links "^4.0.3" https-proxy-agent "^7.0.2"