okTurtles / group-income

A decentralized and private (end-to-end encrypted) financial safety net for you and your friends.
https://groupincome.org
GNU Affero General Public License v3.0
331 stars 44 forks source link

Dashboard tabs do not always update #2395

Open dotmacro opened 3 weeks ago

dotmacro commented 3 weeks ago

Problem

On testing, sometimes the SupportHistory and TodoHistory tabs don't update when a new period begins.

These screenshots are from today, October 27th, meaning they're missing one completed period and the current period (ending November 3rd).

noDashboardUpdates--support noDashboardUpdates--todo

noDashboardUpdates--payments

I haven't been able to pin down a cause because it doesn't affect all groups on testing, nor does it affect all groups this user is a member of on testing. In case it helps, the affected group has mincome set in Bitcoin and the groupName is emoji. Changing the group name to Latin characters does not fix the issue.

Solution

  1. Determine cause of issue.
  2. Fix :-D
taoeffect commented 3 weeks ago

I'm guessing this might happen when there were zero payments for the period.

dotmacro commented 3 weeks ago

You're correct that there were no payments made for either missing period, yes! That does seem to be a cause because making a payment in the current period does add that period to the dashboard tabs. However, this also makes it look as though the current period is the only period in the group's history: image

The app should should show history, even if no payments have yet been made.

Once the first payment is made, should the dashboard reset to make it look as though the current period is the only period in the group's history?