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

chore(http): allow certain settings that are passed through Env or config to be returned in settings endpoint #4479

Merged
merged 13 commits into from
May 17, 2024

Conversation

ngnic
Copy link
Contributor

@ngnic ngnic commented May 7, 2024

Our web console relies on the settings endpoint to toggle on/off certain functionality. In some of these cases, we want to allow certain settings to be passed through QDB and returned in the settings so that the web console can consume them. This is what the addition of PublicPassthroughConfiguration is for. It can act as a container to hold configuration values that aren't consumed by QDB that are instead just passed through and returned in settings. The word public in the name of the class is intentional. It is there to signify that properties added to it are indeed meant to be public.

@ngnic ngnic requested a review from bluestreak01 May 7, 2024 10:49
@bluestreak01 bluestreak01 changed the title chore(core): Allow certain settings that are passed through Env or config to be returned in settings endpoint chore(http): allow certain settings that are passed through Env or config to be returned in settings endpoint May 7, 2024
@ngnic ngnic marked this pull request as ready for review May 9, 2024 08:31
@ideoma
Copy link
Collaborator

ideoma commented May 17, 2024

[PR Coverage check]

😍 pass : 45 / 45 (100.00%)

file detail

path covered line new line coverage
🔵 io/questdb/cutlass/http/processors/SettingsProcessor.java 3 3 100.00%
🔵 io/questdb/PropServerConfiguration.java 10 10 100.00%
🔵 io/questdb/PublicPassthroughConfiguration.java 1 1 100.00%
🔵 io/questdb/cutlass/http/HttpServer.java 9 9 100.00%
🔵 io/questdb/PropertyKey.java 3 3 100.00%
🔵 io/questdb/cutlass/Services.java 14 14 100.00%
🔵 io/questdb/DefaultServerConfiguration.java 2 2 100.00%
🔵 io/questdb/DefaultPublicPassthroughConfiguration.java 3 3 100.00%

@bluestreak01 bluestreak01 merged commit fd85156 into master May 17, 2024
24 checks passed
@bluestreak01 bluestreak01 deleted the chore/add_public_passthrough_configuration branch May 17, 2024 17:52
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.

None yet

3 participants