Open itdependsnetworks opened 1 month ago
This is expected as we make it quite clear that you must install dependencies for an integration in order for it to be functional, including the Jobs.
I won't fall on my sword on it, but ideally we can separate these two so that we know what issue is actually happening. From a POLA perspective, I expect to fail early if I don't have the right dependencies.
The typical pythonic way of doing this is to wrap the import in a try/except
to catch the ImportError
and raise a more meaningful error. Here is an example in django-tables2 https://github.com/jieter/django-tables2/blob/master/django_tables2/export/export.py#L4-L9
The challenge we have is there are two different reasons to have an ImportError
In thinking about it, I think we should just move to a manual definition of the job to integration mapping, and just let ImportError's do their thing. This will cause an additional step to the developer, but they would not get far without doing this step. So it would be less empathetic to the developer, but more empathetic to the admins.
Environment
Expected Behavior
I am not exactly sure, and perhaps not really a bug, but jobs do not register when you are missing sub-dependencies.
Observed Behavior
Steps to Reproduce
nautobot-server migrate
to have jobs populate