Skip to content

Conversation

cvvergara
Copy link
Member

@cvvergara cvvergara commented Mar 1, 2025

Fixes #2772 .

Changes proposed in this pull request:

  • Documentation about the promotion
    • In the SQL function comment
    • In the documentation file

@pgRouting/admins

Summary by CodeRabbit

  • Documentation
    • Reorganized and clarified release notes to distinctly mark the pgr_extractVertices function as officially recognized while retaining a separate section for proposed functions.
    • Updated section headings and error messaging to enhance clarity and user comprehension.
    • Simplified detailed commentary in parameter descriptions for improved readability.
    • Added new function pgr_extractVertices to the documentation, describing its role in extracting vertex information based on edge table information.

Copy link
Contributor

coderabbitai bot commented Mar 1, 2025

Walkthrough

The changes update the release notes and documentation for pgRouting 3.8.0 by clarifying the status of two functions. The function pgr_extractVertices is now promoted from proposed to official, with corresponding header modifications in both NEWS.md and doc/src/release_notes.rst. Documentation files in the topology section have been revised to remove proposed indicators and reflect this new status, while the function pgr_findCloseEdges remains in the proposed category. Additionally, a SQL comment in extractVertices.sql has been simplified by removing an explicit parameter description.

Changes

File(s) Change Summary
NEWS.md, doc/src/…notes.rst Updated release notes headers to indicate that pgr_extractVertices is promoted to official, while pgr_findCloseEdges remains proposed; error message references adjusted.
doc/topology/…pgr_extractVertices.rst, doc/topology/…functions.rst Revised documentation to remove "Proposed on v3.3" and migrate pgr_extractVertices from the proposed to the official section.
sql/topology/extractVertices.sql Modified SQL comment for pgr_extractVertices by removing the detailed parameter description regarding [id,] startpoint, endpoint.
locale/en/LC_MESSAGES/pgrouting_doc_strings.po, locale/pot/pgrouting_doc_strings.pot Added pgr_extractVertices function to documentation and adjusted error messages accordingly.

Possibly related PRs

  • Pumpup to 3.8.0 #2764: The changes in the main PR regarding the promotion of the pgr_extractVertices function to official status are directly related to the modifications in the retrieved PR, which also discusses updates to the versioning and documentation for the same function.

Suggested labels

Enhancement, Administrative

Poem

Hoppity-hop, I'm a rabbit in code,
Celebrating changes along my winding road.
pgr_extractVertices now wears an official crown,
While proposed functions still lounge around town.
In the release notes, clarity takes flight—
A bunny’s delight in a well-documented night!
🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4fdb120 and 1fce8c9.

📒 Files selected for processing (2)
  • locale/en/LC_MESSAGES/pgrouting_doc_strings.po (5 hunks)
  • locale/pot/pgrouting_doc_strings.pot (5 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: cvvergara
PR: pgRouting/pgrouting#2744
File: doc/src/release_notes.rst:94-94
Timestamp: 2025-02-06T20:50:07.967Z
Learning: In pgRouting, changes to functions can happen at two levels:
1. SQL level - removal/addition of function signatures
2. C/C++ level - deprecation/changes to the underlying implementation
These are documented separately in the release notes.
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (10)
locale/pot/pgrouting_doc_strings.pot (5)

11-11: Metadata update looks good.

This is a standard update to the POT-Creation-Date reflecting when the file was modified.


3889-3891: Documentation addition for newly promoted function.

The addition of documentation for pgr_extractVertices with a clear description is appropriate and follows the same format as other functions in this section.


3934-3934: Release note entry confirms promotion.

This entry in the release notes clearly indicates the promotion of a function to official status, which aligns with the PR objectives.


3943-3948: Appropriate reorganization of function categories.

These changes correctly:

  1. Identify pgr_extractVertices as promoted to official status
  2. Create a separate section for proposed functions to maintain clear categorization

This organization ensures users can easily distinguish between official and proposed functions.


9763-9764: Function reference addition.

This adds a proper reference for the pgr_extractVertices function in the documentation, which is necessary for consistency with its new official status.

locale/en/LC_MESSAGES/pgrouting_doc_strings.po (5)

11-11: Update looks good.

This is a standard update to the POT creation date, reflecting when the translation template was last generated.


4365-4368: Documentation addition for pgr_extractVertices is clear and concise.

This newly added string properly describes the function's purpose, which aligns with its promotion to official status.


4412-4412: Release notes header accurately reflects the change.

This header correctly indicates that this section relates to functions being promoted to official status, which matches the PR objective.


4421-4426: Clear categorization of function status changes.

These strings appropriately distinguish between:

  1. Functions promoted to official status (pgr_extractVertices)
  2. Functions that remain proposed (pgr_findCloseEdges)

This clear separation is important for users to understand the reliability and support level of different functions.


11471-11471: Function name string addition is consistent with documentation style.

Adding the function name as a separate translatable string follows the pattern used for other functions in the codebase.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

🔭 Outside diff range comments (1)
doc/topology/pgr_extractVertices.rst (1)

28-31: 🧹 Nitpick (assertive)

🛠️ Refactor suggestion

Historical Version Inconsistency
In the “Version 3.3.0” section (lines 28–31), the text still says “* Function promoted to proposed.” Given that the function is now promoted to official status, this historical record could lead to confusion. Consider updating or removing this entry so that older status indications do not conflict with the current official status.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 996a349 and 4fdb120.

📒 Files selected for processing (5)
  • NEWS.md (1 hunks)
  • doc/src/release_notes.rst (1 hunks)
  • doc/topology/pgr_extractVertices.rst (1 hunks)
  • doc/topology/topology-functions.rst (1 hunks)
  • sql/topology/extractVertices.sql (0 hunks)
💤 Files with no reviewable changes (1)
  • sql/topology/extractVertices.sql
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: cvvergara
PR: pgRouting/pgrouting#2744
File: doc/src/release_notes.rst:94-94
Timestamp: 2025-02-06T20:50:07.967Z
Learning: In pgRouting, changes to functions can happen at two levels:
1. SQL level - removal/addition of function signatures
2. C/C++ level - deprecation/changes to the underlying implementation
These are documented separately in the release notes.
doc/topology/pgr_extractVertices.rst (1)
Learnt from: cvvergara
PR: pgRouting/pgrouting#2771
File: doc/topology/pgr_extractVertices.rst:28-35
Timestamp: 2025-02-27T23:09:12.162Z
Learning: In pgRouting documentation, historical version entries should be maintained in reverse chronological order (newest first) to provide context about the evolution of functions over time.
doc/topology/topology-functions.rst (1)
Learnt from: cvvergara
PR: pgRouting/pgrouting#2771
File: doc/topology/pgr_extractVertices.rst:28-35
Timestamp: 2025-02-27T23:09:12.162Z
Learning: In pgRouting documentation, historical version entries should be maintained in reverse chronological order (newest first) to provide context about the evolution of functions over time.
doc/src/release_notes.rst (1)
Learnt from: cvvergara
PR: pgRouting/pgrouting#2744
File: doc/src/release_notes.rst:94-94
Timestamp: 2025-02-06T20:50:07.967Z
Learning: In pgRouting, changes to functions can happen at two levels:
1. SQL level - removal/addition of function signatures
2. C/C++ level - deprecation/changes to the underlying implementation
These are documented separately in the release notes.
🪛 markdownlint-cli2 (0.17.2)
NEWS.md

18-18: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Codacy Static Code Analysis
🔇 Additional comments (5)
doc/topology/pgr_extractVertices.rst (1)

23-27: Official Status Annotation Added
In the “Version 3.8.0” section (lines 23–27), the text now reads “* Error messages adjustment.” followed by “* Function promoted to official.” This clearly communicates the new official status and is consistent with the PR’s goals.

NEWS.md (1)

18-21: Proposed Functions Section
The subsequent section “Changes on proposed functions” continues to list functions like pgr_findCloseEdges and others. This is appropriate since only pgr_extractVertices is promoted while others remain proposed.

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

18-18: Emphasis used instead of a heading
null

(MD036, no-emphasis-as-heading)

doc/topology/topology-functions.rst (1)

27-38: Inclusion in Official Section
At lines 27–38 the new entry for “:doc:pgr_extractVertices – Extracts vertex information based on the edge table information.” has been added under the list of functions that modify the database. This is a clear and correct update that aligns with the promotion.

doc/src/release_notes.rst (2)

42-49: New “Promotion to official” Rubric
The release notes for pgRouting 3.8.0 now start a new rubric “Promotion to official function of pgRouting.” (lines 42–49) which includes pgr_extractVertices.
• The inclusion directive (lines 46–48) pulls in content from pgr_extractVertices.rst and ensures consistency with the dedicated documentation.
This is a good approach to keep the release notes concise while pointing to additional context.


50-57: Separation of Proposed Functions
Immediately following the official promotion section, the rubric “Changes on proposed functions” (line 50 onward) is introduced and lists pgr_findCloseEdges (and later pgr_degree). This structure clearly demarcates the functions whose status remains as proposed.
The use of include directives ensures that any further details remain synchronized with other documentation.

Comment on lines 10 to 13
.. index::
single: Topology Family ; pgr_extractVertices
single: extractVertices - Proposed on v3.3
single: extractVertices

Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Index Entry Consistency
At line 11–13 the index is updated with a new entry “single: extractVertices”. Please confirm that this new index entry duplicates or replaces the earlier “Topology Family ; pgr_extractVertices” as intended. If the earlier entry is no longer needed, consider removing it to avoid any ambiguity.

Comment on lines +11 to +17
**Promotion to official function of pgRouting.**

* pgr_extractVertices

* Error messages adjustment.
* Function promoted to official.

Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Release Note Clarity for pgr_extractVertices
The NEWS.md file now includes a heading “Promotion to official function of pgRouting.” with a subsequent listing for pgr_extractVertices that contains an “Error messages adjustment” bullet and then “* Function promoted to official.” This entry clearly reflects the new status.

A minor suggestion: Markdownlint (MD036) flagged that emphasis was used instead of a proper heading. Consider using a hash-based heading (e.g. using “###”) to improve clarity if it aligns with your formatting guidelines.

@robe2 robe2 self-requested a review March 1, 2025 21:08
@cvvergara cvvergara merged commit 053ed0c into pgRouting:main Mar 2, 2025
2 checks passed
@cvvergara cvvergara deleted the issue-2772-promote-pgr_extractVertices branch March 2, 2025 02:41
@coderabbitai coderabbitai bot mentioned this pull request Apr 22, 2025
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.

Promote to official pgr_extractVertices in 3.8
2 participants