cleanup: remove unused sanitize_encrypted param from diff function - #958
cleanup: remove unused sanitize_encrypted param from diff function#958VedantMadane wants to merge 2 commits into
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughSanitization for encrypted model fields now always evaluates encryption status via ChangesModels utility
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
7eee6ad to
3702eb5
Compare
|
Rebased onto latest devel. I notice the DVCS check requires a Jira key (AAP-XXXXX). Is there an existing ticket this cleanup could be associated with, or would a maintainer be able to create one? Happy to update the PR title with the key. |
ca0f8d1 to
f069909
Compare
f069909 to
8ed7a2b
Compare
b749404 to
ce64060
Compare
|
Hi @relrod @AlanCoding , following up on this PR for #688. The DVCS (Find Jira Key) check is still failing because it needs an internal Jira key. Could a maintainer please either create or link an AAP- Jira for this cleanup (drop the unused I'll update the PR title to include the key as soon as I have it. Thanks! |
b72dc0d to
2097ccf
Compare
Re: CI failure —
|
| Location | This PR |
|---|---|
| PR title | cleanup: remove unused sanitize_encrypted param from diff function — no AAP key |
| Branch name | cleanup/diff-unused-param — no AAP key |
| Commit message(s) | cleanup: remove unused sanitize_encrypted param from diff function — no AAP key |
Log confirms: allow_no_jira: false (repo workflow does not enable the NO_JIRA escape hatch).
Skip options checked
NO_JIRAin title/branch/commit: only works if the workflow passesallow_no_jira: true— not enabled here.- Labels: no
no-jira/ skip-style label exists on this repo for this check. - Draft PR: not treated as an exemption by the action.
Code vs process
- Linked work: Fixes
ansible_base.lib.utils.models.difftakes unusedsanitize_encryptedparam and has outdated return docstring #688 (remove unusedsanitize_encryptedfromdiff/_sanitize_value, fixModelDiffreturn docstring). - The implementation looks fine for that cleanup; the red check is specifically DVCS/Jira linkage for Ansible Automation Platform tracking, not lint/tests of this diff.
How to clear the check (when ready)
Maintainers / contributors with access to Red Hat Jira need a real AAP-##### ticket, then put that key in the PR title, branch name, or a non-merge commit message (any one is enough per the action). Please do not invent placeholder keys (e.g. AAP-0000) just to green the check.
Leaving the PR open for maintainer guidance on filing/linking a real Jira issue if this contribution should proceed under DVCS.
2097ccf to
55858ac
Compare
This PR removes the unused 'sanitize_encrypted' parameter from the 'diff' utility function and its helper '_sanitize_value'. Also updated the return docstring to correctly state that the function returns a 'ModelDiff' object instead of a dictionary.
diff() always sanitizes encrypted values after removing the unused sanitize_encrypted parameter. Remove test_diff_no_sanitize_when_disabled which still passed that kwarg. Remaining encrypt sanitization tests cover class-level, instance-level, and value-prefix behavior.
d5e402a to
c08b3e9
Compare
|
DVCS PR Check Results: Could not find JIRA key(s) in PR title, branch name, or commit messages |
Fixes #688. This PR removes the unused \sanitize_encrypted\ parameter from the \diff\ utility and its helper _sanitize_value, and corrects the return type in the docstring.
Summary by CodeRabbit
Refactor
Documentation