Skip to content
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

Modifying withpointsdd #346

Merged
merged 7 commits into from Aug 17, 2023

Conversation

squarege
Copy link

Changes proposed in this pull request:

@pgRouting/admins

* [drivers][driving_distance] driver added capability of including
new result column
  * changed structure: Path_rt -> MST_rt
  * simplified code, removed parameter names
* [driving_distance] new file: withPointsDD.hpp
  * created a new class to calculate depth
  * used pgrouting::functions namespace
* Handling old & new code
* Removing unnecesary comments
* [C++] Calling function to get new results column
* [C] Creating internal function _pgr_v4withpointsdd for new signature
* [C] Changing the evaluation on the driving side
  * if graph is directed then valid values are [R, L, r, l],
  * else valid values are [B, b]
* Changing driving side from optional to compulsory param
* Including start_vid and depth in the output of single vertex overload
* Including depth in the output of multiple vertices overload
* Updating v3.6 signature file
* [pgr_drivingDistance] Adjusting the description of parameter names:
  * from_v -> start_vid
* [pgr_withPointsDD] Updating for new signature and new outputs
* [migration] Updating migration guidance for pgr_withPointsDD
* [pgRouting-introduction] Adding name into developer list
@squarege squarege added the yige-2023 Yige's GSoC 2023 project label Aug 17, 2023
@squarege squarege merged commit 3efc720 into pgRouting:develop-try1 Aug 17, 2023
12 checks passed
@@ -122,7 +122,7 @@ Driving distance optional parameters
* - ``equicost``
- ``BOOLEAN``
- ``true``
- * When ``true`` the node will only appear in the closest ``from_v``
- * When ``true`` the node will only appear in the closest ``start_vid``
Copy link
Member

Choose a reason for hiding this comment

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

You can not modify this file, It is not pgr_withPointsDD

@@ -20,6 +20,11 @@ Results can be different because of the changes.

Migrating functions:

:doc:`pgr_withPointsDD` signatures have changed, with the addition of new columns
Copy link
Member

Choose a reason for hiding this comment

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

Please write in alphabetical order

@@ -38,6 +43,76 @@ Migration of functions that add new columns
.. contents:: Contents
:local:

Migration of ``pgr_withPointsDD``
Copy link
Member

Choose a reason for hiding this comment

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

Please also place this in alphabetical order (So it is the last one)

@@ -2,7 +2,7 @@
/*PGR-GNU*****************************************************************

Copyright (c) 2018 pgRouting developers
Mail: project@pgrouting.org
Mail: project at pgrouting.org
Copy link
Member

Choose a reason for hiding this comment

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

This test is failing when executed on an old version.

https://github.com/pgRouting/GSoC-pgRouting/actions/runs/5906112392/job/16021495975#step:9:176

I recommend the following:
Restart from scratch:

CREATE OR REPLACE FUNCTION test_old()
original code
DROP any table that was created
LANGUAGE plpgsql;

CREATE OR REPLACE FUNCTION test_new()
adjust original code to new signature
DROP any table that was created
LANGUAGE plpgsql;

CREATE OR REPLACE FUNCTION do_test()
IF min_version('3.6.0') then
RETURN QUERY ... test_new_code()
ELSE
RETURN QUERY ... test_old_code()
LANGUAGE plpgsql;



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
yige-2023 Yige's GSoC 2023 project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants