Skip to content

Conversation

@PythonGermany
Copy link
Contributor

@PythonGermany PythonGermany commented Dec 12, 2025

Summary

Adds config option to customize config refresh interval in the UI (refresh is used to get update announcements)

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Updated documentation in README.md, if applicable.

@PythonGermany PythonGermany changed the title Configure UI config refresh interval feat(ui): Allow to configure config refresh interval Dec 12, 2025
Comment on lines 309 to 312
Name: "ZeroConfigRefreshInterval",
ConfigRefreshInterval: 0,
ExpectedError: nil,
ExpectedValue: defaultConfigRefreshInterval,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if that is whats expected. Like this it behaves the same as the endpoint interval option, there setting the value to zero does not make the config invalid but instead just uses the 1m default

Copy link
Contributor Author

@PythonGermany PythonGermany Dec 13, 2025

Choose a reason for hiding this comment

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

The issue could be solved in a similar way to how config bool values are handled:

gatus/config/ui/ui.go

Lines 118 to 120 in 1df0801

if cfg.DarkMode == nil {
cfg.DarkMode = &defaultDarkMode
}

For a duration this would be:

  • nil -> set default
  • zero -> return error

Only question would whether to make a new pr where this is also "solved" for endpoint interval config and possible other occurrences. Changing this would only be a breaking change for invalid configurations.

@PythonGermany PythonGermany marked this pull request as ready for review December 12, 2025 19:49
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.

1 participant