Skip to content

Fix #1566, remove deprecated flags from WASM debug build#1567

Merged
texodus merged 1 commit intomasterfrom
fix-server-mode
Oct 6, 2021
Merged

Fix #1566, remove deprecated flags from WASM debug build#1567
texodus merged 1 commit intomasterfrom
fix-server-mode

Conversation

@sc1f
Copy link
Contributor

@sc1f sc1f commented Oct 1, 2021

This PR fixes server mode Python by fixing the output of validate_expressions, which was missing a field in the Python implementation. In the pre-1.0.0 viewer, expression_alias was a map of expression aliases to the whole expression string so the user could hover over a column in the UI and see the expression from whence it came. With the "edit expression" button added in 1.0.0, it is no longer necessary to see the whole expression separate from the editor.

Even though the expression_alias field is not used in the viewer, it is required and type-checked by Rust and thus threw an unrecoverable error when loading the table from Python. The long-term fix is to move all validation and parsing logic for expressions, along with other logic that is implemented twice in both JS and Python, all into C++.

Additionally, the WASM debug build was outputting deprecated flag warnings, which have been rectified.

@sc1f sc1f force-pushed the fix-server-mode branch from 019c4b7 to d716a6a Compare October 4, 2021 13:17
@sc1f sc1f added bug Concrete, reproducible bugs JS labels Oct 4, 2021
Copy link
Member

@texodus texodus left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the PR!

@texodus texodus merged commit d60f62a into master Oct 6, 2021
@texodus texodus deleted the fix-server-mode branch October 6, 2021 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Concrete, reproducible bugs JS

Development

Successfully merging this pull request may close these issues.

3 participants