Skip to content

feat: enable source priority filtering at boot time#2193

Open
KEGustafsson wants to merge 2 commits intoSignalK:masterfrom
KEGustafsson:boot_time_priority_filtering
Open

feat: enable source priority filtering at boot time#2193
KEGustafsson wants to merge 2 commits intoSignalK:masterfrom
KEGustafsson:boot_time_priority_filtering

Conversation

@KEGustafsson
Copy link
Contributor

This PR add time to sources at boot time to enable source priority filtering work correctly.
Current implementation allowing all sources to enter the Signal K before source priority starts to filter sources.

Delays acceptance of lower-priority sources at startup until cumulative
timeouts of higher-priority sources have elapsed, giving preferred
sources time to connect before fallbacks are accepted.
@KEGustafsson
Copy link
Contributor Author

Failing tests are not due to this change.
test/security.js is causing these

@tkurki
Copy link
Member

tkurki commented Dec 27, 2025

Working on the unrelated failure...

@tkurki
Copy link
Member

tkurki commented Dec 27, 2025

Could we just initialise pathLatestTimestamps so that it looks like the highest precedence source produced data when the server started?

Initialize paths as if the highest precedence source produced data at
boot time, allowing the existing timeout logic to handle filtering.
This replaces the separate filterStartTime tracking and cumulative
timeout calculation.
@tkurki tkurki added the feature label Jan 1, 2026
@dirkwa
Copy link
Contributor

dirkwa commented Mar 1, 2026

Sorry Karl-Erik,

Superseded by #2379 when merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants