Skip to content

Comments

feat: Update the DataVolume class to use "storage" as the new default value#2655

Open
ema-aka-young wants to merge 4 commits intoRedHatQE:mainfrom
ema-aka-young:CNV-79539-storage-default
Open

feat: Update the DataVolume class to use "storage" as the new default value#2655
ema-aka-young wants to merge 4 commits intoRedHatQE:mainfrom
ema-aka-young:CNV-79539-storage-default

Conversation

@ema-aka-young
Copy link
Contributor

@ema-aka-young ema-aka-young commented Feb 19, 2026

Short description:

Update the DataVolume class to use "storage" as the new default value.

More details:

Implementing step 3 of https://issues.redhat.com/browse/CNV-79539

What this PR does / why we need it:

We are implementing this to align with updated standards that encourage the use of the storage api as it has more convenient features.

Which issue(s) this PR fixes:
Special notes for reviewer:
Bug:

Summary by CodeRabbit

  • Bug Fixes
    • Streamlined DataVolume initialization with improved default configuration handling and removed unnecessary warning messages.

@coderabbitai
Copy link

coderabbitai bot commented Feb 19, 2026

Walkthrough

Modified the DataVolume constructor in ocp_resources/datavolume.py to set the default value of api_name parameter to "storage" instead of None, eliminating the previous fallback logic and runtime warning that handled the None case.

Changes

Cohort / File(s) Summary
DataVolume Constructor Default
ocp_resources/datavolume.py
Changed api_name parameter default from None to "storage" in DataVolume __init__ method. Removed fallback logic that previously converted None to "storage" and its associated runtime warning. Updated docstring to reflect the new default value.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description covers all required template sections and provides context linking to the related issue (CNV-79539) and the rationale for the change.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Title check ✅ Passed The title directly and accurately describes the main change: updating the DataVolume class to use 'storage' as the new default value for api_name.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ema-aka-young ema-aka-young changed the title [WIP] feat: Update default value for api_name in DataVolume to 'storage' an… [WIP] feat: Update the DataVolume class to use "storage" as the new default value Feb 23, 2026
@ema-aka-young ema-aka-young marked this pull request as ready for review February 24, 2026 10:12
@redhat-qe-bot1
Copy link

Report bugs in Issues

Welcome! 🎉

This pull request will be automatically processed with the following features:

🔄 Automatic Actions

  • Reviewer Assignment: Reviewers are automatically assigned based on the OWNERS file in the repository root
  • Size Labeling: PR size labels (XS, S, M, L, XL, XXL) are automatically applied based on changes
  • Issue Creation: Disabled for this repository
  • Branch Labeling: Branch-specific labels are applied to track the target branch
  • Auto-verification: Auto-verified users have their PRs automatically marked as verified
  • Labels: All label categories are enabled (default configuration)

📋 Available Commands

PR Status Management

  • /wip - Mark PR as work in progress (adds WIP: prefix to title)
  • /wip cancel - Remove work in progress status
  • /hold - Block PR merging (approvers only)
  • /hold cancel - Unblock PR merging
  • /verified - Mark PR as verified
  • /verified cancel - Remove verification status
  • /reprocess - Trigger complete PR workflow reprocessing (useful if webhook failed or configuration changed)
  • /regenerate-welcome - Regenerate this welcome message

Review & Approval

  • /lgtm - Approve changes (looks good to me)
  • /approve - Approve PR (approvers only)
  • /automerge - Enable automatic merging when all requirements are met (maintainers and approvers only)
  • /assign-reviewers - Assign reviewers based on OWNERS file
  • /assign-reviewer @username - Assign specific reviewer
  • /check-can-merge - Check if PR meets merge requirements

Testing & Validation

  • /retest tox - Run Python test suite with tox
  • /retest python-module-install - Test Python package installation
  • /retest conventional-title - Validate commit message format
  • /retest all - Run all available tests

Cherry-pick Operations

  • /cherry-pick <branch> - Schedule cherry-pick to target branch when PR is merged
    • Multiple branches: /cherry-pick branch1 branch2 branch3

Label Management

  • /<label-name> - Add a label to the PR
  • /<label-name> cancel - Remove a label from the PR

✅ Merge Requirements

This PR will be automatically approved when the following conditions are met:

  1. Approval: /approve from at least one approver
  2. LGTM Count: Minimum 0 /lgtm from reviewers
  3. Status Checks: All required status checks must pass
  4. No Blockers: No WIP, hold, conflict labels
  5. Verified: PR must be marked as verified (if verification is enabled)

📊 Review Process

Approvers and Reviewers

Approvers:

  • myakove
  • rnetser

Reviewers:

  • myakove
  • rnetser
Available Labels
  • hold
  • verified
  • wip
  • lgtm
  • approve
  • automerge

💡 Tips

  • WIP Status: Use /wip when your PR is not ready for review
  • Verification: The verified label is automatically removed on each new commit
  • Cherry-picking: Cherry-pick labels are processed when the PR is merged
  • Permission Levels: Some commands require approver permissions
  • Auto-verified Users: Certain users have automatic verification and merge privileges

For more information, please refer to the project documentation or contact the maintainers.

@ema-aka-young ema-aka-young changed the title [WIP] feat: Update the DataVolume class to use "storage" as the new default value feat: Update the DataVolume class to use "storage" as the new default value Feb 24, 2026
@ema-aka-young
Copy link
Contributor Author

/verified
trough ipython

@rnetser
Copy link
Collaborator

rnetser commented Feb 24, 2026

/hold

@myakove
Copy link
Collaborator

myakove commented Feb 24, 2026

/hold

Can you please explain why this is on hold?

bind_immediate_annotation: bool | None = None,
preallocation: bool | None = None,
api_name: str | None = None,
api_name: str | None = "storage",
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is a breaking change and the recenlty added warning does mention Default will change to "storage" in a future release. - so it cannot be hidden in a maintanence release

@rnetser
Copy link
Collaborator

rnetser commented Feb 24, 2026

/hold

Can you please explain why this is on hold?

forgot to sumbit #2655 (comment)

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.

6 participants