Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: display score without durability #815

Merged
merged 4 commits into from
Oct 31, 2024

Conversation

vjousse
Copy link
Collaborator

@vjousse vjousse commented Oct 28, 2024

🔧 Problem

Summing the scores of each step doesn't match the score displayed in the sidebar. Ineed, the main score displayed in the sidebar takes into account the durability (=totalImpacts score/durability) but the scores displayed for each step doesn't take into account the durability.

This is confusing.

Notion card

🍰 Solution

Display, below the actual score, the score without the durability taken into account.

🏝️ How to test

  • Go on the textile tab
  • Choose "T-shirt coton (150g) - Majorant par défaut"
  • Check that 2 scores are displayed in the sidebar, "1 854 Pts" and "1 242 Pts hors durabilité"

Screenshot 2024-10-28 at 11-33-50 Simulateur Ecobalyse

  • Check that 1242 is the sum of all the impacts scores of each step: 486+1.96+48.40+3.25+43.64+1.63+396+1.63+38.10+65.07+1.18+114+41.73=1242.59

Screenshot 2024-10-28 at 11-34-01 Simulateur Ecobalyse

@vjousse vjousse requested a review from n1k0 October 28, 2024 10:38
Copy link
Member

@n1k0 n1k0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice! I think the card mentions this new computed data should be exposed to the API results though (probably only the textile one). And when we add the score without durability to the results, we could then rather easily add a few unit tests!

@vjousse vjousse requested a review from n1k0 October 31, 2024 11:07
Copy link
Member

@n1k0 n1k0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@vjousse vjousse merged commit e83aa84 into master Oct 31, 2024
6 checks passed
@vjousse vjousse deleted the feat/add-score-without-durability branch October 31, 2024 13:17
vjousse pushed a commit that referenced this pull request Nov 7, 2024
## [2.5.0](https://github.com/MTES-MCT/ecobalyse/compare/v2.4.0..v2.5.0)
(2024-11-06)



### 🚀 Features

- Add bookmarks for objects
([#781](#781))
- Add object explorer pages.
([#803](#803))
- Distinguish Objects from Veli.
([#813](#813))
- Display score without durability
([#815](#815))
- Textile export
([#808](#808))
- Object export
([#812](#812))

### 🪲 Bug Fixes

- Create object encrypted file for versions
([#800](#800))
- Improve object simulator.
([#799](#799))
- Fix encoded display name field.
([#820](#820))

### 🚜 Refactor

- Aggregate in python
([#794](#794))
- Turn food process category into a list
([#795](#795))
- Aggregate in python
([#807](#807))

### ⚙️ Miscellaneous Tasks

- Upgrade dependencies to their latest version, Oct. 2024.
([#801](#801))
- Add tolerance to tests comparison
([#810](#810))
- *(data)* New export
([#819](#819))

### ◀️ Revert

- "refactor: aggregate in python"
([#806](#806))

<!-- generated by git-cliff -->

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants