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

Data defined Assistant: closing the dialog without setting an expression invalidates the widget #24665

Closed
qgib opened this issue Jun 29, 2017 · 12 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers stale Uh oh! Seems this work is abandoned, and the PR is about to close. Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Jun 29, 2017

Author Name: Harrissou Santanna (@DelazJ)
Original Redmine Issue: 16766
Affected QGIS version: 3.0.0
Redmine category:expressions


I thought I had reported this issue but I couldn't find it in the tracker and given that it's still active...

Open a layer property dialog, Symbology tab
Select a parameter with a data-defined widget
Click the widget, choose Assistant... opening the DD configuration dialog
Close the new dialog without any change
The DD widget becomes red and is set with an errored expression.

I think that closing the dialog without any change shouldn't change DD widget expression.

Btw, hard to find the right category for this kind of issue

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2018

Author Name: Harrissou Santanna (@DelazJ)


Things have been fixed when using the layer properties dialog but not in the styling panel


  • version was changed from master to 3.0.0

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Expressions Related to the QGIS expression engine or specific expression functions labels May 25, 2019
@roya0045
Copy link
Contributor

This seems fixed. Can be closed.

@DelazJ
Copy link
Contributor

DelazJ commented Mar 22, 2020

I wouldn't say that: did you test in the styling panel, as mentioned above?
Here, the widget is no longer red but if you click on it, you'd notice that the "Assistant" entry is checked though no current expression associated. I don't know if this could potentially have side effect.... Also, if you had a field associated to the widget before you opened and undid the assistant panel, you get the same thing and lose the field association...

@roya0045
Copy link
Contributor

@DelazJ Yes, in docked mode the widget is altered, see this

if ( panel && panel->dockMode() )

And it directly linked to the legend. Yes there is no cancel button but you have undo, which act as cancel in this case. I would class this as solved. Maybe not perfect but solved.

@DelazJ
Copy link
Contributor

DelazJ commented Mar 22, 2020

Issue is that the user does not know that having opened that panel without any changes had "corrupted" his history, so he'll not probably undo anything (until he realiZes (how long after?) that his features do not display correctly (again with the assumption that an empty assistant corrupts anything - which I'm not able to investigate on)).

@Pedro-Murteira
Copy link

Can still replicate this issue on QGIS 3.16.14 and 3.22.1.

@alexbruy alexbruy added Symbology Related to vector layer symbology or renderers and removed Expressions Related to the QGIS expression engine or specific expression functions labels Nov 12, 2023
@alexbruy
Copy link
Contributor

I don't think this is a bug. If you close assistant dialog without any changes then nothing happens. If you apply dialog, even without entering anything then checkbox is there no matter how you access symbology via layer properties or styling panel. And I think that in case of applying this is an expected behaviour as default configuation is also a valid configuration.

@alexbruy alexbruy added the Feedback Waiting on the submitter for answers label Nov 12, 2023
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Nov 27, 2023
@DelazJ
Copy link
Contributor

DelazJ commented Nov 27, 2023

If you close assistant dialog without any changes then nothing happens.

Yes

If you apply dialog, even without entering anything then checkbox is there no matter how you access symbology via layer properties or styling panel.

maybe nitpicking but afaict you can not really apply that dialog in Layer styling panel so, not changing anything and moving back is like "Cancel", so the point above is applied in styling panel: nothing changes.
In Layer properties however (and unlike my previous comment), the "Assistant" checkbox is indeed checked now, and a "current" expression seems applied.

And I think that in case of applying this is an expected behaviour as default configuation is also a valid configuration.

Actually the applied expression, hence default configuration, is INVALID, as you can see if you press the "Edit" entry, because there is a missing parameter to construct a valid expression. Example for the Opacity parameter of a symbol coalesce(scale_linear(, 0, 0, 0, 100), 0)

IMHO, the Assistant dialog should have the same checks as some expression dialogs have and if the user did not select fields to have a valid expression, then the OK button remains greyed. Or we pre-filled the dialog (not my preference).

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Nov 27, 2023
@alexbruy alexbruy removed the Feedback Waiting on the submitter for answers label Nov 27, 2023
@alexbruy
Copy link
Contributor

Can't reproduce with the latest master 79ccc22
Peek 2024-01-26 11-35

@alexbruy alexbruy added the Feedback Waiting on the submitter for answers label Jan 26, 2024
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Feb 10, 2024
Copy link

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers stale Uh oh! Seems this work is abandoned, and the PR is about to close. Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

5 participants