Check.changeset/2 did not include state fields (current_state, current_state_type, current_check_attempt, last_check_at, etc.) in its cast list. Ecto silently dropped all state updates, so update_check_state succeeded but wrote nothing to the database. Added Check.state_changeset/2 for internal state machine updates, keeping the regular changeset safe from user input. Updated Monitoring.update_check_state/3 to use it directly. Reviewed-on: graham/towerops-web#73 |
||
|---|---|---|
| .. | ||
| integration | ||
| mix/tasks | ||
| snmpkit | ||
| support | ||
| towerops | ||
| towerops_web | ||
| test_helper.exs | ||
| towerops_native_test.exs | ||