equinor / equinor/webviz-subsurface-testdata
Add quotes to value of date key for DiskUsage plugin in webviz-full-demo.yml
- Dominant language
- OpenEdge ABL
- Stars
- 11
- Forks
- 28
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
The YAML parser currently used in webviz-config, PyYAML, has a lot of built-in magic when parsing date values. This magic causes the value of the `date` key for the `DiskUsage` plugin in `webviz-full-demo.yml` to be interpreted incorrectly.
https://github.com/equinor/webviz-subsurface-testdata/blob/8520e3c16f910dfb23b0d6b0a8c73b1dad7347bf/webviz_examples/webviz-full-demo.yml#L28-L32
PyYAML ends up parsing `2020-07-11` as a `datetime.date`. This is not the expected input to the `DiskUsage` plugin which expects a string input. Until we either patch PyYaml or switch YAML parser, keys such as this should be enclosed in quotes.
Related to this issue in `webviz-config`: https://github.com/equinor/webviz-config/issues/396
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.