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

Rewrite ParameterSelection class to return parameter value instead of its index #16513

Closed
qgib opened this issue Apr 11, 2013 · 5 comments
Closed
Labels
Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Apr 11, 2013

Author Name: Alexander Bruy (@alexbruy)
Original Redmine Issue: 7573

Redmine category:processing/core
Assignee: Victor Olaya


This is rather proposal than new feature or bug.

Currently ParameterSelection accepted list of possible values and returns an index of the selected value. Maybe it makes sense to rewrite it and return value. Such approach has some advantages: using Python dict type it is very easy to show descriptive names to user and in same time pass to algorithms correct values with necessary type (string, int, double...)

If this will be accepted, issues described in #5689 will gone

@qgib
Copy link
Contributor Author

qgib commented Mar 26, 2014

Author Name: Alexander Bruy (@alexbruy)


  • category_id was configured as 63

@qgib
Copy link
Contributor Author

qgib commented Oct 4, 2014

Author Name: Giovanni Manghi (@gioman)


  • category_id removed 63
  • project_id was changed from 78 to 17

@qgib
Copy link
Contributor Author

qgib commented Oct 4, 2014

Author Name: Giovanni Manghi (@gioman)


  • category_id was configured as Processing/Core

@qgib
Copy link
Contributor Author

qgib commented Oct 4, 2014

Author Name: Giovanni Manghi (@gioman)


  • assigned_to_id was configured as Victor Olaya

@qgib
Copy link
Contributor Author

qgib commented Dec 30, 2016

Author Name: Alexander Bruy (@alexbruy)


Fixed in master. Options can be defined as (value, text)


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@qgib qgib added Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant