Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensor disappears when added to a DB #228

Open
csdillard opened this issue Nov 10, 2022 · 0 comments
Open

Sensor disappears when added to a DB #228

csdillard opened this issue Nov 10, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@csdillard
Copy link

If you add a sensor driver to a database (without restarting the sensor or database), it disappears from the node's web service interfaces. It is no longer listed in the SOS Service's test links, nor is it listed in the SWE API list of systems.

Here are the steps to reproduce:

Setup:

  • Start with a blank OSH node. Log in to the admin console.
  • Go to the Databases panel. Add a new System Driver database, configure it with an H2 Historical Obs Database, and then start the database.
  • Go to the Sensors panel. Add a new UasOnDemandSensor. Start the sensor. (It's not clear to me whether the actual sensor matters. It may be important that this particular sensor will never emit observations.)
  • Confirm that the system shows up in the SOS Service Test Links tab.

Cause the bug:

  • Go back to the Databases panel.
  • Click the "+" to add the "New UasOnDemandSensor" to the System Driver database you created above.
  • Click Apply Changes.
  • Observe that the system is now missing from SOS Service test links. It is also missing from the SWE API list of systems (if that is enabled on your node).

Since restarting the sensor "fixes" the issue, I'd say this is a minor bug.

@alexrobin alexrobin added the bug label Feb 15, 2023
@alexrobin alexrobin self-assigned this Feb 15, 2023
@alexrobin alexrobin added this to the v2.0.0 milestone May 5, 2023
earocorn added a commit to earocorn/osh-core that referenced this issue Jul 18, 2024
Added line to replace a driver's SystemDriverTransactionHandler when new driver database is registered.

Fix to issue opensensorhub#228/opensensorhub#210
alexrobin pushed a commit that referenced this issue Jul 22, 2024
…s created. Fixes #228 and #210 (#261)

* Fixed SystemDriverDatabase problem

Added line to replace a driver's SystemDriverTransactionHandler when new driver database is registered.

Fix to issue #228/#210

* Update DefaultSystemRegistry.java

* Update DefaultSystemRegistry.java

* Update DefaultSystemRegistry.java

* Query entries matching UID before update

* Add filter to include members of system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants