I have a notebook that fetches some data from an API, transforms it, and then charts it. Basic stuff, right?
Except it seems to get upset about the data sometimes, especially right after I change the URL or refresh the page.
To see the problem, first notice that their is an error on the data cell: “No data found in the last 183 days for mozilla-central”. In that cell, change the line that reads
const data = raw_data.filter(log => now - log.when < days * DAY);
to comment out the filter call:
const data = raw_data // .filter(log => now - log.when < days * DAY);
and re-execute the cell. The data should render correctly, ignoring the date range from the slider.
To me that seemed like my filter was wrong. I could live with that. That’s not the case though. If you un-comment that line, returning it to the original
const data = raw_data.filter(log => now - log.when < days * DAY);
then suddenly the data renders correctly, and the days slider works as expected. The same problem shows up, and the same steps fix it, when you change the “tree” cell to another value (examples: autoland
or try
).
This seems like a bug in data flow to me. What do you think?
edit: forgot to include the link to the notebook