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

Feedback from processing algorithms may be mistaken for plugin issue #279

Open
koebi opened this issue Aug 27, 2024 · 1 comment
Open

Feedback from processing algorithms may be mistaken for plugin issue #279

koebi opened this issue Aug 27, 2024 · 1 comment

Comments

@koebi
Copy link
Collaborator

koebi commented Aug 27, 2024

Here's what I did

  1. I issued an invalid request from the Directions from 1 Point Layer processing algorithm:
    My input layer had duplicate points, which traveling salesman optimization doesn't allow, but I turned on traveling salesman.

  2. I issued a request from the same algorithm to the public API, but without configuring a key first.


Here's what I got

As expected, the log contained information about the issue in both cases:

  1. directions-point-layer-output
  2. directions-point-layer-auth-missing

In both cases, this output seemed as if there was an issue with the plugin.
In both cases, the issue was not with the plugin, but with my input - one time it was faulty, one time I had no key configured.


Here's what I think could be improved

How can we give feedback from the processing plugins in a way that tells the user that something is wrong that they can fix themselves, rather than it being an issue with the plugin?

@merydian
Copy link
Collaborator

merydian commented Sep 2, 2024

QgsProcessingInfo.pushFormattedMessage could be benefitial here. It prints formatted HTML. We could keep the ordinary "developer" log message for people with those skills, but also provide Hints with links to further educational resources.

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

No branches or pull requests

2 participants