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

Arrays of tables/tablemaps should be sized correctly #1953

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

niloc132
Copy link
Member

@niloc132 niloc132 commented Feb 8, 2022

Without this, the JS Figure will not close correctly, though other
operations are not affected by this.

Fixes #1951

Without this, the JS Figure will not close correctly, though other
operations are not affected by this.

Fixes deephaven#1951
@@ -657,7 +656,7 @@ public Promise fetch(JsFigure figure, FetchObjectResponse response) {
JsTable table = new JsTable(connection, cts);
// never attempt a reconnect, since we might have a different figure schema entirely
table.addEventListener(JsTable.EVENT_DISCONNECT, ignore -> table.close());
tables[p1] = table;
tables[tables.length] = table;
Copy link
Member

Choose a reason for hiding this comment

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

Ah the beauty of JS

Couldn't we just do the same with the promises as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Could, but no need, since we know it will be sized to the full width.

I could make this more "correct in java" and count how many are tables... but it is js, so I didn't (but for a reviewer who asks for it, i will).

Copy link
Contributor

@mattrunyon mattrunyon left a comment

Choose a reason for hiding this comment

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

Confirmed there is no more exception in the web UI

@niloc132 niloc132 merged commit a1beb5b into deephaven:main Feb 11, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calling close on a figure object throws an error
3 participants