Skip to content

[Config CLI Parity] Remove custom type strings from legacy mount config#2060

Merged
ashmeenkaur merged 2 commits into
CLI_config_parity_releasefrom
dont_use_typecasted_strings_in_mount_config
Jun 25, 2024
Merged

[Config CLI Parity] Remove custom type strings from legacy mount config#2060
ashmeenkaur merged 2 commits into
CLI_config_parity_releasefrom
dont_use_typecasted_strings_in_mount_config

Conversation

@ashmeenkaur

@ashmeenkaur ashmeenkaur commented Jun 24, 2024

Copy link
Copy Markdown
Collaborator

Description

Custom type strings are not understood by the default decode hook being used to convert legacy mount config to new config object (as part of the migration for CLI-config parity) so removing custom types from mount config.

Following custom types are removed:
type LogSeverity string
type CacheDir string

This PR is part of migration to new cobra/viper configs for CLI config parity. Making this change to help with decoding logic to convert old config to new one.

Link to the issue in case of a bug fix.

NA

Testing details

  1. Manual - NA
  2. Unit tests - NA
  3. Integration tests - NA

@codecov

codecov Bot commented Jun 24, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (CLI_config_parity_release@b73fffc). Learn more about missing BASE report.

Additional details and impacted files
@@                     Coverage Diff                      @@
##             CLI_config_parity_release    #2060   +/-   ##
============================================================
  Coverage                             ?   71.99%           
============================================================
  Files                                ?       99           
  Lines                                ?    10869           
  Branches                             ?        0           
============================================================
  Hits                                 ?     7825           
  Misses                               ?     2712           
  Partials                             ?      332           
Flag Coverage Δ
unittests 71.99% <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.

@ashmeenkaur ashmeenkaur marked this pull request as ready for review June 24, 2024 17:02
@ashmeenkaur ashmeenkaur requested review from a team and kislaykishore as code owners June 24, 2024 17:02
@ashmeenkaur ashmeenkaur requested a review from charith87 June 24, 2024 17:02
@ashmeenkaur ashmeenkaur force-pushed the dont_use_typecasted_strings_in_mount_config branch 2 times, most recently from 6a77191 to 5c39d59 Compare June 24, 2024 18:19
kislaykishore
kislaykishore previously approved these changes Jun 25, 2024
@ashmeenkaur ashmeenkaur force-pushed the dont_use_typecasted_strings_in_mount_config branch from 4beb095 to e0e12da Compare June 25, 2024 07:52
kislaykishore
kislaykishore previously approved these changes Jun 25, 2024
Tulsishah
Tulsishah previously approved these changes Jun 25, 2024
@ashmeenkaur ashmeenkaur changed the base branch from master to CLI_config_parity_release June 25, 2024 12:54
@ashmeenkaur ashmeenkaur dismissed stale reviews from Tulsishah and kislaykishore June 25, 2024 12:54

The base branch was changed.

@sethiay sethiay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Relying on @Tulsishah & @kislaykishore review.

@ashmeenkaur ashmeenkaur merged commit 2450080 into CLI_config_parity_release Jun 25, 2024
@ashmeenkaur ashmeenkaur deleted the dont_use_typecasted_strings_in_mount_config branch June 25, 2024 12:59
@ashmeenkaur ashmeenkaur changed the title Remove custom type strings from legacy mount config [Config CLI Parity] Remove custom type strings from legacy mount config Jun 26, 2024
kislaykishore pushed a commit that referenced this pull request Jun 28, 2024
* dont use custom type strings in legacy mount config

* flaky test fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants