Repository navigation
docs(configuration): environment variables win for every setting; blob size limit; database_prefix deprecation - #317
Open
dimitri-yatsenko wants to merge 2 commits into
Open
dimitri-yatsenko wants to merge 2 commits into
dimitri-yatsenko wants to merge 2 commits into
Conversation
…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.
dimitri-yatsenko
requested review from
MilagrosMarin,
lum-agilyti and
ttngu207
November 21, 2026 03:09
This was referenced Nov 21, 2026
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents the configuration changes in four open
datajoint-pythonPRs 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.datajoint.jsonfor every setting, includingDJ_RECONNECT,DJ_JOBS_*,DJ_SAFEMODEandDJ_USE_TLS.database.database_prefixis deprecated, will be removed in a future release, and is not applied to schema names.blob.max_decompressed_sizesetting (DJ_BLOB_MAX_DECOMPRESSED_SIZE).loglevelindatajoint.jsontakes effect at import;DJ_LOG_LEVELin any case; a skipped configuration file also issues aUserWarning; the file found at import is logged at debug level.This is the documentation change that datajoint/datajoint-python#1675 asks for.
Changes
src/reference/configuration.mddatajoint.jsonfor every setting that has one, with a "Changed in 2.3.7" note listing the settings where the file used to win.UserWarning, the info line for another user's file, the effective user ID, and the debug-levelLoading configuration from <path>line.DJ_RECONNECT,DJ_JOBS_*(a new Environment column),DJ_SAFEMODE,DJ_QUERY_CACHEandDJ_DOWNLOAD_PATH.database.database_prefix: will be removed in a future release, not applied to schema names.loglevel: any case, and applied at import fromdatajoint.json, with a "Changed in 2.3.7" note.blob.max_decompressed_size, unset by default.cacheandenable_python_native_blobs, are removed (dj.config["cache"]raisesKeyErroron 2.3.6), andquery_cacheis described as the query result cache.display.diagram_fontname(DJ_DIAGRAM_FONTNAME), which is onmasterfor 2.3.7, is listed, so that the tables name every variable.src/how-to/deploy-production.mddj.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.namefor a PostgreSQL database. The old note said it would be removed in 2.3.DJ_DATABASE_PREFIXis no longer in the production examples (environment variables, docker-compose, the verification script and the summary table).DJ_BLOB_MAX_DECOMPRESSED_SIZEline, and a note thatloglevelindatajoint.jsonapplies at import.src/how-to/configure-database.md: the sentence that madedatabase.use_tlsan exception (a value indatajoint.jsonreplacedDJ_USE_TLS) now states the 2.3.7 rule: an environment variable takes precedence overdatajoint.jsonfor every setting that has one, with a "Changed in 2.3.7" note. The settings table namesDJ_RECONNECTandDJ_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 thatDJ_LOG_LEVEL=ERRORhides a skipped file, and it describes the info line for another user's file. Its advice to setDJ_IGNORE_CONFIG_FILE=truenow gives the reason that still holds: settings without a variable, such asdisplay.limit, are still read from the file.src/tutorials/advanced/instances.ipynb: the stored output of the twodj.Instance(...)cells no longer showsLoading 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
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.pyand codespell pass.how-to/deploy-production.md.