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

fix(HTTPSend): Allow HTTPSend commands to be sent in separate sequential queues (SOFIE-3431) #346

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

jstarpl
Copy link
Member

@jstarpl jstarpl commented Sep 5, 2024

About the Contributor

This pull request is posted on behalf of the NRK.

Type of Contribution

This is a:

Bug fix

Current Behavior

All commands in an HTTPSend device are sent sequentially, ignoring the queueId property.

New Behavior

HTTPSend device again supports the queueId property to allow separate sequential request queues.

Testing Instructions

  • Ensure that HTTP integration still works as expected
  • See if multiple parallel HTTP request can be made when using the queueId

Other Information

Status

  • PR is ready to be reviewed.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

@jstarpl jstarpl requested a review from a team as a code owner September 5, 2024 08:23
@jstarpl jstarpl changed the base branch from master to release51 September 5, 2024 08:23
@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2024

Codecov Report

Attention: Patch coverage is 18.75000% with 13 lines in your changes missing coverage. Please review.

Project coverage is 55.72%. Comparing base (81af9f7) to head (5797d0d).

Files with missing lines Patch % Lines
...line-state-resolver/src/service/commandExecutor.ts 9.09% 9 Missing and 1 partial ⚠️
...te-resolver/src/integrations/quantel/connection.ts 0.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           release51     #346      +/-   ##
=============================================
- Coverage      55.73%   55.72%   -0.01%     
=============================================
  Files            129      129              
  Lines          10119    10124       +5     
  Branches        2520     2520              
=============================================
+ Hits            5640     5642       +2     
+ Misses          4477     4105     -372     
- Partials           2      377     +375     

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

@@ -591,11 +591,10 @@ export class QuantelManager extends EventEmitter {
})
}
public clearAllWaitWithPort(portId: string) {
if (!this._waitWithPorts[portId]) {
Copy link
Member

@Julusian Julusian Sep 5, 2024

Choose a reason for hiding this comment

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

There is a bug task already for this SOFIE-3419, as this is not a recent mistake so needs a thorough test

Copy link
Member Author

Choose a reason for hiding this comment

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

I did not see any use of clearAllWaitWithPort but it seemed clearly wrong, so I just changed it now.

Copy link
Member

Choose a reason for hiding this comment

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

Oh right yeah, this quantel one isn't called anymore due to a mistake in the refactoring. so I guess this can be in whatever state you prefer as it is currently dead code. It is also refactored in r52 too, so expect a minor merge conflict there

Copy link
Member

@Julusian Julusian left a comment

Choose a reason for hiding this comment

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

I think the quantel related change needs to be reverted, other than that looks good

packages/timeline-state-resolver/src/service/device.ts Outdated Show resolved Hide resolved
Co-authored-by: Julian Waller <git@julusian.co.uk>
@jstarpl jstarpl merged commit 44e9f5a into release51 Sep 9, 2024
36 checks passed
@jstarpl jstarpl deleted the fix/http-queueId/sofie-3431 branch September 9, 2024 09:39
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.

3 participants