-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/g UI ld 1306 remove ip allow list #207
base: main
Are you sure you want to change the base?
Conversation
Minimum allowed line rate is |
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.
Nice work! 💪
with StringIO() as stream: | ||
yaml.explicit_start = explicit_start |
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.
For me to learn, why is this necessary?
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.
It adds the ---
at the start of yaml files so that the commit hook doesn't complain every time we (I) run the Upgraders.
src/mpyl/projects/versioning.py
Outdated
ProjectUpgraderTwo(project_file), | ||
ProjectUpgraderThree(), | ||
] | ||
is_traefik_file = "-traefik" in project_file.name |
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.
Adding these if/else conditions in the code makes this setup much harder to understand and (most importantly) to extend, so I created this small PR with a proposal of a different way to make this work. Let me know what you think! 🙂
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.
Hehe I like how you usually precisely find the problems in my code that I was also discussing with myself while writing it. Basically I couldn't see an easy way to do it better and I was in a bit of a rush 😉 plus I told myself we won't have to support other files besides these 2 types.
I'll for sure take a look tomorrow!
…D-1306-remove-ipAllowList
No description provided.