-
Notifications
You must be signed in to change notification settings - Fork 21
Migrate plugin from QGIS2 to QGIS3 #88
Conversation
…ctions visibility function
@vmora @lbartoletti Could you please take a look about this PR to see if it looks good to you? |
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.
LGTM, good job.
Some comments. Only a verification if the migration works also on windows (But why wouldn't it work?).
Also in all .py tests you must change
#!/usr/bin/env python2
by #!/usr/bin/env python3
- Use user postgres instead of julien - Don't create versioning tables
Thanks for the review. I have also replaced the python2 strings with python3 e513bec |
Good work @troopa81, I suppose it's still compatible with python2 QGIS 2.X (although it was not required) ? |
@vmora Not it's not, because api has breaking changes between QGIS2 and QGIS3. If we want compatibility we need to have ``if```everywhere, which is not really clean and maintenable imho. |
Has anyone tested this? If this is indeed a bug I'd be glad to work on it, just checking with you. |
Yes, I tested it on Linux. But I give it a try on Windows 10 with QGIS 3.4.11 and PostGres 10 and it works. Here is a demo video just for the versioning part on Linux. I get the same thing on Windows.
It looks like a bug, please let me know if you understand where it happens and how to fix it |
@troopa81 Thank you for the heads up. I tested it again but with Postgres 9.6 and it works fine. |
Strange, it works on Linux with Postgres 11. Maybe it's Postgres11 AND Windows. I'll give it a try |
Migrate plugin from QGIS2 to QGIS3
This is related to #69