Recalculate history when the power of a model or the category of a type changes
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 56/100
Research direction
Issue #213 already handles recalculation when lifespan changes; read that implementation first to find the relevant entry points. Then trace how model power changes affect existing usage rows and how type category changes affect embodied impacts. Done means both changes trigger recalculation for existing history, without manual data updates.
Written by the indexing model from the issue text.
Description
Changing the power of a computer model or type does not affect the days already calculated: only new days use the new value. Changing the category of a computer type does not mark the embodied impacts for recalculation either.
We replaced the power of several server models (it was the PSU rating) with measured values. We had to rescale the existing usage rows ourselves and set recalculate = 1 by hand on the embodied impacts.
#213 already does this when the lifespan changes. Doing the same for power and category would keep the history consistent with the current settings.
Laurent Tison, Afnic
- Dominant language
- PHP
- Stars
- 5
- Forks
- 7
- Avg merge
- 2h 26m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pluginsGLPI/carbon
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
pluginsGLPI/carbon#396 ·
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
pluginsGLPI/carbon#239 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
pluginsGLPI/carbon#395 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
pluginsGLPI/carbon#392 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
pluginsGLPI/carbon#391 ·
All issues in pluginsGLPI/carbon
Similar issues
-
[BUG] Bundle products lose their price in RSS feeds: getPrices() was removedPossibly taken @pcvelz claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
OpenMage/magento-lts#5869 ·
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
modelcontextprotocol/php-sdk#746 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
OpenGIS/waymark-wp#82 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
claude
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
sprain/sprainocchio#39 ·
Maintainers usually reply within 1 day