Skip to content

Serialize Expressions to Objects#2436

Merged
texodus merged 1 commit intoperspective-dev:masterfrom
ada-x64:chores/simplify-expr-serde
Nov 17, 2023
Merged

Serialize Expressions to Objects#2436
texodus merged 1 commit intoperspective-dev:masterfrom
ada-x64:chores/simplify-expr-serde

Conversation

@ada-x64
Copy link
Contributor

@ada-x64 ada-x64 commented Nov 16, 2023

This PR changes expression serialization so that expressions will always serialize to objects while allowing users to import array-based expressions.

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.

Thanks for the PR! Looks good!

#[derive(Deserialize, Clone, PartialEq, Debug)]
#[serde(untagged)]
pub enum Expressions {
pub enum ExpressionsDeserde {
Copy link
Member

Choose a reason for hiding this comment

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

What makes this type unique that it requires the qualifier Deserde in the name (as opposed to the other components of ViewerConfig)? There is no other Expressions type, so the fact that it only supports deserialization doesn't disambiguate it.

@texodus texodus merged commit 0b9a967 into perspective-dev:master Nov 17, 2023
@texodus texodus added the bug Concrete, reproducible bugs label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Concrete, reproducible bugs

Development

Successfully merging this pull request may close these issues.

2 participants