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

[WIP] Debug methods for insertmanager #243

Closed
wants to merge 2 commits into from

Conversation

ubamrein
Copy link
Contributor

@ubamrein ubamrein commented Sep 14, 2020

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 with DEBUG to help signalise a potentially error.

If the debug instance of InsertManager is used with the __NON__debug 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 in WSProdConfig and removes filters related to JWTs.

Closes: #242

@ubamrein ubamrein marked this pull request as draft September 14, 2020 09:37
@ineiti
Copy link
Collaborator

ineiti commented Sep 14, 2020

Do you need that right now? I would prefer to have (finally) #234 in, and then put this PR on top of that...

@ubamrein
Copy link
Contributor Author

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 :)

@martinalig martinalig force-pushed the feature/update-debug-controller branch from 3dd66bd to fcc5c78 Compare September 14, 2020 18:04
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

58.3% 58.3% Coverage
0.0% 0.0% Duplication

@martinalig
Copy link
Contributor

Outdated.

@martinalig martinalig closed this Apr 22, 2021
@UBaggeler UBaggeler deleted the feature/update-debug-controller branch April 22, 2021 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move debug endpoint to new filter logic
3 participants