-
Notifications
You must be signed in to change notification settings - Fork 308
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
Inconsistencies in Model Registration and Unregistration Functions in models.py
#6677
Comments
The current implementation is very confusing and not ideal. Even though there are models missing in register and unregister, as you noted, they all get created and deleted correctly (the commands in psql screenshot are run before/after running When unregister or register_models is run now, it loops over all the listed models and calls TL;DR: |
I noticed couple of inconsistencies in the
models.py
related to how models are registered and unregistered.For example:
ReplicationRule
is listed twice in theregister_models
function (even though SQLAlchemy shouldn't have a problem handling this).rucio/lib/rucio/db/sqla/models.py
Lines 1740 to 1743 in 3397448
Missing Model in Unregistration Function: The
VirtualPlacements
model is included in theregister_models
function but is absent from theunregister_models
function.Missing Models from both Functions: The models
BadPFNs
,TransferLimit
,RSETransferLimit
,DatasetLock
,Distance
,TransferStats
are not considered at all.Are (any of) these intensional?
The text was updated successfully, but these errors were encountered: