Skip to content

Clean up some prefixes for function parameters #418

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

Conversation

AndersAstrand
Copy link
Collaborator

There were some weirdness in there. provider id and provider options was not prefixed while name and type were always prefixed.

Also key info functions had double prefixes for provider attributes.

There was no reason for name and type to be prefixed in the add/change
key provider functions while options was not.

The output from the list_providers functions had them for name and type,
but not id nor options. So remove the prefixes there aswell.

In other functions the prefixes serve to show what parameters is about
the provider and which are about something else.
@AndersAstrand AndersAstrand changed the title Clean up some prefixes for function names Clean up some prefixes for function parameters Jun 11, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jun 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.92%. Comparing base (ad80ac2) to head (324ac4c).

❌ Your project status has failed because the head coverage (84.92%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           TDE_REL_17_STABLE     #418      +/-   ##
=====================================================
- Coverage              84.92%   84.92%   -0.01%     
=====================================================
  Files                     21       21              
  Lines                   2561     2560       -1     
  Branches                 394      393       -1     
=====================================================
- Hits                    2175     2174       -1     
  Misses                   306      306              
  Partials                  80       80              
Components Coverage Δ
access 81.90% <ø> (ø)
catalog 88.60% <ø> (ø)
common 77.77% <ø> (ø)
encryption 73.45% <ø> (ø)
keyring 72.88% <ø> (ø)
src 91.44% <ø> (ø)
smgr 94.85% <ø> (-0.03%) ⬇️
transam ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

In the output from the key info functions the key_ prefix for the
provider name and id columns doesn't add any value so let's harmonize
them with how we name arguments to the key creation functions.
@AndersAstrand AndersAstrand force-pushed the tde/remove-provider-prefix-from-some-function-arguments branch from fcc9f25 to 324ac4c Compare June 11, 2025 11:17
@AndersAstrand AndersAstrand merged commit 34e2d29 into percona:TDE_REL_17_STABLE Jun 12, 2025
16 checks passed
@AndersAstrand AndersAstrand deleted the tde/remove-provider-prefix-from-some-function-arguments branch June 12, 2025 09:21
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