-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix check of app.routes in app/config.py #263
Conversation
that it won't get triggered by other changes to app.*
Hello @rknop! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2022-01-05 20:39:53 UTC |
Thanks @rknop! @acrellin @dmitryduev Do you know why this is necessary in baselayer? I don't see why the config.yaml.defaults and config.yaml have to match. |
Thanks @rknop! |
I agree that the PR is correct, but as far as the motivation for the original change we may want to document it at the top of the config file so that users know they have to reproduce that section exactly. @rknop We are using Python 3.8, so if you want to use that syntax you are welcome. |
@stefanv the reasoning for this was to save us from silently but constantly shooting ourselves in the foot when deploying new versions of Fritz with new components - we forgot too many times to propagate the changes in the BL/SP default config into Fritz's. |
@dmitryduev It looks to me as though this only compares |
ah, I see what you mean @stefanv. Should this be moved over to SP then? |
@rknop do we still need this PR or can it be closed? |
I've now removed the check in #279 If we keep running into issues with fritz, we can re-implement it there. |
As is, it would object that app.routes had changed from the default config file if you added something else from app.* (e.g. app.secret_key) to the config file without also copying app.routes from the default config file to the config file. Modify ensure_yaml_routes_matches_defaults in app/config.py to just check app.routes and make sure they're either not present, or not changed from the defaulits.