Skip to content
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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

Jorg88
Copy link

@Jorg88 Jorg88 commented Feb 26, 2025

No description provided.

@Jorg88 Jorg88 requested a review from ptab February 26, 2025 17:25
@Jorg88 Jorg88 requested a review from a team as a code owner February 26, 2025 17:25
Copy link

github-actions bot commented Feb 26, 2025

Code Coverage

Package Line Rate Health
src.mpyl 85%
src.mpyl.cli 63%
src.mpyl.plan 100%
src.mpyl.projects 69%
src.mpyl.steps 92%
src.mpyl.steps.deploy 80%
src.mpyl.steps.deploy.k8s 95%
src.mpyl.steps.deploy.k8s.resources 98%
src.mpyl.utilities 92%
src.mpyl.utilities.dagster 72%
src.mpyl.utilities.docker 82%
src.mpyl.utilities.helm 100%
src.mpyl.utilities.http_client 85%
src.mpyl.utilities.logging 78%
src.mpyl.utilities.pyaml_env 100%
src.mpyl.utilities.repo 97%
src.mpyl.utilities.subprocess 76%
src.mpyl.utilities.yaml 100%
Summary 85% (1908 / 2243)

Minimum allowed line rate is 79%

Copy link

@ptab ptab left a 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
Copy link

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?

Copy link
Author

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.

ProjectUpgraderTwo(project_file),
ProjectUpgraderThree(),
]
is_traefik_file = "-traefik" in project_file.name
Copy link

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! 🙂

Copy link
Author

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!

@Jorg88 Jorg88 requested a review from ptab February 27, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants