-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loading of database environment in ReadTheDocs environment (#3374)
The environment of ReadTheDocs does not actually have a database and so the typical configuration and profile loading had to be hotwired. A special global flag `IN_RTD_DOC_MODE` in `aiida.manage.configuration` would circumvent loading an actual configuration for a dummy one. Since the actual database environment never had to be loaded, the fact that this contained non-sensical database connection parameters was irrelevant. However, recently the documentation was changed to use the Sphinx extension to document the `CalcJob` class. This now requires loading the `aiida.orm` module, which in turn requires the database environment being loaded. The fix is to actually load the database environment through the backend manager, but without performing the schema check. This will work despite the unusable database configuration because no actual connection is established in this way.
- Loading branch information
Showing
5 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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