Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Bug: Calculation errors on the "Achievements" page #455

@sergiozeppo

Description

@sergiozeppo

Summary

I continue to familiarize myself with Hexlet and its projects.
And I came across such a strange bug on the achievements page.
image

Maybe my issue is kind of relative to #436 Issue, but more specific about calculation problem.

Reproduction steps

1. Go to "https://friends.hexlet.io/achievements"
2. Notice the bug

Expected result

At a minimum, the expected result should look different.
All achievements marked with a question mark must be completed.
And the rest should have their data recalculated.

Actual result

The problem is calculating a few (and probably all) of the achievements.
For example, Hexlet friend. Make ANY contribution to Hexlet projects.
It implies getting an achievement for any useful action. But for some reason it shows 98.8%, which is impossible. The action is either done or not.

For example, the first achievement for each action (marked with a question). There should be either 0% or 100%, there are no other options. How can 9.1% Issue be accomplished if I just created 2 today (but let's say the data didn't update), ok, but on last week 2 more were created.

And I didn't create commits and pull-requests to Hexlet projects, but still have some values there.... If they are global data, then all the more wrong.

The error is probably everywhere, since I have 0.1% for reaching “50 Issues”. It turns out that I only have 0.05 Issue open. So how is that possible? )

And if the calculation methods translate all data into some sort of points with the weight of each action, then it's done implicitly, plus it doesn't cancel out the achievement calculation errors in the question marked issues.

Browsers

Chrome

OS

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions