Repository navigation
Fix Discovery Service Regression - System Driver Database - #241
Merged
Conversation
…s in the federated database
philip-khaisman
commented
Sep 30, 2026
| * @param hub Handle to the instance of OpenSensorHub | ||
| * @return A list of facts generated from the node's federated database | ||
| */ | ||
| public List<DataStreamFact> getFederatedDbFacts(SensorHub hub) { |
Contributor
Author
There was a problem hiding this comment.
Rename to initializeFacts to have the same name as the same method in the discovery service
Contributor
Author
There was a problem hiding this comment.
I assume we're ok with duplicate methods between the discovery service and the rules engine since they are meant to work discretely, right?
Collaborator
There was a problem hiding this comment.
I do not see an issue with it.
nickgaray
approved these changes
Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes a regression where if a user added a system driver database with historical data only (no link to a live driver) the discovery service wouldn't discover it. To fix it I reimplemented the logic as it was in the older working version of the discovery service. On every request to the discovery endpoint now, the code will look through the federated database and load up facts for every datastream in the db.
Testing
locationas the paramRegression Testing