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

feat: add support for extra_info parameter #251

Merged
merged 24 commits into from
May 17, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9653fb8
feat: add extra_info to advanced parameters and add values
merydian Apr 26, 2024
b065691
feat: extra_info to request parameters with default route algorithm
merydian Apr 26, 2024
b01b782
feat: add extra_info values to request
merydian Apr 26, 2024
92f79bd
style: rename extra_info parameter variable
merydian Apr 26, 2024
729a0da
feat: add necessary fields to output layer
merydian Apr 26, 2024
e31e87a
style: run ruff
merydian Apr 26, 2024
61fcc00
feat: add extra info attributes to attribute table in points layer alg
merydian May 3, 2024
8aeb541
feat: add extra info attributes to attribute table in points layers a…
merydian May 3, 2024
f616734
feat: add support for csv_factor
merydian May 3, 2024
aa52090
feat: add support for csv_column
merydian May 3, 2024
15b4d0c
refactor: add typing hints, might lead to merge issues later?
koebi May 15, 2024
58b2848
feat: order extra_info according to fields order
koebi May 15, 2024
a0c050b
docs: add TODOs
koebi May 15, 2024
9e7dbde
style: ruff format
koebi May 15, 2024
1137c80
Merge branch 'main' into Add-support-for-extra-info-parameter
koebi May 15, 2024
13bd817
docs: Comment usage of Csv Factor/Column
koebi May 17, 2024
153449b
fix: correct type hint
koebi May 17, 2024
44532d6
feat: utility function to decode extra info
koebi May 17, 2024
866af09
feat: translate extra_info
koebi May 17, 2024
3da98fd
fix: set type according to extra info decoding
koebi May 17, 2024
5a7aa33
feat: decode extra info values
koebi May 17, 2024
5889c0e
fix: log, don't break on non-available extra info
koebi May 17, 2024
c98858e
docs: remove ToDos, available in #252
koebi May 17, 2024
94daede
style: ruff format
koebi May 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: Comment usage of Csv Factor/Column
koebi committed May 17, 2024
commit 13bd817509dfd5f6141ad4567a7dc05aae79a597
4 changes: 2 additions & 2 deletions ORStools/proc/directions_lines_proc.py
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@ def __init__(self):
),
QgsProcessingParameterNumber(
self.CSV_FACTOR,
self.tr("Csv Factor"),
self.tr("Csv Factor (needs Csv Column and csv in Extra Info)"),
type=QgsProcessingParameterNumber.Double,
minValue=0,
maxValue=1,
@@ -118,7 +118,7 @@ def __init__(self):
),
QgsProcessingParameterString(
self.CSV_COLUMN,
self.tr("Csv Column"),
self.tr("Csv Column (needs Csv Factor and csv in Extra Info)"),
optional=True,
),
QgsProcessingParameterBoolean(self.EXPORT_ORDER, self.tr("Export order of jobs")),
4 changes: 2 additions & 2 deletions ORStools/proc/directions_points_layer_proc.py
Original file line number Diff line number Diff line change
@@ -118,7 +118,7 @@ def __init__(self):
),
QgsProcessingParameterNumber(
self.CSV_FACTOR,
self.tr("Csv Factor"),
self.tr("Csv Factor (needs Csv Column and csv in Extra Info)"),
type=QgsProcessingParameterNumber.Double,
minValue=0,
maxValue=1,
@@ -127,7 +127,7 @@ def __init__(self):
),
QgsProcessingParameterString(
self.CSV_COLUMN,
self.tr("Csv Column"),
self.tr("Csv Column (needs Csv Factor and csv in Extra Info)"),
optional=True,
),
QgsProcessingParameterBoolean(self.EXPORT_ORDER, self.tr("Export order of jobs")),
4 changes: 2 additions & 2 deletions ORStools/proc/directions_points_layers_proc.py
Original file line number Diff line number Diff line change
@@ -127,7 +127,7 @@ def __init__(self):
),
QgsProcessingParameterNumber(
self.CSV_FACTOR,
self.tr("Csv Factor"),
self.tr("Csv Factor (needs Csv Column and csv in Extra Info)"),
type=QgsProcessingParameterNumber.Double,
minValue=0,
maxValue=1,
@@ -136,7 +136,7 @@ def __init__(self):
),
QgsProcessingParameterString(
self.CSV_COLUMN,
self.tr("Csv Column"),
self.tr("Csv Column (needs Csv Factor and csv in Extra Info)"),
optional=True,
),
]