-
Notifications
You must be signed in to change notification settings - Fork 0
chore(redeploy-t2): reconcile supabase project_id + drop favorites-public-react residues #150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||||||||
| -- ============================================================================ | ||||||||||||
| -- DROP: favorite_item_reactions | ||||||||||||
| -- ============================================================================ | ||||||||||||
| -- Contexto: tabela de reactions emoji em listas públicas de favoritos. | ||||||||||||
| -- Feature descontinuada em 2026-05-07 (ver docs/AUDITORIA_2026-05-07.md F1-6.6). | ||||||||||||
| -- A edge function `favorites-public-react` já foi removida na mesma data. | ||||||||||||
| -- Tabela com 0 rows em 2026-05-12. Sem FKs apontando para ela. | ||||||||||||
| -- | ||||||||||||
| -- Esta migration encerra o ciclo de limpeza, removendo a tabela órfã. | ||||||||||||
| -- Tarefa #2 do redeploy Promo_Gifts (2026-05-12). | ||||||||||||
| -- ============================================================================ | ||||||||||||
|
|
||||||||||||
| DROP TABLE IF EXISTS public.favorite_item_reactions CASCADE; | ||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Falta backup obrigatório antes do DROP Na Line 13, o Sugestão de ajuste+CREATE TABLE IF NOT EXISTS public._backup_favorite_item_reactions_20260512 AS
+SELECT * FROM public.favorite_item_reactions;
+
DROP TABLE IF EXISTS public.favorite_item_reactions CASCADE;As per coding guidelines, "Operações destrutivas (DROP TABLE/COLUMN, TRUNCATE) DEVEM ter backup em tabela backup*_YYYYMMDD antes". 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
|
|
||||||||||||
| -- Sanity check (cria erro se algo ainda referencia a tabela) | ||||||||||||
| DO $$ | ||||||||||||
| BEGIN | ||||||||||||
| IF EXISTS ( | ||||||||||||
| SELECT 1 FROM information_schema.tables | ||||||||||||
| WHERE table_schema = 'public' AND table_name = 'favorite_item_reactions' | ||||||||||||
| ) THEN | ||||||||||||
| RAISE EXCEPTION 'favorite_item_reactions still exists after DROP'; | ||||||||||||
| END IF; | ||||||||||||
| END $$; | ||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When a seller uses the still-mounted favorites sharing dialog,
src/components/favorites/ShareListDialog.tsxcontinues to generate/lista-publica/${list.shared_token}links, so removing this route from the public E2E catalog hides a user-visible broken sharing flow rather than cleaning it up. Either disable/remove that sharing UI and its token path at the same time, or keep the route covered so the regression remains visible.Useful? React with 👍 / 👎.