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

[Telemetry Table] Address issues found during testing Table Performance #7529

Merged
merged 17 commits into from
Mar 13, 2024

Conversation

jvigliotta
Copy link
Contributor

@jvigliotta jvigliotta commented Feb 28, 2024

Closes #7268

Describe your changes:

Fix exporting from Limited Mode: #7268 (comment)
Fix UI issues: #7268 (comment)
Apply configuration changes made in Edit Properties.

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 Notable Change ? For example, will this break compatibility with existing APIs or projects which source these plugins?

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes? (issue created: Recent Table Performance Changes Need e2e tests #7419 )
  • 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.
  • Is this a breaking change to be called out in the release notes?
  • 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?

@jvigliotta jvigliotta added this to the Target:4.0.0 milestone Feb 28, 2024
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 16 lines in your changes are missing coverage. Please review.

Project coverage is 56.02%. Comparing base (cb4c59a) to head (2de4c21).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7529      +/-   ##
==========================================
- Coverage   56.36%   56.02%   -0.34%     
==========================================
  Files         672      672              
  Lines       27094    27108      +14     
  Branches     2624     2629       +5     
==========================================
- Hits        15272    15188      -84     
- Misses      11500    11598      +98     
  Partials      322      322              
Flag Coverage Δ
e2e-full 23.60% <33.33%> (-18.10%) ⬇️
e2e-stable 59.66% <66.66%> (-0.10%) ⬇️
unit 49.13% <42.85%> (+<0.01%) ⬆️
Files Coverage Δ
src/plugins/telemetryTable/TelemetryTable.js 80.78% <100.00%> (+0.19%) ⬆️
src/plugins/telemetryTable/TelemetryTableType.js 100.00% <100.00%> (ø)
src/plugins/telemetryTable/components/TableRow.vue 35.71% <100.00%> (+1.56%) ⬆️
...telemetryTable/components/TableFooterIndicator.vue 28.57% <0.00%> (ø)
...ugins/telemetryTable/components/TableComponent.vue 41.84% <38.09%> (-0.66%) ⬇️

... and 10 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 cb4c59a...2de4c21. Read the comment docs.

@ozyx ozyx self-requested a review February 28, 2024 01:01
Copy link
Contributor

@ozyx ozyx left a comment

Choose a reason for hiding this comment

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

Needs e2e 🧪 or identify the existing e2e 🧪 that covers this

@akhenry akhenry self-requested a review March 4, 2024 21:51
await page.goto(table.url);
await setTimeConductorMode(page, false);
const rows = page.getByRole('row');
await expect(rows).toHaveCount(50);
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@akhenry
Copy link
Contributor

akhenry commented Mar 11, 2024

  • Actually showing 51 rows, but says 50
  • Table throws error in real-time

@jvigliotta jvigliotta requested a review from ozyx March 12, 2024 20:41

this.persistModeChange = persistModeChange;

if (this.rowLimit !== rowLimit) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@akhenry this was previously this.rowLimit === rowLimit which was causing duplicate unsubscribes with the second unsubscribe failing because it was already removed in the realtime-provider.

@@ -1038,7 +1064,7 @@ export default {
let row = allRows[i];
row.marked = true;

if (row !== baseRow) {
if (row !== baseRow && this.markedRows.indexOf(row) === -1) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we were getting dupes in markedRows which caused the count to be off

parent: table.uuid
});
await page.goto(table.url);
await setTimeConductorMode(page, false);
Copy link
Contributor

Choose a reason for hiding this comment

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

this is fine, but we should we try to avoid this appaction

@ozyx ozyx force-pushed the table-performance-fixes branch from 5d50b2c to 5791c20 Compare March 12, 2024 23:08
@akhenry akhenry added the pr:e2e:couchdb npm run test:e2e:couchdb label Mar 13, 2024
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Mar 13, 2024
@akhenry akhenry added the pr:e2e:couchdb npm run test:e2e:couchdb label Mar 13, 2024
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Mar 13, 2024
@akhenry akhenry merged commit 6486263 into master Mar 13, 2024
36 checks passed
@akhenry akhenry deleted the table-performance-fixes branch March 13, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve telemetry table performance
4 participants