Report a Bug
#BugReportDecidim Let's test Decidim and report bugs together
Continuity badge counter does not reset
I connect 6 consecutive days (my continuity badge says "You have connected for 6 consecutive days at some point." and "Connect for 4 consecutive days to get to the next level!").
I go on weekend.
On Monday, Tuesday and Wednesday I connect again each day, and each of this days my continuity badge says the same messages: "You have connected for 6 consecutive days at some point." and "Connect for 4 consecutive days to get to the next level!"
On Monday I expect my continuity badge to reset to 1 consecutive day and also say connect for 9 consecutive days to upgrade the badge
This proposal has been accepted because:
List of Endorsements
Report inappropriate content
Is this content inappropriate?
15 comments
Hi @coditramuntana, this is how it's been coded. I mean, the behavior you describe is intentional, but I agree that it might be confusing and we should add to the Badge information page the number of consecutive days you need to log in in order to level up, which are:
Level 2: 30 consecutive days
Level 3: 60 consecutive days
Level 4: 180 consecutive days
Level 5: 365 consecutive days
Hi @carol, It should be a bug. It is totally incorrect that the badge info tells me "Connect for 4 consecutive days to get to the next level!" when I really need to connect for 8 days.
Technically there are 2 counters inside the badge system, one of the counters is not being reseted when the user stops connecting for some day.
Hi @oliver_valls, maybe this shouldn't be a badge 😅
No, seriously, In fact, it was controversial from the beginning because it was not clear how best to implement it:
https://github.com/decidim/decidim/issues/3209#issuecomment-427794002
I think for starters, we should change the info message. Ho would you improve it besides that?
Conversation with Oliver Valls
Thanks for your feedback @carol!
I've read the thread in github and still think it is a bug because of what I've said, when I stop connecting both counters should be reseted but keep the level won by the user, because last definition talks only about consecutive days so one counter ought to be enough.
I think that rendering the number of days in the strike (there's a counter named strike) instead of the counter in the badge in the "Connect for 4 consecutive days to get to the next level!" message should solve the problem, but it is a complicated system. Maybe it is better to ask its implementors?
@oriol what do you think? could we do what Oliver suggests?
This seems like a genuine bug to me. I have also noticed that my counter is not correctly updated (without checking the code).
Conversation with Andrés
I think continuity shouldn't be a badge itself, the dynamics are very special.
For instance on Duolingo, it gets called "streak" and I can win it or lose it if I don't connect everyday. https://support.duolingo.com/hc/en-us/articles/204980880-What-is-a-streak-
+1
Hi, thanks for reporting this. Issue opened here: https://github.com/decidim/decidim/issues/5123
Conversation with Marc Riera
I've been assigned this issue, but I'm not sure on what to do here.
The badges system has a single counter. This counter is used to calculate both the current badge level and how many actions you need to perform to get to the next level (participate in N more debates, get N more accepted proposals, etc). In the case of Continuity badge, there's an extra counter that keeps track of the current streak of days. If the streak is longer than the badge score, then it updates the badge score, otherwise it keeps the value. This is to keep the longest streak in the Continuity badge score.
With the current badge system, there are some few options:
Change the behavior so that whenever the streak is lost, the Continuity badge is also reset.
Add a metadata column to the badges, so that we can keep the current streak there and we don't have to hack ugly code
Those are the ideas I can think of, @carol @andres what do you prefer?
Totally agree with what you say in option 1 @mrcasals
I'd like to point out that option 4 would mean adding a whole column to the DB and making the badges system more complicated for a badge that, in my opinion, doesn't add a lot of value to the platform and does not ensure participation.
In my opinion, this badge only causes people to visit the site for the sake of visiting it. The problems with this kind of badge is the same as Goodread's Reading Challenge: it causes people to read for the sake of reading and doesn't take what they read (since you're only counting books, not pages, and might cause stress because you're not "reaching the goals"). You can find a lot of criticism to Goodreads reading challenge with a quick search online.
Hi @mrcasals let's just drop the whole badge. Thanks
@carol perfect!
Add your comment
Sign in with your account or sign up to add your comment.
Loading comments ...