Skip to content

Extract handler methods to ABC - #342

Merged
joeshannon merged 1 commit into
DiamondLightSource:mainfrom
joeshannon:subprocess-2
Dec 13, 2023
Merged

joeshannon merged 1 commit into
DiamondLightSource:mainfrom
joeshannon:subprocess-2

Conversation

@joeshannon

@joeshannon joeshannon commented Nov 30, 2023 •

Copy link
Copy Markdown
Contributor

Refactor in preparation for #317

@joeshannon joeshannon changed the title Run worker and run engine in subprocess Extract handler methods to facade ABC Nov 30, 2023
@joeshannon
joeshannon requested review from callumforrester and rosesyrett and removed request for rosesyrett November 30, 2023 16:05

@rosesyrett rosesyrett left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

Comment thread tests/service/test_rest_api.py Resolved
Comment thread src/blueapi/service/facade.py Resolved
Comment thread src/blueapi/service/facade.py Resolved
Comment thread src/blueapi/service/facade.py Resolved
@joeshannon
joeshannon requested a review from tpoliaw December 5, 2023 15:11
@joeshannon

Copy link
Copy Markdown
Contributor Author

The filename should probably be changed too (currently facade.py).

@joeshannon joeshannon changed the title Extract handler methods to facade ABC Extract handler methods to ABC Dec 13, 2023
This is a refactor to avoid direct access to handler components from
the REST app.

To allow further changes to the handler management of the worker and
run engine in future.
@codecov

codecov Bot commented Dec 13, 2023 •

Copy link
Copy Markdown

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (885636a) 86.65% compared to head (d6234ae) 87.14%.

Files Patch % Lines
src/blueapi/service/main.py 86.20% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #342      +/-   ##
==========================================
+ Coverage   86.65%   87.14%   +0.49%     
==========================================
  Files          41       42       +1     
  Lines        1559     1642      +83     
==========================================
+ Hits         1351     1431      +80     
- Misses        208      211       +3     

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

@joeshannon
joeshannon merged commit c5bf8f9 into DiamondLightSource:main Dec 13, 2023
@joeshannon
joeshannon deleted the subprocess-2 branch December 13, 2023 16:44
ZohebShaikh pushed a commit that referenced this pull request May 7, 2024
This is a refactor to avoid direct access to handler components from
the REST app.

To allow further changes to the handler management of the worker and
run engine in future.

In preparation for #317
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.

4 participants