Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

add timestamp to latest status change for node#170

Merged
JannikSt merged 2 commits into
developfrom
improvement/status-change-timestamp
Mar 26, 2025
Merged

add timestamp to latest status change for node#170
JannikSt merged 2 commits into
developfrom
improvement/status-change-timestamp

Conversation

@JannikSt
Copy link
Copy Markdown
Member

No description provided.

@JannikSt JannikSt requested a review from Copilot March 26, 2025 17:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for recording the timestamp of the latest node status change. Changes include updating the OrchestratorNode model to include a new last_status_change field, modifying the NodeStore update logic to set this field, and updating related tests to verify the timestamp behavior.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
orchestrator/src/store/domains/node_store.rs Sets last_status_change upon status change and updates tests with the timestamp check.
orchestrator/src/models/node.rs Introduces the last_status_change field in the OrchestratorNode struct.
orchestrator/Cargo.toml Enables the serde feature for chrono.
orchestrator/src/node/status_update.rs Updates tests to verify last_status_change is either updated or remains None appropriately.
orchestrator/src/api/routes/nodes.rs Updates tests to include last_status_change when adding nodes.

@JannikSt JannikSt merged commit 0185496 into develop Mar 26, 2025
JannikSt added a commit that referenced this pull request Apr 12, 2025
* add timestamp to latest status change for node

* add status change when node in ejected but provider becomes healthy again
@JannikSt JannikSt deleted the improvement/status-change-timestamp branch June 25, 2025 13:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants