Skip to content

EMC-130: add bounding box to monitoring network for spatial search

Jonathan Cooper requested to merge EMC-130_network_bounding_box_solr into develop

This adds a bounding box to a monitoring network so that it becomes searchable on the spatial search.

A monitoring network's bounding box is the minimum envelope of the monitoring facilities that belong to it. Therefore, as that collection changes the bounding box also needs to change.

The strategy implemented uses the event-listener model that is already present in the code. Specifically, additional events and listeners are added to the point where documents are create/updated and deleted - ie the save() and delete() methods of the GitRepoWrapper. The new events and listeners then work to spot and respond to the following:

  • a new facility was created
  • a facility was updated
  • a facility was deleted

In each case, related networks may be updated. If a network is updated, then it is saved, which in turn causes its bounding box to be re-indexed in solr and ensure the correct response in the spatial searching.

Closes EMC-130

Merge request reports

Loading