ClimateMind / ClimateMind/climatemind-backend

Error in chart displaying resoults of a quiz

Open
#508 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
24
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Dear ClimateMind Development Team,

I am writing to report an issue encountered in the ClimateMind app, specifically related to the "Personal Values" chart that appears after completing a quiz. The issue arises when at least two of the personal values calculated from the quiz results are zero.
![Zrzut ekranu 2024-01-10 205836](https://github.com/ClimateMind/climatemind-backend/assets/23237107/31a3c39c-692e-4c24-b3a4-b9af203ea403)
![Zrzut ekranu 2024-01-08 105330](https://github.com/ClimateMind/climatemind-backend/assets/23237107/83f809a3-968c-4016-af85-b6ae17a18a72)
The tooltip on the chart is stacked with multiple entries, all showing "Your Values: 0" for what seems to be the same personal value. The expected behavior would show a single entry per value, not multiple overlapping entries.
I think it should be resolved by changing normalisation of the resoults of a quiz by changing lower bound to 1.
https://github.com/ClimateMind/climatemind-backend/blob/develop/app/personal_values/normalize.py
![Zrzut ekranu 2024-01-11 160550](https://github.com/ClimateMind/climatemind-backend/assets/23237107/f459d04f-dcab-4f0b-b7e0-831fb79dd563)

Best regards,
Tomasz Pochron

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading app/personal_values/normalize.py and trace how quiz results with at least two zero personal values are normalized. Reproduce the reported chart data, then verify that the normalized results no longer create multiple overlapping zero-value tooltip entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.