Skip to content

refactor(settings): move translator to pydantic settings#221

Open
crankynetman wants to merge 3 commits intomainfrom
topic/chriscummings/translator-pydantic-settings
Open

refactor(settings): move translator to pydantic settings#221
crankynetman wants to merge 3 commits intomainfrom
topic/chriscummings/translator-pydantic-settings

Conversation

@crankynetman
Copy link
Collaborator

closes #48 and gives us nice clean pydantic settings for all the validation of our translator settings, the same as scheduler does.

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

Pytest Celery Scheduler Coverage

File Coverage
All files 100%

Minimum allowed coverage is 80%

Generated by 🐒 cobertura-action against 107a395

@crankynetman crankynetman marked this pull request as draft March 3, 2026 22:27
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

Django Pytest/Behave Coverage

File Coverage
All files 83%
config/consumers.py 78%
config/urls.py 69%
config/settings/base.py 69%
config/settings/local.py 72%
scram/route_manager/admin.py 71%
scram/route_manager/models.py 79%
scram/route_manager/views.py 88%
scram/route_manager/api/serializers.py 92%
scram/route_manager/api/views.py 76%
scram/shared/shared_code.py 56%
scram/templates/403.html 91%
scram/templates/404.html 91%
scram/templates/base.html 99%

Minimum allowed coverage is 50%

Generated by 🐒 cobertura-action against 107a395

@crankynetman crankynetman marked this pull request as ready for review March 4, 2026 13:14
gobgp_host: str = "gobgp"
gobgp_port: TCPUDPPort = 50051

@computed_field
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this just because we're building the URL via multiple variables?

# check to make sure that this is actually a valid websocket URL
parsed_url = AnyWebsocketUrl(v)
# then make sure that the trailing slash is actually there.
if not (parsed_url.path and parsed_url.path.endswith("/")):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this point to us doing something dumb with our websocket URLs?

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.

Refactor translator settings

2 participants