Skip to content

refactor: goundwork/cleanup before passing custom http client - #466

Merged
alexanto merged 5 commits into
mainfrom
feat/inject-custom-http-client
Nov 5, 2026
Merged

alexanto merged 5 commits into
mainfrom
feat/inject-custom-http-client

Conversation

@alexanto

@alexanto alexanto commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • removed unused fn normalized_hash and unused mmh3 dependency
  • start using UnleashEngine.get_spec_version()
  • made url validation to be an explicit check in the __post_init__
    • this is because today we only catch bad urls if register fails and reraises the client specific url exceptions, this is not great because if disable_registration=True is set then we just swallow it. i want to let the user inject their own transport in a next PR which might use different libraries and catching the lib specific expections will not work then

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

  • Unit tests
  • Spec Tests
  • Integration tests / Manual Tests

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@alexanto
alexanto force-pushed the feat/inject-custom-http-client branch 2 times, most recently from 29285dd to 9d39224 Compare November 2, 2026 13:28
@alexanto
alexanto marked this pull request as ready for review November 2, 2026 13:28
@alexanto alexanto changed the title refactor: goundwork/cleanup for injecting an http client refactor: goundwork/cleanup before passing custom http client Nov 2, 2026
@alexanto
alexanto added this pull request to stack #468 November 2, 2026 14:12
@gastonfournier gastonfournier moved this from New to In Progress in Issues and PRs Nov 3, 2026

@sighphyre sighphyre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Okay, seems fair. The URL validation is a little more muck-with-url-chunks than I would have liked but I actually don't see a way to do this without pulling in pydantic, and that's definitely overkill for this. It's self contained enough that we can swap it out later if we decide we care

@github-project-automation github-project-automation Bot moved this from In Progress to Approved PRs in Issues and PRs Nov 3, 2026
@sighphyre
sighphyre force-pushed the feat/inject-custom-http-client branch from 9d39224 to 6b52f42 Compare November 3, 2026 07:36
@alexanto
alexanto merged commit 68503af into main Nov 5, 2026
8 checks passed
@alexanto
alexanto deleted the feat/inject-custom-http-client branch November 5, 2026 13:13
@github-project-automation github-project-automation Bot moved this from Approved PRs to Done in Issues and PRs Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants