Closed ubamrein closed 3 years ago
Do you need that right now? I would prefer to have (finally) #234 in, and then put this PR on top of that...
Do you need that right now? I would prefer to have (finally) #234 in, and then put this PR on top of that...
Not right now right now, but soon. But you're right, we should merge #234 in. I added some comments there :)
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities (and 0 Security Hotspots to review)
0 Code Smells
Outdated.
Since the debug controller is used by the calibration app, we update the controller to also use the
InsertManager
. In order to allow certain debug only feature, a private constructor with a static instance getter function is added. The idea is, to prevent accidentally instantiating the wrong Manager. All functions, which are debug only are suffixed withDEBUG
to help signalise a potentially error.If the debug instance of
InsertManager
is used with the NONdebug function, a warning is printed. Furthermore the function will raise a NullPointerException when the wrong instance is used with the wrong function, to prevent any potential problems of mixing.The debug instance of the
InsertManager
is only used inWSProdConfig
and removes filters related to JWTs.Closes: https://github.com/DP-3T/dp3t-sdk-backend/issues/242