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

Handle deprecated algorithms explicitly #198

Merged
merged 12 commits into from
Jan 6, 2024
Merged

Conversation

florisvdh
Copy link
Member

  • qgis_run_algorithm() and other functions (such as qgis_show_help() and qgis_get_description()) will warn if a deprecated algorithm is passed (feature request Throw a warning when a deprecated algorithm is run #194; original issue Problem extracting output after using native:zonalstatistics algorithm #193).
  • qgis_search_algorithms() will exclude deprecated algorithms by default; they can still be included by setting the include_deprecated argument to TRUE.
  • qgis_algorithms() can optionally restrict its results to non-deprecated algorithms (set the include_deprecated argument to FALSE). By default they are included, just as before. Excluding deprecated algorithms in the cached value is disabled at all times (this holds for the (default) JSON output mode; the plain output mode of qgis_process (regarded as legacy here) always excludes deprecated algorithms).

@florisvdh florisvdh merged commit 19af3b7 into main Jan 6, 2024
16 checks passed
@florisvdh florisvdh deleted the warn_deprecated_algs branch January 6, 2024 13:53
@florisvdh
Copy link
Member Author

3ee3b0e has been added to generate one warning per user call, instead of multiple repetitions in some cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant