python-package-manager-grouped-dependencies-fixes - #890
Conversation
….2+ include-groups support
…ion, fix -r includes mis-grouping bug
…roups section support and modify tests
�Refactor package manager metadata handling to: - Simplify node creation with focused metadata fields - Serialize dependencies and other metadata as JSON - Reduce database schema complexity - Remove unused framework sync method
Update dependencies to the latest version of unoplat-code-confluence-commons across multiple pyproject.toml files to ensure consistent library usage and potential bug fixes or improvements.
|
Connected to Huly®: UNOPL-1027 |
|
Claude finished @JayGhiya's task —— View job PR Review: Python Package Manager Grouped Dependencies FixesReview Progress
🎯 Summary of ChangesThis PR successfully migrates all Python package managers (pip, poetry, uv) to a grouped dependency structure, implementing PEP 735 compliance and improving dependency organization. ✅ Strengths1. Comprehensive Migration Strategy
2. Robust Pip Strategy (
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| RETURN pm.programming_language as language, | ||
| pm.programming_language_version as version, | ||
| pm.other_metadata.programming_language_version as version, | ||
| pm.package_manager as package_manager |
There was a problem hiding this comment.
Query treats JSON string as map
The Neo4j query uses pm.other_metadata.programming_language_version, but _build_package_manager_metadata_payload now serializes other_metadata with json.dumps(...) before writing it (see processor/db/graph_db/code_confluence_graph_ingestion.py around lines 101‑147). Because the property is stored as a plain string, dereferencing a field on it will raise a Type mismatch: expected Map but was String when this query runs, breaking all calls to fetch language metadata. Consider parsing the JSON via APOC or storing other_metadata as a map instead of a serialized string.
Useful? React with 👍 / 👎.
Modify package manager metadata query to correctly extract programming language version using APOC JSON conversion function, ensuring robust metadata retrieval from Neo4j
|
Claude finished @JayGhiya's task —— View job PR Review: Python Package Manager Grouped Dependencies FixesReview Progress
🎯 Summary of ChangesThis PR successfully migrates all Python package managers (pip, poetry, uv) to a grouped dependency structure, implementing PEP 735 compliance and improving dependency organization. ✅ Strengths1. Comprehensive Migration Strategy
2. Robust Pip Strategy (
|
…ependencies-fixes python-package-manager-grouped-dependencies-fixes
PR Type
Bug fix, Enhancement
Description
Migrate package managers to grouped dependency structure
Add Poetry 1.2+ include-groups and PEP 735 support
Fix pip -r includes mis-grouping and add normalization
Optimize metadata storage with JSON serialization
Diagram Walkthrough
File Walkthrough
6 files
Change dependencies to grouped structureRemove group field from dependency modelAdd Poetry 1.2+ include-groups supportUpdate setup.py parser for grouped structureAdd dependency-groups section supportOptimize metadata storage with JSON serialization2 files
Add grouped dependencies and PEP normalizationUpdate query for new metadata structure1 files
Add missing newline at EOF4 files
Update tests for grouped dependency structureUpdate tests for grouped dependency structureUpdate tests for grouped dependency structureUpdate test fixture with dependency-groups2 files
Bump unoplat-code-confluence-commons to v0.31.0Bump unoplat-code-confluence-commons to v0.31.0