This site uses cookies. By continuing to browse the site, you agree to our use of cookies. Find out more about cookies.
Skip to main content
Metadecidim's official logo
  • English Triar la llengua Elegir el idioma Choose language
    • Català
    • Castellano
Sign Up Sign In
  • Home
  • Processes
  • Assemblies
  • Initiatives
  • Consultations
  • Conferences
  • Help

Report a Bug

#BugReportDecidim Let's test Decidim and report bugs together

  • The process
  • I found a Bug!
chevron-left Back to list

Continuity badge counter does not reset

Avatar: CodiTramuntana CodiTramuntana verified-badge
05/02/2019 09:56  
Accepted

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

  • Filter results for category: 0.16.x 0.16.x

This proposal has been accepted because:

List of Endorsements

Avatar: Isaac Massot Isaac Massot
Avatar: Pau Parals Pau Parals verified-badge
Avatar: Xabier Xabier verified-badge
Endorsements count3
Continuity badge counter does not reset Comments 15

Reference: MDC-PROP-2019-02-14233
Version number 2 (of 2) see other versions
Check fingerprint

Fingerprint

The piece of text below is a shortened, hashed representation of this content. It's useful to ensure the content hasn't been tampered with, as a single modification would result in a totally different value.

Value: 8de8bb712959f3ca81dfafaae8fb0fcded7d1573b39393f79310584a24cee51b

Source: {"body":{"en":"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!\").\r\nI go on weekend.\r\nOn 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!\"\r\nOn Monday I expect my continuity badge to reset to 1 consecutive day and also say connect for 9 consecutive days to upgrade the badge"},"title":{"en":"Continuity badge counter does not reset"}}

This fingerprint is calculated using a SHA256 hashing algorithm. In order to replicate it yourself, you can use an MD5 calculator online and copy-paste the source data.

Share:

link-intact Share link

Share link:

Please paste this code in your page:

<script src="https://meta.decidim.org/processes/bug-report/f/210/proposals/14233/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/bug-report/f/210/proposals/14233/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Report inappropriate content

Is this content inappropriate?

Reason

15 comments

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed
Avatar: Carol Romero Carol Romero verified-badge
14/02/2019 11:33
  • Get link Get link

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 1: 2 consecutive days
Level 2: 30 consecutive days
Level 3: 60 consecutive days
Level 4: 180 consecutive days
Level 5: 365 consecutive days
Avatar: Oliver Valls Oliver Valls
14/02/2019 15:37
  • Get link Get link

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.

Avatar: Carol Romero Carol Romero verified-badge
14/02/2019 16:22
  • Get link Get link

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
Avatar: Oliver Valls Oliver Valls
14/02/2019 17:59
  • Get link Get link

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?

Avatar: Carol Romero Carol Romero verified-badge
18/02/2019 12:34
  • Get link Get link

@oriol what do you think? could we do what Oliver suggests?

Avatar: Xabier Xabier verified-badge
18/02/2019 13:01
  • Get link Get link

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
Avatar: Andrés Andrés verified-badge
08/05/2019 12:53
  • Get link Get link

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-

Avatar: Pau Parals Pau Parals verified-badge
09/05/2019 20:43
  • Get link Get link

+1

Avatar: Decidim Product Decidim Product verified-badge
10/05/2019 12:53
  • Get link Get link

Hi, thanks for reporting this. Issue opened here: https://github.com/decidim/decidim/issues/5123

Conversation with Marc Riera
Avatar: Marc Riera Marc Riera
11/12/2019 16:20
  • Get link Get link

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:

Drop the whole Continuity badge. This has been discussed by some @product users in this very same discussion. I'm personally against this kind of badges/trophies, they don't ensure the user actually participates in the platform.
Avatar: Marc Riera Marc Riera
11/12/2019 16:24
  • Get link Get link
Change the texts to highlight the that the badge shows the longest streak recorded. Keep in mind, though, that there's currently no good way to show the current streak
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?

Avatar: Pau Parals Pau Parals verified-badge
11/12/2019 16:26
  • Get link Get link

Totally agree with what you say in option 1 @mrcasals

Avatar: Marc Riera Marc Riera
11/12/2019 16:33
  • Get link Get link

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.

Avatar: Carol Romero Carol Romero verified-badge
12/12/2019 10:52
  • Get link Get link

Hi @mrcasals let's just drop the whole badge. Thanks

Avatar: Marc Riera Marc Riera
12/12/2019 11:16
  • Get link Get link

@carol perfect!

Add your comment

Sign in with your account or sign up to add your comment.

Loading comments ...

  • Terms and conditions of use
  • About the community
  • Download Open Data files
  • Metadecidim at Twitter Twitter
  • Metadecidim at Instagram Instagram
  • Metadecidim at YouTube YouTube
  • Metadecidim at GitHub GitHub
Creative Commons License Website made with free software.
Decidim Logo

Confirm

OK Cancel

Please sign in

decidim Sign in with Decidim Barcelona
Or

Sign up

Forgot your password?