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
Added content message delivery for SubscriptionWebsocketHandler #5692
Added content message delivery for SubscriptionWebsocketHandler #5692
Conversation
Hellow @jamesagnew , @fil512 , @tadgh could you please have an initial review, to confirm the pull-request is ok to be continued 👍 . Thanks |
@ArtyomyuS this approach looks good to me! |
Going to provide additional test 👍 |
Hey @jamesagnew would you recommend update I challenge it as I can see the actual mocks within Please advice |
Hello @jamesagnew sorry if the question was not clear. Shall I create a new test class like: Thanks for your support. |
I would think putting a new test next to |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5692 +/- ##
============================================
+ Coverage 81.32% 83.39% +2.06%
- Complexity 23650 26888 +3238
============================================
Files 1425 1679 +254
Lines 86399 103818 +17419
Branches 11677 13155 +1478
============================================
+ Hits 70265 86578 +16313
- Misses 10947 11607 +660
- Partials 5187 5633 +446 ☔ View full report in Codecov by Sentry. |
…ubscription topic content: id-only, empty and full-resource
Hello @jamesagnew , provided unit tests. I thought it shall be more appropriate to have them inside |
Initial glance looks great! Once CI passes I'll give it a real review and get it merged. Thanks for the contribution! |
@ArtyomyuS looks like the spotless code formatting check failed. Can you run |
Hey @jamesagnew run the code, hopefully it works 🤞 |
Hey @jamesagnew any clue why the Screen.Recording.2024-02-15.at.15.31.06.mov |
Also looking into the check pipeline it shows success: https://github.com/hapifhir/hapi-fhir/actions/runs/7906650465/job/21582427202?pr=5692#step:4:8399 |
Hello @jamesagnew I guess we shall be fine now. Thank you |
Hey @jamesagnew any thought on the pull-request. Thank you for the support 🙏 |
Hello @jamesagnew I can see we're progressing with the pull-request, is there anything I could help more here? 💪 |
Description
content
property for the delivered messages so that if content isIDONLY
the web socket message to contain an id, in case ofFULLREFERENCE
to consider the payload of the resource. In case of no content provided the payload remain as today:EMPTY
. This pull-request does not affect previous FHIR versions nor any of the existing behaviour related to web socket messages.Quotes about findings and assumptions
Brief change log
ca.uhn.fhir.jpa.subscription.match.deliver.websocket.SubscriptionWebsocketHandler
handleMessage(Message<?> theMessage)
Verifying this change
This change added tests and can be verified as follows:
Documentation