Skip to content

Fix node settings update#961

Merged
dmytrotkk merged 2 commits intodevelopfrom
fix-node-settings-update
Feb 24, 2026
Merged

Fix node settings update#961
dmytrotkk merged 2 commits intodevelopfrom
fix-node-settings-update

Conversation

@dmytrotkk
Copy link
Collaborator

This pull request introduces improvements to the settings management in node_cli/utils/settings.py, focusing on ensuring data validity and preventing stale settings files. The main changes involve validating settings before saving and removing existing settings files to avoid conflicts.

Validation and file management improvements:

  • Added validation steps using model_validate for both node and internal settings to ensure data correctness before saving. (Fa2a4858L51R51, Fa2a4858L82R82)
  • Introduced the _remove_if_exists helper function to safely delete existing settings files (NODE_SETTINGS_PATH and INTERNAL_SETTINGS_PATH) before writing new ones, preventing stale or conflicting data. (node_cli/utils/settings.pyR21, Fa2a4858L51R51, Fa2a4858L82R82)

These changes help maintain the integrity of settings files and improve reliability in configuration handling.

@dmytrotkk dmytrotkk merged commit eb81b84 into develop Feb 24, 2026
2 of 3 checks passed
@dmytrotkk dmytrotkk deleted the fix-node-settings-update branch February 24, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'node.toml' is not updated when parameters are deleted from init-env

2 participants