-
-
Notifications
You must be signed in to change notification settings - Fork 376
pgr_degree: Moving to metrics family #2781
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
pgr_degree: Moving to metrics family #2781
Conversation
WalkthroughThis pull request updates various documentation and SQL configuration files to integrate a new metric function called Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (14)
🔇 Additional comments (2)
🪧 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)
doc/metrics/CMakeLists.txt
(1 hunks)doc/metrics/metrics-family.rst
(1 hunks)doc/metrics/pgr_degree.rst
(2 hunks)doc/topology/CMakeLists.txt
(0 hunks)doc/topology/topology-functions.rst
(0 hunks)docqueries/metrics/CMakeLists.txt
(1 hunks)docqueries/metrics/test.conf
(1 hunks)docqueries/topology/CMakeLists.txt
(0 hunks)docqueries/topology/test.conf
(0 hunks)sql/metrics/CMakeLists.txt
(1 hunks)sql/topology/CMakeLists.txt
(0 hunks)
💤 Files with no reviewable changes (5)
- sql/topology/CMakeLists.txt
- docqueries/topology/test.conf
- doc/topology/topology-functions.rst
- doc/topology/CMakeLists.txt
- docqueries/topology/CMakeLists.txt
⏰ Context from checks skipped due to timeout of 90000ms (16)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: Ubuntu clang
- GitHub Check: macos (macos-latest)
- GitHub Check: macos (macos-14)
- GitHub Check: Ubuntu Boost (84)
- GitHub Check: Ubuntu Boost (80)
- GitHub Check: Check queries
- GitHub Check: Ubuntu Boost (86)
- GitHub Check: Ubuntu Boost (77)
- GitHub Check: Ubuntu Boost (75)
- GitHub Check: Ubuntu Boost (78)
- GitHub Check: Ubuntu Boost (68)
- GitHub Check: Ubuntu Boost (83)
- GitHub Check: Ubuntu Boost (79)
- GitHub Check: Ubuntu Boost (76)
- GitHub Check: Ubuntu Boost (56)
🔇 Additional comments (10)
sql/metrics/CMakeLists.txt (1)
5-5
: File addition appropriately integrated.The addition of "degree.sql" to the LOCAL_FILES list correctly includes this file in the build process for the metrics module, which aligns with the PR objective of moving pgr_degree from topology to metrics.
docqueries/metrics/test.conf (1)
7-7
: Test configuration properly updated.The addition of "degree.pg" to the test configuration ensures that tests for the pgr_degree functionality will be executed as part of the metrics module testing suite.
doc/metrics/CMakeLists.txt (1)
5-5
: Documentation file correctly added.Adding "pgr_degree.rst" to the LOCAL_FILES list ensures that the documentation for pgr_degree will be properly built and included in the metrics module documentation.
doc/metrics/pgr_degree.rst (2)
11-11
: Index Entry Update for Correct Categorization
The index entry has been updated to reference "Metrics Family" rather than "Topology Family," which improves the categorization and clarity of the documentation for the proposedpgr_degree
metric.
54-54
: Typographical Correction in Return Description
The return type description is now correctly shown as "OR EMPTY SET"—this fixes the previous typographical error ("EMTPY SET") and enhances clarity.doc/metrics/metrics-family.rst (5)
18-23
: New "Proposed" Section Added for Upcoming Metrics
The introduction of a collapsible "Proposed" section clearly segregates experimental or upcoming metrics from stable ones. This organizational improvement enhances readability and helps users locate new functions likepgr_degree
more easily.
24-27
: Removal of Redundant Inline Description forpgr_degree
The inline description forpgr_degree
has been removed from the "Proposed" section, which is appropriate given that its detailed documentation resides in its own file. Consider ensuring that users are guided to the full details elsewhere (e.g., via a cross-reference).
29-34
: Formatting of the "Experimental" Section is Clear
The collapsible "Experimental" section is structured well, including the use of the include directive with proper range markers. This format supports readability and consistency with other sections.
35-41
: Presentation and Formatting of Experimental Function
The experimental entry forpgr_betweennessCentrality
is clear and split appropriately over two lines to enhance readability. The usage of the experimental start/end markers helps delineate content scope.
42-47
: Toctree Update for Documentation Integration
The addition ofpgr_degree
to the toctree along withpgr_betweennessCentrality
ensures that the new metric file is included in the documentation build process. This change supports the overall goal of improved project structure.
Fixes #2763 .
Changes proposed in this pull request:
@pgRouting/admins
Summary by CodeRabbit
Documentation
Tests
Chores