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

fix(config): ordering of list option values not preserved #805

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

phm07
Copy link
Contributor

@phm07 phm07 commented Jul 4, 2024

Originally, options with a slice value were treated as sets instead of lists. This was because options like default-ssh-keys do not care about the order of keys. However, the order for example is important for the default sort column options, so it needs to be preserved. This PR fixes this.

Copy link

codecov bot commented Jul 4, 2024

Codecov Report

Attention: Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.

Project coverage is 59.60%. Comparing base (53abf66) to head (be53879).

Files Patch % Lines
internal/state/config/options.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #805      +/-   ##
==========================================
+ Coverage   59.54%   59.60%   +0.06%     
==========================================
  Files         210      210              
  Lines        7651     7655       +4     
==========================================
+ Hits         4556     4563       +7     
+ Misses       2453     2450       -3     
  Partials      642      642              

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

@apricote apricote changed the title fix: ordering of slice option values not preserved fix(config): ordering of list option values not preserved Jul 5, 2024
@apricote apricote merged commit 1ac27bf into main Jul 5, 2024
5 checks passed
@apricote apricote deleted the fix-slice-option-ordering branch July 5, 2024 07:30
apricote pushed a commit that referenced this pull request Jul 17, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.45.0](v1.44.2...v1.45.0)
(2024-07-17)


### Features

* allow configuring default sort columns for each supported resource
([#795](#795))
([f6877a1](f6877a1))
* better error messages on malformed option value
([#798](#798))
([8c6fec9](8c6fec9))


### Bug Fixes

* **config:** ordering of list option values not preserved
([#805](#805))
([1ac27bf](1ac27bf))
* debug log is truncated if it already exists
([#793](#793))
([c3d3a9f](c3d3a9f))
* **firewall:** wrong wording when firewall is removed from resource
([#812](#812))
([9017a65](9017a65)),
closes [#809](#809)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

2 participants