-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: set up some logging and rollbar error handling for ai endpoints (
#3582) * chore: set up some logging and rollbar error handling for ai endpoints * fix: logging * chore: update rollbar * chore: next 14 * chore: remove rollbar from ai streaming * chore: check rewust body and make sure biome formats files better * chore: create search tracking * chore: run migrations on previews
- Loading branch information
Showing
13 changed files
with
381 additions
and
255 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
apps/backend/supabase/migrations/20231027224426_track-search-usage.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
create table "public"."queries" ( | ||
"id" bigint generated by default as identity not null, | ||
"created_at" timestamp with time zone not null default now(), | ||
"query_string" character varying, | ||
"type" text | ||
); | ||
|
||
|
||
alter table "public"."queries" enable row level security; | ||
|
||
alter table "public"."page" enable row level security; | ||
|
||
alter table "public"."page_section" enable row level security; | ||
|
||
CREATE UNIQUE INDEX queries_pkey ON public.queries USING btree (id); | ||
|
||
alter table "public"."queries" add constraint "queries_pkey" PRIMARY KEY using index "queries_pkey"; | ||
|
||
create policy "Public access" | ||
on "public"."page" | ||
as permissive | ||
for all | ||
to public | ||
using (true) | ||
with check (true); | ||
|
||
|
||
create policy "Public access" | ||
on "public"."page_section" | ||
as permissive | ||
for all | ||
to public | ||
using (true) | ||
with check (true); | ||
|
||
|
||
create policy "Enable read access for all" | ||
on "public"."queries" | ||
as permissive | ||
for select | ||
to public | ||
using (true); | ||
|
||
|
||
create policy "Enable write access for all" | ||
on "public"."queries" | ||
as permissive | ||
for insert | ||
to public | ||
with check (true); | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.