-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Refactor QgsConnectionPool[Group] and it's descendants #53307
Conversation
@nyalldawson @jef-n I started the refactoring work we have discussed. I noticed some redundant code with the connection pool so I started here. |
4d4ab90
to
61576e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this refactoring, it was definitely time to do it.
fcf9375
to
aa07b48
Compare
@elpaso thanks for the review, I have addressed all of your comments! |
d9b648a
to
1344b45
Compare
1344b45
to
e555804
Compare
@elpaso not sure if the spell_check error is related. Would you mind taking another look? |
Looks good to me, I'll try to restart the failing jobs, sometimes it helps (even if it shouldn't). |
3fce259
to
2f5c2b3
Compare
My preferred approach would indeed be the duplication of the settings. Indeed chances of divergence are there and it's better isolated and also avoid the need for the dynamic naming. |
Also, my solution did not work for the tests and mingw build, the same QgsSettingsException was thrown during the provider test runs - resolved to normal settings class. |
2f5c2b3
to
e354805
Compare
@3nids something seems off with the CI, when I run locally the tests e.g. ALL_BUT_PROVIDERS, I do not hit these failures anymore on my latest patch (due to QgsSettingsException). Only some flaky tests fail for other reasons:
|
27a9431
to
3a2dfc1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on the settings front, everything looks good!
thanks a lot for the changes.
2361cb3
to
48cbe44
Compare
…and the original pull request for the AWS Redshift driver qgis#53018. - Move qgsConnectionPool_[connectionCreate|connectionDestroy|invalidateConnection|connectionIsValid|connectionToName] into their appropriate abstract classes and declare them as pure virual. - Implement the destructor and the functions above for all providers. - Refactor QgsPostgresConnPool[Group] to QgsSQLConnPool[Group], in order to reuse the template for future SQL based providers (AWS Redshift).
48cbe44
to
0278920
Compare
@elpaso it passes all tests now! I appreciate your review. |
ping @elpaso |
Sorry for the late reply, can you please resolve the merge conflicts? |
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
While we hate to see this happen, this PR has been automatically closed because it has not had any activity in the last 21 days. If this pull request should be reconsidered, please follow the guidelines in the previous comment and reopen this pull request. Or, if you have any further questions, just ask! We love to help, and if there's anything the QGIS project can do to help push this PR forward please let us know how we can assist. |
Description
This refactoring job is related to qgis/QGIS-Enhancement-Proposals#272 and the original pull request for the AWS Redshift driver #53018.