-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
bugfix/20968 synchronization of connector values - old PR #21242
Conversation
File size comparisonSizes for compiled+gzipped (bold) and compiled files.
|
Dashboard visual diffsVisual differences found in:
See artifacts in the run summary for screenshots |
Lighthouse reportdashboards-demo-minimal.json
|
Visual test results - No difference found |
Benchmark report - Dashboardsbenchmarks/Dashboards/DataPool-CSV-constructor.bench.ts
See all
benchmarks/Dashboards/DataTable-loading-rows.bench.ts
See all
benchmarks/Dashboards/DataTable-loading-columns.bench.ts
See all
|
You can use draft PRs to signalize that it is a work in progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Looks good so far. 👍
Generating new row keys during setRows
is missing.
And some things to consider below...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, such a long branch name :D
Anyway, very good job! I only have a suggestion below that may slightly improve the performance.
And not so important, but for the future: branch names are included by default in messages of merge commits, so the shorter the better. Besides, most of us have a rule that PR name = branch name, I think it's worth using. (eg. dash/00000-short-description
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking into the rowKeysId filtering it seems like there are some spots missing that need awareness for the hidden column:
DataTable.deleteColumnAlias
DataTable.deleteColumns
DataTable.renameColumn
DataTable.setCell
DataTable.setColumns
Will fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
Just some nitpicking from my side...
I'll remember the branch length name next time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just added some inline nitpicking 👍
const id = this.rowKeysId; | ||
if (id) { | ||
return this.columns[id]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case we do not return anything.
IMO: return this.columns[id];
will return value or undefined, so the IF is unecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use the if because it gets rid of a lint error:
Type 'undefined' cannot be used as an index type.ts(2538)
Perhaps there is a more efficient solution?
const idxOrig = '' + rowKeyCol[idx]; | ||
|
||
return idxOrig.split('_')[1]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as above
@@ -681,6 +697,7 @@ class DataTable implements DataEvent.Emitter { | |||
|
|||
const column = table.columns[columnNameOrAlias]; | |||
|
|||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for it? I saw above that there is a problem with the linter, but what kind of issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is described here.
The branch an PR have been renamed. |
Tested with JSON connector and RangeModifier. Similar issues with other combinations of connectors/modfiers to be reported in separate tickets.