Enables the sorting of alter relationships tables by name, to make it easier to make manual corrections to the data at the Alter Relationships stage.
Additional "name sort" drop-down options are added for Related, Matched, Removed, and Added tables.
Notes:
enabling the built-in table sorting function with tbl.setSortingEnabled(True), doesn't seem to work as it appears to lose persistent connection between the visual table in QGIS (after sorting) and the database table in Postgres.
using a click listener with tbl.horizontalHeader().sectionClicked.connect(self.idBulk) and sorting with something like result.sort(key=lambda i: i[4], reverse = True), also doesn't seem to work as it appears to lose persistent connection.
Notes for Testing:
Bulk load some data, run Compare Outlines, then Alter Relationships. Click on the drop-down menu and choose one of the "name sort" options.
Source Code Documentation Tasks:
[ ] README updated (where applicable)
[ ] CHANGELOG (Unreleased section) updated
[ ] Docstrings / comments included to help explain code
User Documentation Tasks:
[ ] Confluence user guide updated (where applicable)
Testing Tasks:
[ ] Added tests that fail without this change
[ ] All tests are passing in development environment
Change Description:
Enables the sorting of alter relationships tables by name, to make it easier to make manual corrections to the data at the Alter Relationships stage.
Additional "name sort" drop-down options are added for Related, Matched, Removed, and Added tables.
Notes:
tbl.setSortingEnabled(True)
, doesn't seem to work as it appears to lose persistent connection between the visual table in QGIS (after sorting) and the database table in Postgres.tbl.horizontalHeader().sectionClicked.connect(self.idBulk)
and sorting with something likeresult.sort(key=lambda i: i[4], reverse = True)
, also doesn't seem to work as it appears to lose persistent connection.Notes for Testing:
Bulk load some data, run Compare Outlines, then Alter Relationships. Click on the drop-down menu and choose one of the "name sort" options.
Source Code Documentation Tasks:
User Documentation Tasks:
Testing Tasks: