Skip to content

Handle invalid layout files from the server correctly#225

Merged
mofojed merged 1 commit intodeephaven:mainfrom
mofojed:221-bad-layouts
Oct 7, 2021
Merged

Handle invalid layout files from the server correctly#225
mofojed merged 1 commit intodeephaven:mainfrom
mofojed:221-bad-layouts

Conversation

@mofojed
Copy link
Member

@mofojed mofojed commented Oct 7, 2021

- Only check `.json` files to avoid reading from an incorrect file
- If the .json file is corrupted for some reason (not valid json), fallback to the default layout
- Fixes deephaven#221
@mofojed mofojed added bug Something isn't working web-client-ui labels Oct 7, 2021
@mofojed mofojed added this to the October 2021 milestone Oct 7, 2021
@mofojed mofojed requested a review from vbabich October 7, 2021 14:58
@mofojed mofojed self-assigned this Oct 7, 2021
@mofojed mofojed merged commit c71ca78 into deephaven:main Oct 7, 2021
@mofojed mofojed deleted the 221-bad-layouts branch October 7, 2021 17:19
mofojed added a commit to mofojed/web-client-ui that referenced this pull request Oct 12, 2021
* `chart`, `code-studio`, `components`, `console`, `dashboard-core-plugins`, `dashboard`, `file-explorer`, `golden-layout`, `grid`, `iris-grid`, `jsapi-shim`, `log`, `mocks`, `react-hooks`, `redux`, `storage`, `utils`
  * [deephaven#203](deephaven#203) Separate dashboard into own package ([@mofojed](https://github.com/mofojed))

* `chart`, `code-studio`, `components`, `console`, `dashboard-core-plugins`, `dashboard`, `file-explorer`, `golden-layout`, `grid`, `iris-grid`, `jsapi-shim`, `log`, `mocks`, `react-hooks`, `redux`, `storage`, `utils`
  * [deephaven#203](deephaven#203) Separate dashboard into own package ([@mofojed](https://github.com/mofojed))
* `icons`
  * [deephaven#220](deephaven#220) update to latest @vscode/codicons and add dhFreeze icon ([@dsmmcken](https://github.com/dsmmcken))

* `code-studio`
  * [deephaven#225](deephaven#225) Handle invalid layout files from the server correctly ([@mofojed](https://github.com/mofojed))
* `components`, `console`
  * [deephaven#202](deephaven#202) Don't show custom context menu on right-click in Monaco editor ([@vbabich](https://github.com/vbabich))

* [deephaven#226](deephaven#226) Add fetch-depth flag in alpha publish ([@mofojed](https://github.com/mofojed))
* [deephaven#224](deephaven#224) Update publish action auth ([@mofojed](https://github.com/mofojed))

- Don ([@dsmmcken](https://github.com/dsmmcken))
- Mike Bender ([@mofojed](https://github.com/mofojed))
- [@vbabich](https://github.com/vbabich)
@mofojed mofojed mentioned this pull request Oct 12, 2021
mofojed added a commit that referenced this pull request Oct 12, 2021
* `chart`, `code-studio`, `components`, `console`, `dashboard-core-plugins`, `dashboard`, `file-explorer`, `golden-layout`, `grid`, `iris-grid`, `jsapi-shim`, `log`, `mocks`, `react-hooks`, `redux`, `storage`, `utils`
  * [#203](#203) Separate dashboard into own package ([@mofojed](https://github.com/mofojed))

* `chart`, `code-studio`, `components`, `console`, `dashboard-core-plugins`, `dashboard`, `file-explorer`, `golden-layout`, `grid`, `iris-grid`, `jsapi-shim`, `log`, `mocks`, `react-hooks`, `redux`, `storage`, `utils`
  * [#203](#203) Separate dashboard into own package ([@mofojed](https://github.com/mofojed))
* `icons`
  * [#220](#220) update to latest @vscode/codicons and add dhFreeze icon ([@dsmmcken](https://github.com/dsmmcken))

* `code-studio`
  * [#225](#225) Handle invalid layout files from the server correctly ([@mofojed](https://github.com/mofojed))
* `components`, `console`
  * [#202](#202) Don't show custom context menu on right-click in Monaco editor ([@vbabich](https://github.com/vbabich))

* [#226](#226) Add fetch-depth flag in alpha publish ([@mofojed](https://github.com/mofojed))
* [#224](#224) Update publish action auth ([@mofojed](https://github.com/mofojed))

- Don ([@dsmmcken](https://github.com/dsmmcken))
- Mike Bender ([@mofojed](https://github.com/mofojed))
- [@vbabich](https://github.com/vbabich)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working web-client-ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Web UI loads non-json files as layouts

2 participants