Skip to content

Conversation

@apricote
Copy link
Member

Three flags were not correctly split up when the user specified multiple values separated by comma. This happened because the StringArray flag explitely does not split the input. StringSlice, which we use nearly everywhere else, does split input by comma.

Fixes #986

@apricote apricote added the bug label Feb 13, 2025
@apricote apricote self-assigned this Feb 13, 2025
@apricote apricote requested a review from a team as a code owner February 13, 2025 14:47
@codecov
Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.12%. Comparing base (9fc4201) to head (bae4b09).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #987      +/-   ##
==========================================
+ Coverage   63.59%   70.12%   +6.53%     
==========================================
  Files         243      245       +2     
  Lines       10694    10756      +62     
==========================================
+ Hits         6801     7543     +742     
+ Misses       3178     2537     -641     
+ Partials      715      676      -39     
Flag Coverage Δ
e2e 46.82% <100.00%> (?)
unit 63.59% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Three flags were not correctly split up when the user specified multiple
values separated by comma. This happened because the `StringArray` flag
explitely does not split the input. `StringSlice`, which we use
nearly everywhere else, does split input by comma.

Fixes #986
@apricote apricote merged commit c2dcb1a into main Feb 13, 2025
6 checks passed
@apricote apricote deleted the fix-flags-comma branch February 13, 2025 15:51
phm07 pushed a commit that referenced this pull request May 9, 2025
<!-- section-start changelog -->
### Features

- **load-balancer**: allow specifying network on create (#1013)
- **context**: add unset commmand (#1017)
- publish image to Docker Hub (#1043)

### Bug Fixes

- allow getting resources with number as name
- some list flags are not correctly parsed (#987)
- **load-balancer**: allow certificate names in addition to IDs when
creating/updating (#1026)
- config option flags sometimes not parsed correctly (#1025)

<!-- section-end changelog -->

---

<details>
<summary><h4>PR by <a
href="https://github.com/apricote/releaser-pleaser">releaser-pleaser</a>
🤖</h4></summary>

If you want to modify the proposed release, add you overrides here. You
can learn more about the options in the docs.

## Release Notes

### Prefix / Start

This will be added to the start of the release notes.

```rp-prefix
```

### Suffix / End

This will be added to the end of the release notes.

```rp-suffix
```

</details>

Co-authored-by: releaser-pleaser <>
phm07 pushed a commit that referenced this pull request May 30, 2025
<!-- section-start changelog -->
### Features

- **load-balancer**: allow specifying network on create (#1013)
- **context**: add unset commmand (#1017)
- publish image to Docker Hub (#1043)

### Bug Fixes

- allow getting resources with number as name
- some list flags are not correctly parsed (#987)
- **load-balancer**: allow certificate names in addition to IDs when
creating/updating (#1026)
- config option flags sometimes not parsed correctly (#1025)

<!-- section-end changelog -->

---

<details>
<summary><h4>PR by <a
href="https://github.com/apricote/releaser-pleaser">releaser-pleaser</a>
🤖</h4></summary>

If you want to modify the proposed release, add you overrides here. You
can learn more about the options in the docs.

## Release Notes

### Prefix / Start

This will be added to the start of the release notes.

```rp-prefix
```

### Suffix / End

This will be added to the end of the release notes.

```rp-suffix
```

</details>

Co-authored-by: releaser-pleaser <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: some flags use StringArray which does not split by comma

3 participants