Feature request #21558

Allow none/empty as possible values for Processing QgsProcessingParameterRange

Added by Giovanni Manghi about 1 year ago. Updated about 1 year ago.

Status:Open
Priority:Normal
Assignee:-
Category:Processing/GRASS
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:29374

Description

Now in QgsProcessingParameterRange "0" is always used as default.

This has two downsides:

1) 0 could not be an appropriate default and can led to errors/confusions
2) sometimes the parameter defined by QgsProcessingParameterRange is not mandatory, not being able to set it to "none" it is always used, even if is not necessary.

See for example #21452


Related issues

Related to QGIS Application - Bug report #21452: r.series broken in Processing due to wrong "range=0,0" pr... Open 2019-03-03

History

#1 Updated by Giovanni Manghi about 1 year ago

  • Subject changed from Allow noe/empty as possible values for Processing QgsProcessingParameterRange to Allow none/empty as possible values for Processing QgsProcessingParameterRange

#2 Updated by Jürgen Fischer about 1 year ago

  • Description updated (diff)

#3 Updated by Jürgen Fischer about 1 year ago

  • Related to Bug report #21452: r.series broken in Processing due to wrong "range=0,0" pre-definition added

Also available in: Atom PDF