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

Conditional formatting in Attribute Table error after filter results changed by value edits #28352

Closed
qgib opened this issue Nov 17, 2018 · 5 comments
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers

Comments

@qgib
Copy link
Contributor

qgib commented Nov 17, 2018

Author Name: Kory Roberts (Kory Roberts)
Original Redmine Issue: 20532
Affected QGIS version: 3.5(master)
Redmine category:attribute_table


Create a filter of records.
Apply conditional formatting.
Edit some records affected by filter (e.g. change values so that some additional records will be filtered out).
Save changes.
Now, conditional formatting is misaligned on some wrong records.

It is corrected after resetting conditional formatting, but this should not be necessary.

@qgib
Copy link
Contributor Author

qgib commented Nov 17, 2018

Author Name: Giovanni Manghi (@gioman)


works as expected on 2.18?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


Cannot replicate on 3.6, if you do please add a sample project with data (and steps to follow).

@qgib qgib added Feedback Waiting on the submitter for answers Bug Either a bug report, or a bug fix. Let's hope for the latter! Attribute Table labels May 25, 2019
@HenrikSpa
Copy link
Contributor

I have stumbled upon an issue similar to this one using QGIS 3.8.1-Zanzibar

Explanation:

I have a sorted and updateable postgresql-view. Editing this view causes changes in underlying tables which in turn reorders the view. I use conditional formatting for the rows based on the column values.

So, when I open the conditionally formatted attribute table the first time, it looks correct.
Then I edit a column and the conditional formatting updates as expected.
Then I save the edit and the conditional formatting is still correct.
Then I turn of editing and the conditional formatting is still correct.
Then I refresh the table (the two arrows), and now the conditional formatting is all mixed up.

It could be that the conditional formatting is connected to the rowid and is applied before the refresh.
So when refreshing, the rowid changes, but the formatting follows the old rowids.

@alexbruy
Copy link
Contributor

alexbruy commented Apr 17, 2020

Please test with latest master. Should be already fixed.

@HenrikSpa
Copy link
Contributor

I can not reproduce my previous issue with 3.13.0-Master, so looks solved to me! Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

3 participants