You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixing #1246 allowed me to dig into the code and better understand the behaviour of the FileDownload widget. I spotted some bugs that add up to this one #1289. Before submitting a PR, I wanted to list these bugs here.
The first one is quite bad, the last example in the Reference Gallery (here) is actually broken. At first selecting a year (here 1970) and downloading the generated data works fine. Doing it a second time with another year seems to work fine but the data that is actually downloaded is the same data again, it hasn't been updated.
Here is another (minimal) example to reproduce this bug:
The data available from the widget will always be the first one downloaded, it won't be updated.
Then there is a series of possibly related bugs. They occur after the widget is clicked and that its data/parameters are updated, the Save window pops up at each change. Also note that the disabled property isn't part of the documented API (see the docs) but the widget inherits it. It doesn't actually disable the widget while this would be a useful feature for such a widget.
I've been working on a PR that tries to tackle these bugs one by one (I wasn't aware of #1289 though). It's a rather slow process, mostly because of my inexistent html/typescript skills, as the root cause of all these bugs seem to arise from there.
@philippjfr I'll submit what I have done so far at some point during the week-end so that you can check whether I went in the right direction.
The text was updated successfully, but these errors were encountered:
Fixing #1246 allowed me to dig into the code and better understand the behaviour of the
FileDownload
widget. I spotted some bugs that add up to this one #1289. Before submitting a PR, I wanted to list these bugs here.The first one is quite bad, the last example in the Reference Gallery (here) is actually broken. At first selecting a year (here 1970) and downloading the generated data works fine. Doing it a second time with another year seems to work fine but the data that is actually downloaded is the same data again, it hasn't been updated.

Here is another (minimal) example to reproduce this bug:
The data available from the widget will always be the first one downloaded, it won't be updated.
Then there is a series of possibly related bugs. They occur after the widget is clicked and that its data/parameters are updated, the Save window pops up at each change. Also note that the

disabled
property isn't part of the documented API (see the docs) but the widget inherits it. It doesn't actually disable the widget while this would be a useful feature for such a widget.Here is the code to reproduce that:
I've been working on a PR that tries to tackle these bugs one by one (I wasn't aware of #1289 though). It's a rather slow process, mostly because of my inexistent html/typescript skills, as the root cause of all these bugs seem to arise from there.
@philippjfr I'll submit what I have done so far at some point during the week-end so that you can check whether I went in the right direction.
The text was updated successfully, but these errors were encountered: