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: set default strip_path to true #999

Merged
merged 1 commit into from
Aug 11, 2023
Merged

fix: set default strip_path to true #999

merged 1 commit into from
Aug 11, 2023

Conversation

GGabriele
Copy link
Collaborator

In the past decK had to set the default value of the strip_path field to false because of some limitation in the library used for defaults injection: this was a workaround to allow this field to be set to false. Then, if the field was not set in the configuration, the field was then turned into true at runtime via inspection of the Kong Admin API.

This commit changes the decK default for the strip_path field to true, since now the underlying library has fixed the issue that triggered this workaround in the first place.

@GGabriele GGabriele requested a review from a team August 10, 2023 15:17
In the past decK had to set the default value of the `strip_path`
field to [false](https://github.com/Kong/deck/blob/v1.26.0/utils/constants.go#L22)
because of some limitation in the library used for defaults injection:
this was a workaround to allow this field to be set to `false`.
Then, if the field was not set in the configuration, the field was then
turned into `true` at runtime via inspection of the Kong Admin API.

This commit changes the decK default for the `strip_path` field to `true`,
since now the underlying library has fixed the issue that triggered
this workaround in the first place.
@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (63b9742) 33.70% compared to head (c171b0f) 33.70%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #999   +/-   ##
=======================================
  Coverage   33.70%   33.70%           
=======================================
  Files         101      101           
  Lines       12323    12323           
=======================================
  Hits         4154     4154           
  Misses       7760     7760           
  Partials      409      409           

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

Copy link
Member

@zekth zekth left a comment

Choose a reason for hiding this comment

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

✌️

@GGabriele GGabriele merged commit 574122f into main Aug 11, 2023
34 checks passed
@GGabriele GGabriele deleted the fix/strip_path-false branch August 11, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants