You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when trying to remove daiquiri apps (e.g. query) which are not used (in our case by the 4MOST system), I noticed a few "hidden" dependencies, bascially not allowing me to remove some apps due to dependencies in the migrations or in the code itself.
Some examples:
Using the 'files' app requires the stats app due to an import in files/utils.py:13
The 'stats', 'query' and 'jobs' app have a few internal dependencies, which is probably ok, but with the dependecy of the files app, this is three (actually four, see below) additional apps.
E.g.: The 'stats' app requires the query and jobs app due to a dependency in the migrations (0002_data_migration.py and 0003_... depend on query and jobs app).
The query app depends on the metadata app by import in query/process.py:14
The text was updated successfully, but these errors were encountered:
The co-dependency between the jobs, metadata and query apps is inevitable. I'm a bit surprised that the dependency on the stats app is de facto hard coded in query etc. I assumed that it should be possible to to use query without stats. For now, I'll just fix the stats dependency in the files app, since it easy to implement and should not have an affect on anything else.
I'm hesitant to touch the old migrations in order to remove the stats dependencies in other apps since it's not clear for me what the consequences will be.
Old migrations run only when you setup a new system. So in principle, if the migrations run through on a fresh installation, you're fine. Only if an instance out there is on a specific migration and upgrades thinks can get problematic. I think for daiquiri this chance is pretty low.
As of now, I get an error if I setup a new system due to the dependencies in the migrations.
I'll leave the issue open and might look at the problem in more detail later. The dependencies between the apps jobs, query and stats are not as critical since they are always used together anyway.
when trying to remove daiquiri apps (e.g. query) which are not used (in our case by the 4MOST system), I noticed a few "hidden" dependencies, bascially not allowing me to remove some apps due to dependencies in the migrations or in the code itself.
Some examples:
Using the 'files' app requires the stats app due to an import in files/utils.py:13
The 'stats', 'query' and 'jobs' app have a few internal dependencies, which is probably ok, but with the dependecy of the files app, this is three (actually four, see below) additional apps.
E.g.: The 'stats' app requires the query and jobs app due to a dependency in the migrations (0002_data_migration.py and 0003_... depend on query and jobs app).
The query app depends on the metadata app by import in query/process.py:14
The text was updated successfully, but these errors were encountered: