Prefix guidance contradicts itself; update for database.name as the schema namespace
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- docker-compose, mysql, postgresql, python
- Ambito
- databases, documentation
Direzione di ricerca
Start with how-to/deploy-production.md (§Use Database Prefixes, plus the environment, Compose and checklist examples) and reference/configuration.md (lines 25, 28, 269), then how-to/configure-database.md §Database Name. Confirm the library behaviour in datajoint-python#1582 before writing, since the MySQL schema-prefix wording depends on it. Done when DJ_DATABASE_PREFIX is gone from the examples, both backends are described for database.name, and the version admonitions are updated.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Library proposal: datajoint/datajoint-python#1582 (database.name namespaces schema names on MySQL as it does on PostgreSQL).
What the docs say now
how-to/deploy-production.md§Use Database Prefixes:- It teaches
database.database_prefix/DJ_DATABASE_PREFIXwith manual concatenation (dj.Schema(prefix + 'subject')). - It does so under a banner saying the setting is deprecated and "will be removed in 2.3", with replacement advice that covers only PostgreSQL.
- The same page uses
DJ_DATABASE_PREFIXin its environment, Docker Compose and checklist examples (lines ~203, 221, 288, 311–312, 336); one of these is a validation function that requiresdatabase_prefixin production.
- It teaches
how-to/configure-database.md: it saysdatabase.nameis "PostgreSQL only" and that setting it on MySQL emits a warning (line 72, §Database Name).reference/configuration.md: it saysdatabase.nameis for PostgreSQL connections anddatabase_prefixis "deprecated — usedatabase.nameinstead" (lines 25, 28, 269), without saying what that means on MySQL.
A MySQL user who reads all three ends up with no supported way to separate projects.
Changes, once the library change is released
configure-database.md:- Describe
database.nameas the namespace on both backends: the database on PostgreSQL, a schema-name prefix (name_) on MySQL. - Add a short example with two projects on one server, and update the settings table.
- Describe
deploy-production.md: rewrite §Use Database Prefixes as "Separate projects on a shared server".- Set
DJ_DATABASE_NAMEper project; pipelines write plain schema names. - Grant by pattern on MySQL (
lab\_project\_%) and by database on PostgreSQL. - Show the migration from hand-made prefixes.
- Replace
DJ_DATABASE_PREFIXin the environment, Compose and checklist examples.
- Set
reference/configuration.md: new descriptions for both settings and a version note ondatabase.name.- Version admonitions: "Changed in 2.x" on
database.name; ondatabase_prefix, drop "removed in 2.3".
- Lingua principale
- Jupyter Notebook
- Stelle
- 7
- Fork
- 12
- Merge medio
- 2g 19h
- PR unite (30g)
- 20
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di datajoint/datajoint-docs
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 55/100
datajoint/datajoint-docs#300 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 52/100
datajoint/datajoint-docs#299 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
datajoint/datajoint-docs#298 ·
I maintainer di solito rispondono entro 3 giorni
-
documentation
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
datajoint/datajoint-docs#292 ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di datajoint/datajoint-docs
Issue simili
-
component/server severity/minor type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Database layer logs every query with parameters in all environmentsForse già presa @Senthil455 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Janani-bn/CivicFix#167 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 2 giorni
-
Self-hosted image skips migrations: Prisma 7.3 CLI rejects the partialIndexes preview featureAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
elie222/inbox-zero#4160 ·
I maintainer di solito rispondono entro 1 giorno
-
ai_p1 comp-message-queues
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ClickHouse/ClickHouse#125890 ·
I maintainer di solito rispondono entro 1 giorno