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

Audio descriptions + closed captions -> jq rules #590

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brendanobra
Copy link
Contributor

What

What does this PR add or remove?

Why

Why are these changes needed?

How

How do these changes achieve the goal?

Test

How has this been tested? How can a reviewer test it?

Checklist

  • I have self-reviewed this PR
  • I have added tests that prove the feature works or the fix is effective

Copy link

github-actions bot commented Aug 6, 2024

Code Coverage

Package Line Rate Health
core.main.src.state 26%
core.main.src.bootstrap 0%
core.sdk.src.api.gateway 87%
core.sdk.src.utils 53%
core.sdk.src.api 78%
device.thunder.src.bootstrap 0%
core.sdk.src.framework 75%
device.thunder_ripple_sdk.src.client 74%
core.main.src.processor 0%
core.main.src.bootstrap.extn 0%
core.main.src.broker 45%
core.sdk.src.api.observability 68%
device.thunder_ripple_sdk.src.processors 10%
core.main.src.processor.storage 0%
core.sdk.src.extn.client 91%
device.thunder_ripple_sdk.src 15%
core.sdk.src.extn 83%
distributor.general.src 2%
device.thunder_ripple_sdk.src.events 4%
openrpc_validator.src 90%
core.main.src.firebolt.handlers 8%
core.sdk.src.api.distributor 84%
core.main.src.state.cap 44%
core.main.src.utils 29%
core.main.src.service.extn 40%
core.launcher.src 0%
core.tdk.src.gateway 100%
core.tdk.src.utils 0%
core.main.src.service 31%
core.launcher.src.manager 7%
core.main.src.firebolt 4%
device.thunder.src 0%
device.mock_device.src 52%
device.thunder_ripple_sdk.src.bootstrap 0%
core.main.src 0%
core.main.src.bootstrap.manifest 0%
core.sdk.src.extn.ffi 80%
device.thunder_ripple_sdk.src.processors.events 0%
core.main.src.service.apps 47%
core.sdk.src.api.device 77%
core.sdk.src.api.firebolt 78%
core.sdk.src.api.manifest 91%
core.main.src.broker.thunder 54%
Summary 44% (17840 / 40820)

Minimum allowed line rate is 42%

@brendanobra brendanobra changed the title chore: revert rpc cleaning Audio descriptions + closed captions -> jq rules Aug 6, 2024
@@ -204,6 +209,12 @@ impl BrokerOutput {
}
None
}
pub fn is_success(&self) -> bool {
self.data.error.is_none()
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it better to validate the result field here ?

self.data.error.is_none()
}
pub fn is_failure(&self) -> bool {
!self.is_success()
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar comment, if error field has some value, then data contains error response.

}
None => None,
};
} else if raw_value.get("success").is_some() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be re-checked for result and error use cases.
result response struct is implementation defined and success field is not part of standard JSON-RPC 2.0 response format.

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.

2 participants