-
-
Notifications
You must be signed in to change notification settings - Fork 376
Deprecating pgr AlphaShape #2832
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
Conversation
- Remove use on doc, docqueires, pgtap - (doc) documenting changes on NEWS and release notes
WalkthroughThis pull request deprecates the Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches
🪧 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 (
|
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: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (11)
NEWS.md
(1 hunks)doc/_static/page_history.js
(1 hunks)doc/alpha_shape/pgr_alphaShape.rst
(2 hunks)doc/driving_distance/pgr_drivingDistance.rst
(0 hunks)doc/src/migration.rst
(1 hunks)doc/src/release_notes.rst
(1 hunks)doc/withPoints/pgr_withPointsDD.rst
(0 hunks)docqueries/alpha_shape/alphashape.result
(1 hunks)locale/en/LC_MESSAGES/pgrouting_doc_strings.po
(6 hunks)locale/pot/pgrouting_doc_strings.pot
(6 hunks)sql/alpha_shape/alphaShape.sql
(2 hunks)
💤 Files with no reviewable changes (2)
- doc/withPoints/pgr_withPointsDD.rst
- doc/driving_distance/pgr_drivingDistance.rst
👮 Files not reviewed due to content moderation or server errors (1)
- locale/pot/pgrouting_doc_strings.pot
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (14)
docqueries/alpha_shape/alphashape.result (1)
8-8
: Warning message correctly added for deprecation.The deprecation warning for
pgr_alphashape
function has been properly added to the query result, clearly indicating it's deprecated as of version 3.8.0. This aligns with the PR objective to deprecate the pgr AlphaShape function.doc/src/release_notes.rst (1)
71-72
: Deprecation entry correctly added to release notes.The
pgr_alphaShape
function has been properly added to the "Deprecation of functions" section with a reference to issue #2749. This documentation change is consistent with the PR objectives and follows the same format as other deprecation entries in this section.locale/en/LC_MESSAGES/pgrouting_doc_strings.po (5)
11-11
: POT-Creation-Date appears to be set to a future date.The creation date is set to April 8, 2025, which is in the future. Please verify and correct this date to reflect the actual creation time.
-"POT-Creation-Date: 2025-04-08 19:58+0000\n" +"POT-Creation-Date: 2023-04-08 19:58+0000\n"
3962-3965
: LGTM: Proper deprecation notice added.The added text correctly references issue #2749 and clearly indicates that pgr_alphaShape is deprecated, which aligns with the PR objectives.
4065-4065
: LGTM: Migration section header added.Adding a dedicated migration section for pgr_alphaShape is good practice to help users transition to alternative functions.
7865-7869
: LGTM: Clear deprecation marking.Good job marking the function as deprecated and specifying the version number (3.8.0) when the deprecation takes effect. This helps users understand when the change occurred.
15516-15517
: Verify if this change belongs in this PR.This "Support" section addition doesn't appear to be directly related to the pgr_alphaShape deprecation. Please verify if this change should be part of this PR or if it belongs to a different set of changes.
NEWS.md (1)
39-40
: Properly documented deprecation in the NEWS.The addition of the pgr_alphaShape function to the "Deprecation of functions" section correctly documents this change for users upgrading to version 3.8.0. Including the GitHub issue reference (#2749) provides valuable context for the deprecation decision.
doc/_static/page_history.js (1)
263-265
: Version history correctly updated.Adding version 3.8 to the pgr_alphaShape entry in the page history is appropriate. This ensures that the documentation system correctly tracks and displays the version in which this function was deprecated, helping users understand the timeline of API changes.
doc/src/migration.rst (1)
27-55
: Comprehensive migration guide added.The new migration section for pgr_alphaShape is well-structured and provides clear guidance for users:
- It clearly states when the deprecation begins (v3.8.0)
- It explains what the function did before deprecation
- It provides concrete alternatives using PostGIS functionality:
- CG_AlphaShape and ST_AlphaShape for PostGIS 3.5+ with SFCGAL
- Other options like ST_ConvexHull and ST_ConcaveHull
This approach helps users smoothly transition to supported alternatives.
sql/alpha_shape/alphaShape.sql (2)
43-43
: Runtime warning added for deprecated function.Adding a warning message that will be displayed when the function is used is a good practice for deprecation. This ensures users are immediately aware that they're using a deprecated function, even if they haven't read the release notes.
86-87
: Function comment updated to reflect deprecation.The simplified comment that focuses on the deprecated status is appropriate. Users looking at the function definition in the database will clearly see that this function is deprecated in version 3.8.0.
doc/alpha_shape/pgr_alphaShape.rst (2)
23-25
: Deprecation Notice UpdateThe addition of the new version entry:
* Version 3.8.0
* Deprecated function.
clearly marks the
pgr_alphaShape
function as deprecated. This aligns well with the PR objectives and ensures that users are immediately informed about the deprecation status. Please double-check that the version numbering is consistent across all related documentation and that any references in NEWS and release notes are updated accordingly.
47-49
: Migration Instructions InclusionThe inclusion directive for
migration.rst
is a valuable addition to guide users through the transition. Ensure that:
- The file
migration.rst
exists in the expected location.- The markers
:start-after: migrate_pgr_alphaShape_start
and:end-before: migrate_pgr_alphaShape_end
correctly identify the intended migration section.This will help maintain clear instructions for migrating to the recommended alternatives such as
CG_AlphaShape
andST_AlphaShape
.
Fixes #2749 .
Changes proposed in this pull request:
@pgRouting/admins
Summary by CodeRabbit
Documentation
Chores