-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Remove deprecated internal function _pgr_prim #2744
Remove deprecated internal function _pgr_prim #2744
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis pull request updates the pgRouting project for the 4.0.0 release by promoting several functions and signatures (e.g., pgr_trsp, various pgr_withPoints functions, pgr_aStar, and pgr_dijkstra variations) to official status. Deprecated SQL functions and internal functions are removed, and a new internal function (_pgr_primv4) replaces the old _pgr_prim. The C code now issues a deprecation notice when invoking _pgr_prim, aligning the changes with documented deprecations and cleanup efforts. Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
@coderabbitai review |
🧩 Analysis chain🏁 Script executed:
Length of output: 733 🏁 Script executed:
Length of output: 66848 @cvvergara The changes look good. The PR properly handles the deprecation of the internal function
🧠 Learnings used
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (5)
NEWS.md
(2 hunks)doc/src/release_notes.rst
(2 hunks)sql/sigs/pgrouting--4.0.sig
(0 hunks)sql/spanningTree/_prim.sql
(0 hunks)src/spanningTree/prim.c
(2 hunks)
💤 Files with no reviewable changes (2)
- sql/sigs/pgrouting--4.0.sig
- sql/spanningTree/_prim.sql
🧰 Additional context used
📓 Learnings (1)
src/spanningTree/prim.c (1)
Learnt from: cvvergara
PR: pgRouting/pgrouting#0
File: :0-0
Timestamp: 2025-01-27T01:49:25.212Z
Learning: In pgRouting, when deprecating internal functions:
1. Add deprecation notice in C code using ereport with ERRCODE_FEATURE_NOT_SUPPORTED
2. Update tests with version checks (min_version, min_lib_version)
3. Document changes in NEWS.md under appropriate sections
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (2)
src/spanningTree/prim.c (2)
174-178
: LGTM! Clear deprecation comments.The comments clearly indicate this is deprecated code used in v3.6 and under, with a TODO note for future cleanup.
190-194
: LGTM! Proper deprecation notice implementation.The deprecation notice follows best practices:
- Uses ereport with ERRCODE_FEATURE_NOT_SUPPORTED
- Includes function name, deprecation version, and upgrade hint
…about deprecation
d97edf6
to
3fcd49c
Compare
…E raised about deprecation
Fixes #2743
Changes proposed in this pull request:
@pgRouting/admins
Summary by CodeRabbit
New Features:
Chores:
Documentation: