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

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

Merged
merged 1 commit into from
Oct 6, 2021

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 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants