Closed danielhollas closed 1 year ago
@unkcpz @yakutovicha I will be on holiday till Monday. Feel free to pick up this PR.
Patch coverage: 100.00
% and project coverage change: +0.10
:tada:
Comparison is base (
9720334
) 79.32% compared to head (a86e5f4
) 79.42%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@danielhollas, thanks a lot. I will take over implementing the unit test.
[ ] Is there a better Unicode character that we could use?
I think the Unicode character you picked up ⌛ is good enough 👍
Super nice! thanks a lot, @danielhollas. I'll do the review after @yakutovicha implementation of the unit test.
@unkcpz if you are ok with the current "busy" Unicode character, please tick the box. I am ok with it.
Otherwise, the PR is ready for your review.
Thank you @yakutovicha @unkcpz. Because the memory leak is such a critical issue, I would suggest to backport this to the 1.4 support branch.
I would suggest to backport this to the 1.4 support branch.
I'll take care of this after this one gets merged.
WizzardAppWidget uses an infinite background thread to continously update titles of the Accordion widget. It looks like the only reason for this is to implement a dynamic "spinner". This thread just needlesly consumes server resources for a very little benefit. Implementing a "spinner" in this way is silly.
More importantly, it looks like this background thread is the main reason for the memory leak we're seeing, see https://github.com/aiidalab/issues/issues/13
Here I remove the thread in favour of a static unicode character, in line with all the other icons. It would be great if we could use some dynamic icons, e.g. fa-spinner as used in the SmilesWidget, but it looks like the Accordion.set_title() function does not parse HTML. Ultimately I think having static icon is fine, and users can implement something more dynamic in the child widgets.
TODO:
state
trait of the child widget changes.