Recalculate history when the power of a model or the category of a type changes

Aperta
#397 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
PHP
Stelle
5
Fork
7
Merge medio
2h 26m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pluginsGLPI/carbon

Tutte le issue di pluginsGLPI/carbon

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.