Issue on docs: broken link to Prisma Schema File

Aperta Adatta ai principianti
#9,918 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
85/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva

Direzione di ricerca

Il link non funzionante si trova nella sezione Schema Reference della pagina di documentazione del modello di database (percorso /development/technical-handbook/database-model). Trova questo link nel sorgente della documentazione e verifica se packages/database/schema.prisma esiste ancora in quel percorso nel repository formbricks, dato che il payload non conferma dove si trovi ora lo schema. Aggiorna il link al file dello schema attuale. È completato quando il link apre il file che descrive lo schema invece di restituire un 404.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

agent-ready documentation

Context

Reported by Keir via GitHub issue #9918. The "Prisma schema file" link on the public Schema Reference page returns a GitHub 404, so readers of the database-model handbook page cannot reach the schema it points at.

Problem

The docs link to packages/database/schema.prisma, a single file that no longer exists. The schema has been split into a directory of files, so every reference to the old path is dead.

Root cause / where to look

The schema now lives in packages/database/schema/ as four files — main.prisma, creatives.prisma, retention.prisma, workflows.prisma. The old single-file path was never updated in the docs or in one code comment:

  • docs/development/technical-handbook/database-model.mdx:150 — "schema.prisma" (the link the reporter hit at #schema-reference is line 198)
  • docs/development/technical-handbook/database-model.mdx:198 — "Prisma schema file"
  • docs/development/standards/practices/code-formatting.mdx:125 — the documented lint-staged example still keys on "packages/database/schema.prisma". The real config in .lintstagedrc.mjs:7 is "packages/database/schema/**/*.prisma": ["prisma format"], so the example is wrong as well as stale.
  • apps/web/modules/auth/lib/auth.ts:83 — code comment citing (packages/database/schema.prisma) for the Better Auth field mappings.

Done when

  • Both links in database-model.mdx resolve to a real file or directory on main — point them at packages/database/schema/ (the directory) rather than one of the four files, so the link survives further splits.
  • The lint-staged example in code-formatting.mdx matches the actual glob in .lintstagedrc.mjs (packages/database/schema/**/*.prisma).
  • The comment at apps/web/modules/auth/lib/auth.ts:83 names the current schema path.
  • grep -rn "packages/database/schema\.prisma" . --exclude-dir=node_modules --exclude-dir=.git returns nothing.

Original report

The link to 'Prisma schema file' (https://github.com/formbricks/formbricks/blob/main/packages/database/schema.prisma) on the Schema Reference page (https://formbricks.com/docs/development/technical-handbook/database-model#schema-reference) returns a 404 page not found error. The request is to update the link to the appropriate file in github that describes the schema.

Thank you!

Keir

Path: /development/technical-handbook/database-model

Lingua principale
TypeScript
Stelle
13.2k
Fork
2.6k
Merge medio
1g 13h
PR unite (30g)
306

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di formbricks/formbricks

Tutte le issue di formbricks/formbricks

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.