fix(package): Move validate_dataset_exists function to native scripts utils (fixes #1082).#1091
Conversation
WalkthroughThe function Changes
Sequence Diagram(s)sequenceDiagram
participant Script as Native Script (archive_manager/decompress/search)
participant Utils as scripts/native/utils.py
participant DB as Database
Script->>Utils: validate_dataset_exists(db_config, dataset)
Utils->>DB: Connect and fetch existing datasets
DB-->>Utils: Return list of datasets
Utils-->>Script: Raise error if dataset not found
Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧠 Learnings (5)📓 Common learningscomponents/clp-package-utils/clp_package_utils/scripts/native/archive_manager.py (7)components/clp-package-utils/clp_package_utils/scripts/native/search.py (7)components/clp-package-utils/clp_package_utils/scripts/native/decompress.py (7)components/clp-package-utils/clp_package_utils/scripts/native/utils.py (7)🧬 Code Graph Analysis (4)components/clp-package-utils/clp_package_utils/scripts/native/archive_manager.py (1)
components/clp-package-utils/clp_package_utils/scripts/native/search.py (1)
components/clp-package-utils/clp_package_utils/scripts/native/decompress.py (1)
components/clp-package-utils/clp_package_utils/scripts/native/utils.py (3)
🔇 Additional comments (6)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
validate_dataset_exists function to native scripts utils (fixes #1082).
Description
This PR moves the
validate_dataset_existsfunction to the native scripts utils in order to remove a dependency onlibmariadb.sofrom the package scripts.This change is fairly straightforward since the only users of this function were already in the native scripts, and moving the code just serves to eliminate an unnecessary transitive dependency.
Checklist
breaking change.
Validation performed
libmariadb.so.3availableSummary by CodeRabbit