els0r / goProbe

High-performance IP packet metadata aggregation and efficient storage and querying of flows
GNU General Public License v2.0
12 stars 4 forks source link

[feature] Handle missing goDB data differently from an empty query result set and improve user feedback #268

Closed fako1024 closed 8 months ago

fako1024 commented 8 months ago

First off: Don't be alarmed by the size: I simply realized when looking at this that our testdb was broken (it converted to an intermediate v4 DB format prior to us finalizing it and by sheer luck passed all the tests :see_no_evil:) so I re-converted it from the original branch.

The change itself is quite simple: When the DBWorkManager doesn't find any data to begin with, it already returns a flag indicating that scenario. I simply extended the result summary by a simple boolean that is used to distinguish the two cases).

OpenAPI Spec should be amended in full already if I'm not mistaken.

Closes #267