Skip to content

docs(configuration): environment variables win for every setting; blob size limit; database_prefix deprecation - #317

Open
dimitri-yatsenko wants to merge 2 commits into
mainfrom
docs/configuration-2.3.7
Open

dimitri-yatsenko wants to merge 2 commits into
mainfrom
docs/configuration-2.3.7

Conversation

@dimitri-yatsenko

@dimitri-yatsenko dimitri-yatsenko commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Documents the configuration changes in four open datajoint-python PRs for 2.3.7: datajoint/datajoint-python#1603, datajoint/datajoint-python#1727, datajoint/datajoint-python#1736 and datajoint/datajoint-python#1738. Merge this PR after all four.

This is the documentation change that datajoint/datajoint-python#1675 asks for.

Changes

  • src/reference/configuration.md
    • Configuration Sources: an environment variable takes precedence over datajoint.json for every setting that has one, with a "Changed in 2.3.7" note listing the settings where the file used to win.
    • Configuration File Search: a "Changed in 2.3.7" note for the UserWarning, the info line for another user's file, the effective user ID, and the debug-level Loading configuration from <path> line.
    • Tables: the variables DJ_RECONNECT, DJ_JOBS_* (a new Environment column), DJ_SAFEMODE, DJ_QUERY_CACHE and DJ_DOWNLOAD_PATH. database.database_prefix: will be removed in a future release, not applied to schema names. loglevel: any case, and applied at import from datajoint.json, with a "Changed in 2.3.7" note.
    • New Blob Settings section: blob.max_decompressed_size, unset by default.
    • Two rows that named settings the library does not have, cache and enable_python_native_blobs, are removed (dj.config["cache"] raises KeyError on 2.3.6), and query_cache is described as the query result cache. display.diagram_fontname (DJ_DIAGRAM_FONTNAME), which is on master for 2.3.7, is listed, so that the tables name every variable.
  • src/how-to/deploy-production.md
    • "Use Database Prefixes" is now "Use Schema Name Prefixes": write the prefix into the name passed to dj.Schema, optionally from a variable of the pipeline's own. The deprecation note matches the library's warning: removal in a future release, not applied to schema names, database.name for a PostgreSQL database. The old note said it would be removed in 2.3.
    • DJ_DATABASE_PREFIX is no longer in the production examples (environment variables, docker-compose, the verification script and the summary table).
    • Configuration Hierarchy: the precedence of environment variables, with a "Changed in 2.3.7" note.
    • Production environment variables: an optional DJ_BLOB_MAX_DECOMPRESSED_SIZE line, and a note that loglevel in datajoint.json applies at import.
  • src/how-to/configure-database.md: the sentence that made database.use_tls an exception (a value in datajoint.json replaced DJ_USE_TLS) now states the 2.3.7 rule: an environment variable takes precedence over datajoint.json for every setting that has one, with a "Changed in 2.3.7" note. The settings table names DJ_RECONNECT and DJ_SAFEMODE, which it listed as having no variable.
  • src/how-to/manage-secrets.md: the paragraph that limited the precedence of environment variables to a list of settings now states the 2.3.7 rule. The shared-hosts section no longer says that DJ_LOG_LEVEL=ERROR hides a skipped file, and it describes the info line for another user's file. Its advice to set DJ_IGNORE_CONFIG_FILE=true now gives the reason that still holds: settings without a variable, such as display.limit, are still read from the file.
  • src/tutorials/advanced/instances.ipynb: the stored output of the two dj.Instance(...) cells no longer shows Loading configuration from ..., which is logged at debug level after fix(settings): DJ_LOG_LEVEL accepts any case; config files loaded or skipped at import are reported datajoint-python#1736, or the SSL fallback warning, which has been logged at debug level since 2.3.6. Only those output lines are removed; the notebook was not re-run.

Checks

  • Every statement was checked against the branches of the four PRs above and against master. The other how-to pages that describe the order of configuration sources (configure-storage.md, deploy-production.md) already match the 2.3.7 rule.
  • scripts/check_markdown_lists.py and codespell pass.
  • The branch merges cleanly with every open docs PR, including Pipeline lifecycle: development and production modes, and the deployment step #314, which also edits how-to/deploy-production.md.

…b size limit; database_prefix wording

- configuration.md: environment variables take precedence over datajoint.json
  for every setting; variables for database.reconnect, jobs.*, safemode,
  query_cache and download_path; the blob.max_decompressed_size setting; a
  loglevel in datajoint.json applies at import; the database_prefix row says
  it will be removed in a future release and is not applied to schema names;
  the rows for cache and enable_python_native_blobs, which are not settings,
  are removed; display.diagram_fontname is listed.
- deploy-production.md: schema name prefixes written into the schema name,
  database_prefix no longer used in the production examples, the precedence
  of environment variables, and the optional blob size limit.
- manage-secrets.md: the precedence of environment variables, and the
  UserWarning for a skipped configuration file.
…se; drop stale notebook log lines

- how-to/configure-database.md: an environment variable takes precedence over
  datajoint.json for every setting that has one, with a "Changed in 2.3.7"
  note; the table names DJ_RECONNECT and DJ_SAFEMODE.
- how-to/manage-secrets.md: environment variables alone are not enough for a
  shared pipeline because settings without a variable are still read from
  the file.
- tutorials/advanced/instances.ipynb: remove the stored "Loading configuration
  from ..." and SSL fallback log lines, which are no longer printed at the
  default log level.

This branch has not been deployed

No deployments
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.

1 participant