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

Extend conditional #7851

Open
wants to merge 2 commits into
base: conditional-style-performance
Choose a base branch
from

Conversation

khalidadil
Copy link
Contributor

Closes

Describe your changes:

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this a notable change that will require a special callout in the release notes? For example, will this break compatibility with existing APIs or projects that consume these plugins?

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Has this been smoke tested?
  • Have you associated this PR with a type: label? Note: this is not necessarily the same as the original issue.
  • Have you associated a milestone with this PR? Note: leave blank if unsure.
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?

… for historical conditional telemetry queries to allow for plotting
@khalidadil khalidadil changed the base branch from master to conditional-style-performance September 19, 2024 20:06
@@ -243,6 +243,7 @@ export default {
domainObject: {
...this.childObject,
configuration: {
...this.childObject.configuration,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixes a bug with stacked plots

@@ -94,7 +94,7 @@ export function ticks(start, stop, count) {
}

export function commonPrefix(a, b) {
const maxLen = Math.min(a.length, b.length);
const maxLen = Math.min(a.length, b?.length);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixes an issue with undefined telemetry in plots

@@ -110,7 +110,7 @@ export function commonPrefix(a, b) {
}

export function commonSuffix(a, b) {
const maxLen = Math.min(a.length, b.length);
const maxLen = Math.min(a.length, b?.length);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as above

const conditionDetails = conditionCollectionMap.get(id);
const { isDefault } = conditionDetails;
const conditionConfiguration = conditionDetails?.configuration;
const { outputTelemetry, outputMetadata, output } = conditionConfiguration;

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable outputTelemetry.
const conditionDetails = conditionCollectionMap.get(id);
const { isDefault } = conditionDetails;
const conditionConfiguration = conditionDetails?.configuration;
const { outputTelemetry, outputMetadata, output } = conditionConfiguration;

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable outputMetadata.
const outputTelemetryList = [];
const domainObject = this.conditionSetDomainObject;
outputTelemetryMap.forEach((outputMetadata, timestamp) => {
const { condition, telemetry, value } = outputMetadata;

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable telemetry.
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 7.63359% with 242 lines in your changes missing coverage. Please review.

Project coverage is 55.70%. Comparing base (73489cd) to head (21e94fd).

Files with missing lines Patch % Lines
...c/plugins/condition/historicalTelemetryProvider.js 0.00% 156 Missing ⚠️
src/plugins/condition/ConditionManager.js 32.60% 31 Missing ⚠️
src/plugins/condition/components/ConditionItem.vue 0.00% 21 Missing ⚠️
src/plugins/condition/components/TestData.vue 0.00% 10 Missing ⚠️
...lugins/condition/ConditionInspectorViewProvider.js 18.18% 9 Missing ⚠️
...ugins/condition/components/ConditionCollection.vue 0.00% 9 Missing ⚠️
...dition/components/ConditionInspectorConfigView.vue 0.00% 4 Missing ⚠️
...plugins/condition/ConditionSetTelemetryProvider.js 0.00% 2 Missing ⚠️
Additional details and impacted files
@@                        Coverage Diff                        @@
##           conditional-style-performance    #7851      +/-   ##
=================================================================
- Coverage                          58.78%   55.70%   -3.08%     
=================================================================
  Files                                675      678       +3     
  Lines                              27277    27532     +255     
  Branches                            2671     2680       +9     
=================================================================
- Hits                               16034    15336     -698     
- Misses                             11195    12148     +953     
  Partials                              48       48              
Flag Coverage Δ
e2e-ci 50.07% <2.29%> (-11.70%) ⬇️
e2e-full 23.18% <1.37%> (-0.35%) ⬇️
unit 50.82% <7.63%> (-0.39%) ⬇️
Files with missing lines Coverage Δ
src/plugins/condition/components/CriterionItem.vue 0.00% <ø> (ø)
src/plugins/condition/plugin.js 100.00% <100.00%> (ø)
src/plugins/plot/stackedPlot/StackedPlotItem.vue 46.26% <ø> (ø)
src/plugins/plot/tickUtils.js 97.18% <100.00%> (ø)
...plugins/condition/ConditionSetTelemetryProvider.js 19.04% <0.00%> (-75.96%) ⬇️
...dition/components/ConditionInspectorConfigView.vue 0.00% <0.00%> (ø)
...lugins/condition/ConditionInspectorViewProvider.js 18.18% <18.18%> (ø)
...ugins/condition/components/ConditionCollection.vue 0.00% <0.00%> (ø)
src/plugins/condition/components/TestData.vue 0.00% <0.00%> (ø)
src/plugins/condition/components/ConditionItem.vue 0.00% <0.00%> (ø)
... and 2 more

... and 85 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 73489cd...21e94fd. Read the comment docs.

@davetsay
Copy link
Contributor

Just want to say its great to see a PR by @khalidadil again, 🥲

@khalidadil
Copy link
Contributor Author

Just want to say its great to see a PR by @khalidadil again, 🥲

Thanks Dave! Still got some bugs to iron out and it needs tests, but it's getting there!

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