Commit 9203f6a
authored
Fix bug where empty string for boundary_base_url would not set the default url (#1971)
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Fixes bug in `Config` where empty strings for certain fields would not
set default values by adding a `normalize()` function.
>
> - **Behavior**:
> - Fixes bug where empty `base_url` in `Config` would not set default
URL by adding `normalize()` function.
> - `normalize()` sets default values for `base_url`, `sessions_id`,
`stage`, `host_name`, and `log_redaction_placeholder` if they are empty.
> - **Functions**:
> - Adds `normalize()` to `Config` in `env_setup.rs` to handle default
value assignment.
> - **Misc**:
> - Calls `normalize()` in `from_env_vars()` to ensure defaults are set
after parsing environment variables.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 21d68da. You can
[customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->1 parent 1cb4648 commit 9203f6a
1 file changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
67 | 87 | | |
0 commit comments