Prefix guidance contradicts itself; update for database.name as the schema namespace
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker-compose, mysql, postgresql, python
- Lĩnh vực
- databases, documentation
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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".
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 7
- Fork
- 12
- Merge trung bình
- 2 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của datajoint/datajoint-docs
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 55/100
datajoint/datajoint-docs#300 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 52/100
datajoint/datajoint-docs#299 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
datajoint/datajoint-docs#298 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
documentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
datajoint/datajoint-docs#292 ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của datajoint/datajoint-docs
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Cancelled query leaves stale row index; next query on the connection returns leading empty slotsCó thể đã có người làm @pislm đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 7 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
dedup: (without embeddings) + limit: SQL LIMIT pre-clips the row stream before Go dedup runsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
SmilyOrg/photofield#199 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
CommunityToolkit/AI#64 ·