Skip to content

chore(edges): remove quote-public-view stub (descontinuada)#131

Merged
adm01-debug merged 1 commit into
mainfrom
chore/remove-quote-public-view
May 10, 2026
Merged

chore(edges): remove quote-public-view stub (descontinuada)#131
adm01-debug merged 1 commit into
mainfrom
chore/remove-quote-public-view

Conversation

@adm01-debug
Copy link
Copy Markdown
Owner

@adm01-debug adm01-debug commented May 10, 2026

Stub 501 nunca implementado. Decisão do PO: remover do projeto em vez de implementar.

Validação antes da remoção

  • ✅ Zero registros em ai_function_routing apontando para esta function
  • ✅ Zero registros em ai_usage_logs (nunca foi chamada)
  • ✅ Sem referências de import no frontend

Mudanças

  • supabase/functions/quote-public-view/index.ts deletado (era stub 501)

Próximo passo (manual)

Após mergear, deletar a edge function de prod via Supabase Dashboard ou
Management API. ID da função no projeto doufsxqlfjyuvxuezpln:
dd4c2c8f-4dbf-498c-94e5-5b5fea861c8a (deploy v4).

Summary by CodeRabbit

Release Notes

  • Chores
    • Removido endpoint de visualização pública de cotações que não estava funcional.

Review Change Stack

A função quote-public-view era stub 501 nunca implementado. Decisão do PO:
remover do projeto em vez de implementar.

- supabase/functions/quote-public-view/index.ts: deletado (era stub 501)
- Validado antes de remover: zero registros em ai_function_routing, zero
  registros em ai_usage_logs, sem referências de import no frontend.

A edge function correspondente em prod (Supabase) foi deletada via
Management API/Dashboard.
Copilot AI review requested due to automatic review settings May 10, 2026 12:57
@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
promo-gifts Ready Ready Preview, Comment May 10, 2026 0:57am

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 10, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8401bc7b-7e8a-45cb-9659-2a2bb33e996f

📥 Commits

Reviewing files that changed from the base of the PR and between 430ac12 and 464765f.

📒 Files selected for processing (1)
  • supabase/functions/quote-public-view/index.ts
💤 Files with no reviewable changes (1)
  • supabase/functions/quote-public-view/index.ts

Walkthrough

O PR remove integralmente o arquivo de função edge quote-public-view, eliminando o handler Deno.serve que retornava HTTP 501 Not Implemented com preflight CORS configurado.

Alterações

Remoção do Endpoint quote-public-view

Layer / Arquivo(s) Resumo
Deleção do endpoint stub
supabase/functions/quote-public-view/index.ts
Arquivo removido completamente: handler Deno.serve, CORS preflight e resposta 501 Not Implemented eliminados.

Considerações de review

🔍 Verificar:

  • Dependências externas: Confirmar se clientes ou chamadas internas ainda referenciam este endpoint
  • Intencionalidade: Validar se a remoção do stub é proposital (v.s. acidental)
  • Documentação: Checar se há referências de API docs ou cliente que precisam atualização

🎯 2 (Simple) | ⏱️ ~5-10 minutos

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed O título é específico e direto, descrevendo claramente a remoção do stub da edge function quote-public-view.
Description check ✅ Passed A descrição cobre o contexto (stub 501 descontinuado), validações realizadas antes da remoção, mudanças aplicadas e próximos passos, atendendo aos pontos essenciais.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/remove-quote-public-view

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the deprecated/unimplemented Supabase Edge Function quote-public-view (previously a 501 stub) based on a PO decision to drop the feature instead of implementing it.

Changes:

  • Deleted supabase/functions/quote-public-view/index.ts (stub 501 entrypoint).
  • Removes the repository’s on-disk entrypoint for the quote-public-view edge function.
Comments suppressed due to low confidence (1)

supabase/functions/quote-public-view/index.ts:1

  • Ao remover a edge quote-public-view, ainda ficaram referências no repo que vão quebrar gates de CI e/ou manter drift: (1) _shared/edge-authz-manifest.ts ainda declara quote-public-view, e o scripts/check-edge-authorization.mjs falha quando há entry no manifest sem diretório correspondente; (2) scripts/check-edge-structured-logging.mjs tem quote-public-view na LEGACY_ALLOWLIST e falha com orphanAllowlist quando a edge não existe; (3) supabase/config.toml ainda tem [functions.quote-public-view]; (4) _shared/cors-snapshot.json ainda lista a função. Recomendo remover/atualizar esses arquivos no mesmo PR para manter o repo consistente e passar CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 464765f00b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,51 +0,0 @@
// ============================================================
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove stale edge metadata with the deleted function

When this deletion removes quote-public-view/index.ts, the repo still declares quote-public-view in _shared/edge-authz-manifest.ts and the legacy logging allowlist, so the CI gates run from .github/workflows/ci.yml now report this edge as declared/allowlisted but missing from supabase/functions/. I confirmed node scripts/check-edge-authorization.mjs emits Manifest declara "quote-public-view" mas a função não existe, and node scripts/check-edge-structured-logging.mjs also flags the stale allowlist entry; please remove the associated manifest/config/snapshot entries in the same change as the function deletion.

Useful? React with 👍 / 👎.

@adm01-debug adm01-debug merged commit 4ca939f into main May 10, 2026
21 of 22 checks passed
@adm01-debug adm01-debug deleted the chore/remove-quote-public-view branch May 10, 2026 14:03
adm01-debug added a commit that referenced this pull request May 10, 2026
Estende delete-orphan-edges.yml com um input opcional `extraEdges` (CSV) que
permite passar uma lista de edges adicionais a serem deletadas além das 6
órfãs originais. Útil para limpezas pontuais que vêm depois (ex.: stubs
removidos via PR mas com a edge ainda viva em prod).

Uso: Run workflow → extraEdges = "edge1,edge2" + dryRun=false + confirm=DELETE

Caso de uso imediato: deletar quote-public-view (PR #131 mergeado, edge ainda
em prod) e generate-mockup-nanobanana (PR #132 mergeado, edge ainda em prod).
adm01-debug added a commit that referenced this pull request May 10, 2026
…ais (#134)

Estende delete-orphan-edges.yml com um input opcional `extraEdges` (CSV) que
permite passar uma lista de edges adicionais a serem deletadas além das 6
órfãs originais. Útil para limpezas pontuais que vêm depois (ex.: stubs
removidos via PR mas com a edge ainda viva em prod).

Uso: Run workflow → extraEdges = "edge1,edge2" + dryRun=false + confirm=DELETE

Caso de uso imediato: deletar quote-public-view (PR #131 mergeado, edge ainda
em prod) e generate-mockup-nanobanana (PR #132 mergeado, edge ainda em prod).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants