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

output/csv: Remove the support for snake_case options #3390

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

codebien
Copy link
Contributor

@codebien codebien commented Oct 12, 2023

Removed the options using the snake_case format, instead use the alternative camelCase versions.

What?

Removed the options using the snake_case format (e.g.file_name), instead use the alternative camelCase versions (e.g. fileName).

Why?

Deprecation process.

Removed the options using the snake_case format, instead use the
alternative camelCase versions.
@codebien codebien self-assigned this Oct 12, 2023
@codebien codebien added this to the v0.48.0 milestone Oct 12, 2023
@codecov-commenter
Copy link

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (de19a6a) 73.11% compared to head (3510846) 73.10%.

❗ Current head 3510846 differs from pull request most recent head cbc8c7c. Consider uploading reports for the commit cbc8c7c to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3390      +/-   ##
==========================================
- Coverage   73.11%   73.10%   -0.01%     
==========================================
  Files         258      258              
  Lines       19647    19641       -6     
==========================================
- Hits        14364    14358       -6     
  Misses       4401     4401              
  Partials      882      882              
Flag Coverage Δ
ubuntu 73.04% <ø> (-0.01%) ⬇️
windows 72.95% <ø> (-0.01%) ⬇️

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

Files Coverage Δ
output/csv/config.go 74.50% <ø> (-2.69%) ⬇️

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

@codebien codebien marked this pull request as ready for review October 12, 2023 12:54
Comment on lines +18 to +20
FileName null.String `json:"fileName" envconfig:"K6_CSV_FILENAME"`
SaveInterval types.NullDuration `json:"saveInterval" envconfig:"K6_CSV_SAVE_INTERVAL"`
TimeFormat null.String `json:"timeFormat" envconfig:"K6_CSV_TIME_FORMAT"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we use the json encoding on this anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not aware of it, I changed it mostly for consistency

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm this is used in the config file ... Can we revert this as this is another breaking change.

I have no idea if somebody is using this, but breaking it seems bad to me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifically here

Collectors map[string]json.RawMessage `json:"collectors"`

@olegbespalov olegbespalov added the breaking change for PRs that need to be mentioned in the breaking changes section of the release notes label Oct 12, 2023
@codebien codebien merged commit e8886ac into master Oct 13, 2023
23 checks passed
@codebien codebien deleted the no-csv-snakecase branch October 13, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change for PRs that need to be mentioned in the breaking changes section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants