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

Combine events #224

Merged
merged 8 commits into from
May 24, 2023
Merged

Combine events #224

merged 8 commits into from
May 24, 2023

Conversation

abbiemery
Copy link
Contributor

Fixes #176

I would really appreciate someone looking over the test in test_reworker for the ordering of WorkerEvents and DataEvents and the ordering of the types of DataEvents. I got quite caught up in the type system here. It appears to be beyond the reach of pythons typing to accurately type this, as backed up by @WareJosephB , however I could be wrong. I tried to explain the issue in a docstring of the offending function but again, could easily have tripped up my explanation here.

@abbiemery abbiemery requested a review from tpoliaw May 22, 2023 16:34
@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Merging #224 (3ceb6d2) into main (f30aed0) will increase coverage by 0.42%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #224      +/-   ##
==========================================
+ Coverage   90.37%   90.80%   +0.42%     
==========================================
  Files          40       40              
  Lines        1174     1174              
==========================================
+ Hits         1061     1066       +5     
+ Misses        113      108       -5     
Impacted Files Coverage Δ
src/blueapi/cli/amq.py 38.88% <ø> (ø)
src/blueapi/service/handler.py 83.33% <ø> (ø)

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -51,12 +51,13 @@ def on_progress_event_wrapper(
on_progress_event(event)

self.app.subscribe(
self.app.destinations.topic("public.worker.event"), on_event_wrapper
self.app.destinations.topic("public.worker.events"), on_event_wrapper
Copy link
Contributor

Choose a reason for hiding this comment

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

We say: How come it's changed to events from event - the convention for topics/queues is singular (we believe)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't aware of the convention, I'll change it back no problem

Copy link
Contributor

@joeshannon joeshannon left a comment

Choose a reason for hiding this comment

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

@abbiemery are you happy with the changes Peter made, and for this to be merged now?

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.

Combine all events emitted by bluesky into one topic
4 participants