-
-
Notifications
You must be signed in to change notification settings - Fork 810
Refactor resources module #1695
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
Refactor resources module #1695
Conversation
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.
I am fine with this but would throw out using a subfolder called resources and placing the files in there as an option that might be easier to understand.
Hi Ryan Thanks for reviewing, much appreciated. I did think about using a subfolder. SQLAlchemy has a subfolder called It does seem that since this code is helper code for We could go with To keep things simple, I wonder if it is easier just to keep them in separate top level modules as in this PR. What do you think? |
Yeah I was thinking the django models folder style route where you make a resources folder, then import everything into the init.py in that folder would make it so you didn't have to change anything - everything still imports from resources. But there're definitely issues with that approach :) |
Are you ok for me to merge as it is? |
Yup, always something we can tackle later if desired and this is an improvement. |
Problem
resources.py
has grown to be a large module. I have moved 'declarative' code and andResourceOptions
into separate modules.There are no functional changes in this PR.
Acceptance Criteria