Skip to content

Conversation

@TimMcCauley
Copy link

Description

Fixes the bug described in #64414

  • Update QgsDataItem::refresh() to copy tooltips from new items to existing items
  • Add RefreshChildrenWhenItemIsRefreshed capability to PostgreSQL and HANA schema items
  • Enables proper refresh of table comments at both connection and schema levels

What now works

PostgreSQL: Refresh connection → table comments update
PostgreSQL: Refresh schema → table comments update
SAP HANA: Refresh connection → table comments update
SAP HANA: Refresh schema → table comments update

Possible improvements

  • The comment is not updated until the user clicks refresh. I could add logic to update the comments as soon as a user clicks OK in the Table Comment prompt, however I am not sure if this is expected behaviour?
  • If the user hits escape or cancel while the prompt is open, a successful status message appears that the comment has been edited. This is a bit misleading and could be removed?

- Update QgsDataItem::refresh() to copy tooltips from new items to existing items
- Add RefreshChildrenWhenItemIsRefreshed capability to PostgreSQL and HANA schema items
- Enables proper refresh of table comments at both connection and schema levels
@github-actions github-actions bot added this to the 4.0.0 milestone Jan 4, 2026
@nyalldawson
Copy link
Collaborator

This is not quite the right approach -- you should instead update the "equals" methods for the item subclass which isn't being correctly updated to consider the tooltip too

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit beb5ab4)

🍎 MacOS Qt6 builds

Download MacOS Qt6 builds of this PR for testing.
This installer is not signed, control+click > open the app to avoid the warning
(Built from commit beb5ab4)

@nyalldawson
Copy link
Collaborator

@TimMcCauley lgtm! Can you confirm this new approach fixes the issue?

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.

2 participants