-
Notifications
You must be signed in to change notification settings - Fork 9
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: add holistic durability in exploratory mode #721
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a disturbing behavior when setting the physical durability then update the non-physical one. Is it expected? Is it wanted?
REC-20240905152253.mp4
Co-authored-by: Nicolas Perriault <nicolas@perriault.net>
6333bd1
to
5881ff8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more cosmetic suggestions
Err | ||
("La durabilitΓ© doit Γͺtre comprise entre " | ||
++ String.fromFloat minFloatDurability | ||
++ " et " | ||
++ String.fromFloat maxFloatDurability | ||
++ "." | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason this doesn't seem to work:
Also, we'll probably want a unit test in tests/RouteTest.elm
to check that validation works
EDIT: see this comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added the param docs for POST in da0fff1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the lack of validation in POST, this is a MUCH broader issue I've documented in this comment
@vjousse I've added a failing test in 95bc36c highlighting we don't validate JSON queries passed to the POST API endpoints. This is an issue much broader than the scope of this patch and I don't know if this should be addressed here or in a next dedicated PR (I'm thinking the latter, but I'd love hearing your thoughts) Edit: it's been decided to address the POST validation stuff in a dedicated PR. |
β¦obalyse into feat/add-physical-durability
This reverts commit 95bc36c.
Co-authored-by: Nicolas Perriault <nicolas@perriault.net>
Co-authored-by: Nicolas Perriault <nicolas@perriault.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, ship it!
## π§ Problem Add physical durability in exploratory mode. [Notion card](https://www.notion.so/Introduire-la-durabilit-physique-en-mode-exploratoire-7466a0fd69f140f984cf85b272bbe5ae) ## π TODO - [x] Add physical durability concept to elm data types - [x] Add physical durability to the API ## ποΈ How to test Play with the new durability slider and check that everything is ok. Checking the behavior of the API may be a good idea too. --------- Co-authored-by: Nicolas Perriault <nicolas@perriault.net>
[2.2.0](v2.1.1...v2.2.0) (2024-09-12) ### Features * add app version to openapi docs in the root endpoint. ([#726](#726)) ([5959c34](5959c34)) * add holistic durability in exploratory mode ([#721](#721)) ([774faf3](774faf3)) * render app version details in the changelog. ([#725](#725)) ([8f6ea50](8f6ea50)) ### Bug Fixes * accept custom making complexity for upcycled garments. ([#723](#723)) ([8f61547](8f61547)) * **ci:** check for ecobalyse-private when extracting the branch name ([#733](#733)) ([23ae8a5](23ae8a5)) * don't add disabled step impacts to lifecycle totals. ([#719](#719)) ([b6a7e1c](b6a7e1c)) * ensure express app is properly monitored by Sentry. ([#729](#729)) ([84a39aa](84a39aa)) * make scalingo not segfaulting. ([#728](#728)) ([1de5140](1de5140)) * use fabric processes to compute fabric waste ([#712](#712)) ([1cce55b](1cce55b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
π§ Problem
Add physical durability in exploratory mode.
Notion card
π TODO
ποΈ How to test
Play with the new durability slider and check that everything is ok.
Checking the behavior of the API may be a good idea too.