-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repository.initialise
never called
#4937
Comments
commit 87ab7e3
|
Thanks for the link to #4900. Additionally, if we are re-initialising the repository in |
RepositoryBackend.initialise
never calledRepository.initialise
never called
In #5330 we now directly initialise new profile storage (in |
The
AbstractRepositoryBackend
has these:Which then are for example inmplemented in the
DiskObjectStoreRepositoryBackend
:However,
initialise
in never actually called anywhere in the code base (except inAiidaTestCase.initialise_repository
)How these backends actually get initialised is
SandboxRepositoryBackend
it is created whenSandboxRepositoryBackend.sandbox
is calledDiskObjectStoreRepositoryBackend
it is created directly (viacontainer.init_container
) in eitheraiida/backends/djsite/db/migrations/0047_migrate_repository.py
oraiida/backends/sqlalchemy/migrations/versions/1feaea71bd5a_migrate_repository.py
(obviously depending on your orm backend)I feel we should be calling
initialise
somewhere, and not relying on the migration?Also
DiskObjectStoreRepositoryBackend.initialise
should probably include theself.container.is_initialised
check, beforecontainer.init_container
, to ensure idempotenceThe text was updated successfully, but these errors were encountered: