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 for CLI's "activity status" and flexbuffers #983

Merged
merged 2 commits into from
Jan 28, 2021

Conversation

mfranciszkiewicz
Copy link
Contributor

@mfranciszkiewicz mfranciszkiewicz commented Jan 28, 2021

flexbuffers is unable to properly de/serialize maps with enums as keys. This PR changes the key type from State to String since "activity status" gsb endpoint is used for presentational purposes only.

Note:

  • changing the intermediary serialized type (e.g. with serde_as(as = "Vec<(_, _)>")) affects output formatting which in turn breaks golemsp and produces cluttered console output
  • defining a separate display struct for StatsResult leads to additional upkeep to keep identical properties in sync between the structs

Changes map key type from "State" to "String" since the command is used for presentation purposes only
@mfranciszkiewicz mfranciszkiewicz added bug Something isn't working alpha.4 labels Jan 28, 2021
@mfranciszkiewicz mfranciszkiewicz requested review from a team and prekucki January 28, 2021 13:30
@mfranciszkiewicz mfranciszkiewicz merged commit c107bf2 into release/v0.6 Jan 28, 2021
@mfranciszkiewicz mfranciszkiewicz deleted the mf/fix-activity-status branch January 28, 2021 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants