Update the todo count in realtime
What does this MR do and why?
It updates the todo counter in real time
99+
. Because the update happens on FE side, the value is taken from the content of the todo counter, parsed and than 1 todo
is either added or subtracted from this number. In case when value is 99+
, adding todos is working fine. But when the todo is marked as done 99+
is parsed as 99
then 1 is subtracted from it and we get the number of todos as 98
which is not correct. I'm not sure whether we should do something about it
How to set up and validate locally
- Enable the feature flag:
echo "Feature.enable(:super_sidebar_nav)" | rails c
- Enable the user setting from the user dropdown:
- Observe the todo counter - it should be refreshed with adding/removing todos
- Go to some issue page and click
Add todo/Mark as done
on the top of the right sidebar
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #403657 (closed)