Skip to content

Commit

Permalink
debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vbabich committed Mar 7, 2025
1 parent 5c38ab3 commit ac69c60
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions packages/dashboard-core-plugins/src/panels/IrisGridPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export class IrisGridPanel extends PureComponent<

componentDidMount(): void {
this.initModel();
log.debug('[0] componentDidMount');
}

componentDidUpdate(
Expand All @@ -325,6 +326,7 @@ export class IrisGridPanel extends PureComponent<
const { model } = this.state;
const { makeModel } = this.props;
if (model !== prevState.model) {
log.debug('[0] componentDidUpdate model changed');
if (prevState.model != null) {
this.stopModelListening(prevState.model);
prevState.model.close();
Expand All @@ -342,13 +344,16 @@ export class IrisGridPanel extends PureComponent<
componentWillUnmount(): void {
this.savePanelState.cancel();

log.debug('[0] componentWillUnmount');

if (this.modelPromise != null) {
this.modelPromise.cancel();
this.modelPromise = undefined;
}

const { model } = this.state;
if (model) {
log.debug('[0] componentWillUnmount CLOSE');
this.stopModelListening(model);
model.close();
}
Expand Down
1 change: 1 addition & 0 deletions packages/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"*.css"
],
"dependencies": {
"@deephaven/log": "^0.104.0",
"@deephaven/utils": "file:../utils",
"classnames": "^2.3.1",
"color-convert": "^2.0.1",
Expand Down
6 changes: 6 additions & 0 deletions packages/grid/src/GridRenderer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import clamp from 'lodash.clamp';
import { ColorUtils, getOrThrow } from '@deephaven/utils';
import Log from '@deephaven/log';
import memoizeClear from './memoizeClear';
import GridUtils from './GridUtils';
import GridColorUtils from './GridColorUtils';
Expand All @@ -19,6 +20,8 @@ import type CellRenderer from './CellRenderer';
import DataBarCellRenderer from './DataBarCellRenderer';
import TextCellRenderer from './TextCellRenderer';

const log = Log.module('GridRenderer');

type NoneNullColumnRange = { startColumn: number; endColumn: number };

type NoneNullRowRange = { startRow: number; endRow: number };
Expand Down Expand Up @@ -1856,6 +1859,9 @@ export class GridRenderer {
allRowYs,
width,
} = metrics;

log.debug('[0] drawRowFooters', rowFooterWidth);

if (rowFooterWidth <= 0) {
return;
}
Expand Down
7 changes: 6 additions & 1 deletion packages/grid/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
},
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.js", "src/**/*.jsx"],
"exclude": ["node_modules", "src/**/*.test.*", "src/**/__mocks__/*"],
"references": [{ "path": "../utils" }]
"references": [
{ "path": "../utils" },
{
"path": "../log"
}
]
}

0 comments on commit ac69c60

Please sign in to comment.