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

Update bluesky-stomp and prevent duplication of BasicAuthentication #640

Merged
merged 6 commits into from
Sep 17, 2024

Conversation

DiamondJoseph
Copy link
Collaborator

@DiamondJoseph DiamondJoseph commented Sep 17, 2024

Fixes #636

Current parsing of config passes a blueapi BasicAuthentication with fields username, passcode as an instance of bluesky-stomp BasicAuthentication with fields username, password. I am not certain that we would be able to pass the former as an instance of the latter even if their arguments agreed, as they are different Pydantic models. We can reuse bluesky-stomp's BasicAuthentication as part of the config of blueapi and not duplicate the logic.

Copy link

codecov bot commented Sep 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.62%. Comparing base (9d7414b) to head (89148a8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #640      +/-   ##
==========================================
- Coverage   92.66%   92.62%   -0.04%     
==========================================
  Files          35       35              
  Lines        1663     1654       -9     
==========================================
- Hits         1541     1532       -9     
  Misses        122      122              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@stan-dot stan-dot self-requested a review September 17, 2024 10:49
@stan-dot stan-dot added bug Something isn't working enhancement New feature or request dependencies Pull requests that update a dependency file labels Sep 17, 2024
Copy link
Collaborator

@stan-dot stan-dot left a comment

Choose a reason for hiding this comment

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

lgtm

@DiamondJoseph DiamondJoseph changed the title Re-use bluesky-stomp BasicAuthenticationg Update bluesky-stomp and prevent duplication of BasicAuthentication Sep 17, 2024
@stan-dot
Copy link
Collaborator

dev-requiremnts need an update

@DiamondJoseph DiamondJoseph merged commit 8b35390 into main Sep 17, 2024
26 checks passed
@DiamondJoseph DiamondJoseph deleted the single-authentication branch September 17, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration with bluesky-stomp bug with Basic Authentication
2 participants