aiidateam / aiida-core

The official repository for the AiiDA code
https://aiida-core.readthedocs.io
Other
414 stars 185 forks source link

AiiDA storage abstraction improvements #5353

Open chrisjsewell opened 2 years ago

chrisjsewell commented 2 years ago

Some TODOs left over from #5330:

Originally posted by @chrisjsewell in https://github.com/aiidateam/aiida-core/issues/5330#issuecomment-1032894701

ltalirz commented 2 years ago

Just mentioning that there are many Github actions test setups in plugins that set the AIIDA_TEST_BACKEND variable, either to django or to sqlalchemy. That django no longer works makes sense, but do we also need to raise when people use sqlalchemy?

Perhaps we can continue allowing that? At the very least, the error message ValueError: Unknown backend 'sqlalchemy' read from AIIDA_TEST_BACKEND environment variable should say what the allowed backends are. psql_dos is not very self-explanatory (even I don't know what dos stands for)

Edit: ok, I get it now

chrisjsewell commented 2 years ago

even I don't know what dos stands for

psql_dos=postgresql+disk-objectstore, i.e. what the storage format actually is, not what python package happens to be used

I would just update the error message, to tell people to change to psql_dos. Presumably, people using AIIDA_TEST_BACKEND are doing it to test against both django and sqlachemy, so it's in their interest to know that they don't need to do this anymore, and they can basically drop the use of AIIDA_TEST_BACKEND