Closed meganrm closed 3 months ago
Status | Category | Percentage | Covered / Total |
---|---|---|---|
๐ด | Statements | 40.31% | 2049/5083 |
๐ด | Branches | 42.89% | 845/1970 |
๐ด | Functions | 36.69% | 418/1139 |
๐ด | Lines | 40.52% | 1962/4841 |
Status of coverage: ๐ข - ok, ๐ก - slightly more than threshold, ๐ด - under the threshold
What about all the plots in our example trajectories that are displayed in the simularium-website? Do they go through a different code path than this? (would this change break them or are they already broken and this is fixing it?)
this is a breaking change, but the fix is really small: remove a .data
when unpacking the data. I could have changed the typing but my thinking here is that the version is really for the internals of the viewer, and anyone consuming the plot data shouldn't be managing/caring about the version number
this is a breaking change, but the fix is really small: remove a
.data
when unpacking the data. I could have changed the typing but my thinking here is that the version is really for the internals of the viewer, and anyone consuming the plot data shouldn't be managing/caring about the version number
So the fix goes in simularium-website, or where? Is there already another PR that fixes the breakage?
this is a breaking change, but the fix is really small: remove a
.data
when unpacking the data. I could have changed the typing but my thinking here is that the version is really for the internals of the viewer, and anyone consuming the plot data shouldn't be managing/caring about the version numberSo the fix goes in simularium-website, or where? Is there already another PR that fixes the breakage?
it's here https://github.com/simularium/simularium-website/pull/522
(Left an approval since I saw that this was urgent, but will defer to Dan since there was an existing discussion)
Time Estimate or Size
xsmall
Problem
getPlotData
is typed to returnPlot[]
but when I logged what I got, it returns an object with{version: 1, data: Plot[]}
, so I changed the functions to actually return Plot[]Solution
Adjust the return of getPlotData to unpack the data
Type of change
Please delete options that are not relevant.