-
Notifications
You must be signed in to change notification settings - Fork 650
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
Adding option to skip loading models from subdirectories #767
Conversation
@ethanbresler I apologize for the delay in reviewing. Thanks for this patch. Would it be possible to add tests for this? |
@drwl Added tests, but the CI tests are failing due to an 'install sql lite' error. Is this something on my end or a problem with the integration tests? |
@drwl can we get another review of this? thanks! |
@maxh I apologize for the delay. @ethanbresler can you try rebasing? I believe that should be fixed. |
Changing `present?` use to be cleaner Co-Authored-By: Shu Fujita <s.fujita@nard.tech>
@drwl any updates here? Can I get this merged? Thanks so much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch & tests -- I apologize for the delay in getting this in.
Currently, the models annotator automatically attempts to find a class with a matching name at the bottom of project's directory tree before going up into specific engine's models. This causes issues with models that share names with classes in other engines or lower classes in the project's directory. This PR adds the option to skip attempts to load classes from lower directories and just uses the model's file path directly. ctran#674
Currently the models annotator automatically attempts to find a class with a matching name at the bottom of project's directory tree before going up into specific engine's models. This causes issues with models that share names with classes in other engines or lower classes in the project's directory. This PR adds the option to skip attempts to load classes from lower directories and just uses the model's file path directly.
#674
cc @maxh