-
Notifications
You must be signed in to change notification settings - Fork 29
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
Update plots types to accomodate static plot data #998
Conversation
89f750b
to
a0b2cee
Compare
db0de62
to
1097b0e
Compare
return this.experiments?.getLivePlots() || [] | ||
return { | ||
live: this.experiments?.getLivePlots() || [], | ||
static: this.staticPlots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[F] We are going to have to rethink this if we don't want to hold a copy of the static plots data in the extension.
a0b2cee
to
40cd0f0
Compare
4d0b70a
to
86e6918
Compare
Array.isArray(data) && | ||
(data.length === 0 || (data[0].title && data[0].values)) | ||
) | ||
return !!(hasKey(data, 'live') && hasKey(data, 'static')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[F] Deferring this decision until we have more information as to what a valid state for the plots webview is.
@@ -113,7 +113,7 @@ const Plot = ({ | |||
const Plots = ({ plotsData }: { plotsData?: PlotsData }) => { | |||
return ( | |||
<> | |||
{plotsData?.map(plotData => ( | |||
{plotsData?.live?.map(plotData => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will conflict with #1000
…types-for-new-data
Code Climate has analyzed commit d7448f6 and detected 2 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 100.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.3% (0.0% change). View more on Code Climate. |
4/5 master <- #1001 <- #995 <- #996 <- this <- #999
This PR updates the
PlotsData
type to accommodate static plots being sent to the webview.