-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GEN-1286]: Refactor configuration handling to replace deprecated dro…
…pdowns with checkboxes for Clickhouse, Gigapipe and Qryn destinations (#2033) This pull request includes several changes to the configuration handling and documentation for the Clickhouse and Qryn destinations. The main focus is on updating deprecated values and improving the handling of boolean configurations. ### Configuration Handling Improvements: * [`common/config/clickhouse.go`](diffhunk://#diff-138cb50de47f4f21f12e6bfd952391ae5cd871bc0d330bab84eb42e7c440a98bL58-R59): Replaced direct boolean conversion with a helper function `getBooleanConfig` for `create_schema` configuration. * [`common/config/qryn.go`](diffhunk://#diff-332ef1831a065da3170c8cadfdcf5274667681e4bdbd786e278780cc6f054b0dL48-R48): Updated the `ModifyConfig` function to use pre-parsed configuration values and replaced string comparisons with boolean values using `getBooleanConfig`. [[1]](diffhunk://#diff-332ef1831a065da3170c8cadfdcf5274667681e4bdbd786e278780cc6f054b0dL48-R48) [[2]](diffhunk://#diff-332ef1831a065da3170c8cadfdcf5274667681e4bdbd786e278780cc6f054b0dL58-R58) [[3]](diffhunk://#diff-332ef1831a065da3170c8cadfdcf5274667681e4bdbd786e278780cc6f054b0dL129-R130) * [`common/config/qryn_oss.go`](diffhunk://#diff-ce2141637cf39bb35c0c6becea7503ead0d028c866a8f8e2bf779a8146037615L26-L28): Deprecated "Yes/No" values in favor of "true/false" for `resourceToTelemetryConversion` and `addExporterName` configurations. * [`common/config/utils.go`](diffhunk://#diff-3a30bd3819234a1d17d8a057d80ffc71550dab2fc17687b78b40e5c6f49a5136R95-R99): Added a new utility function `getBooleanConfig` to handle deprecated boolean configuration values. ### Documentation Updates: * [`docs/backends/clickhouse.mdx`](diffhunk://#diff-f9498b059963c2f930f06518c4fced6a78b53b3dbebb4bf5afeee868cacc54a1L38-R39): Updated documentation to reflect the change from "Create/Skip" to "true/false" for the `Create Scheme` configuration. [[1]](diffhunk://#diff-f9498b059963c2f930f06518c4fced6a78b53b3dbebb4bf5afeee868cacc54a1L38-R39) [[2]](diffhunk://#diff-f9498b059963c2f930f06518c4fced6a78b53b3dbebb4bf5afeee868cacc54a1L57-R58) [[3]](diffhunk://#diff-f9498b059963c2f930f06518c4fced6a78b53b3dbebb4bf5afeee868cacc54a1L106-R106) [[4]](diffhunk://#diff-f9498b059963c2f930f06518c4fced6a78b53b3dbebb4bf5afeee868cacc54a1L143-R143) * `docs/backends/gigapipe.mdx`, `docs/backends/qryn.mdx`: Updated documentation to reflect the change from "Yes/No" to "true/false" for boolean configurations. [[1]](diffhunk://#diff-4abd168fd2d605be33e39a21b60369eab975899d6dc350120027676208823c3fL59-R60) [[2]](diffhunk://#diff-a50b66d82235440a1e549628a4d45ae127499c15609635959933e1d0eda473ccL52-R53) ### UI and Frontend Adjustments: * [`frontend/webapp/hooks/compute-platform/useComputePlatform.ts`](diffhunk://#diff-408f228c0f11c5a04d006fc956ee35e0d67cd74048af12b857d9bedf51ca87e6R48-R68): Replaced deprecated string values with boolean values for Clickhouse and Qryn configurations. * [`frontend/webapp/hooks/destinations/useDestinationCRUD.ts`](diffhunk://#diff-c7f19ca063b62568e37726473e1b8c265d3309def0d157772951023c66e055b8L78-R86): Ensured that undefined values are filtered out when creating or updating destinations. ### YAML Specification Changes: * `destinations/data/clickhouse.yaml`, `destinations/data/gigapipe.yaml`, `destinations/data/qryn.yaml`: Changed component types from dropdown to checkbox for boolean configurations and updated initial values accordingly. [[1]](diffhunk://#diff-44f264f92f35b6a7a0bd00f1f77b39e05aaf84c7d5a17ca79b3bd481f2b36c2aL23-R23) [[2]](diffhunk://#diff-44f264f92f35b6a7a0bd00f1f77b39e05aaf84c7d5a17ca79b3bd481f2b36c2aL42-R46) [[3]](diffhunk://#diff-02968da745547cb0250c5b8b23d04de88a89e7ea9a1f10916b717736595bac99L38-L51) [[4]](diffhunk://#diff-1190ae5d806c855e8bd336a40e4063d7d9b558f2b455a9b973f1a33f6a131d1aL36-L49)
- Loading branch information
1 parent
6497397
commit f9b527c
Showing
12 changed files
with
70 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters