-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
t.upgrade: added from addons #1438
Conversation
- copied from https://github.com/OSGeo/grass-addons/tree/master/grass7/temporal/t.upgrade - added to test_thorough workflow Aims at addressing #1342
The Centos7 workflow fails with:
Any ideas why? (perhaps @nilason or @wenzeslaus know?) |
OSGeo4W also complains, not sure what's wrong:
|
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.
The Centos7 workflow fails with:
Looks like you found the solution :).
See #305. |
In which way this would be addressing #1342? As #1342 (comment) says the error happens in a fresh mapset without any prior temporal database. It happens even for locations without any temporal database in any of the mapsets. Even in this PR:
|
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.
The t.upgrade call in CI seems unnecessary. Otherwise, the original question still remains: Is the version update necessary, i.e., why can't the library support databases with and without band reference?
maybe something sqlite related... AFAIU, the difference among versions is only in a couple of columns in the table... boh |
@veroandreo @wenzeslaus To my understanding TGIS DB version property has been designed by @huhabla to reflect changes in the database structure. Even the change seems to be small, the rule seems to be clear (every change in the database structure should be reflected by version change). |
See @wenzeslaus newly created #1447 |
Ok, reverted in cce2dbf @wenzeslaus pls remove/fix the unconnected tgis DB in PERMANENT as per #1438 (comment) |
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.
I have could of comments for the code and two questions:
- Why the library doesn't support databases with and without band reference, i.e., versions 2 and 3?
- What is now the error message when the database has the wrong version?
I think both Vero and I understand that a change in the structure warrants increase in the version number. The question now and in the previous discussion was and is: Is it necessary for the library to not work with older databases and require update or is it possible to work with the older databases and complain only when band reference feature is requested by the user? |
+1
Oh, poor sample dataset. 😢 What did it do? 😭 It came out blameless from this whole odyssey. With all seriousness, this is far from the only issue with this dataset, but it has alpha2 in the name and it is used only internally for testing. Do we need to finalize it and publish as replacement of the 08 version (which, among other things, involves modifying several tests)? Yes. Is it worth for me to clean some directory there which is not causing any issues? No. |
|
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.
+1 but check the keywords.
Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com>
* t.upgrade: added from addons - copied from https://github.com/OSGeo/grass-addons/tree/master/grass7/temporal/t.upgrade * Windows: fix t.upgrade call * change grass.temporal to lazy import * remove UTF-8 coding line * black: blank line after import * revert CI related changes * module description fixed * Year pedantry * import grass.script as gs * no need for sys.exit() * global variables options and flags are not used Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com> Co-authored-by: Martin Landa <landa.martin@gmail.com>
* t.upgrade: added from addons - copied from https://github.com/OSGeo/grass-addons/tree/master/grass7/temporal/t.upgrade * Windows: fix t.upgrade call * change grass.temporal to lazy import * remove UTF-8 coding line * black: blank line after import * revert CI related changes * module description fixed * Year pedantry * import grass.script as gs * no need for sys.exit() * global variables options and flags are not used Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com> Co-authored-by: Martin Landa <landa.martin@gmail.com>
* t.upgrade: added from addons - copied from https://github.com/OSGeo/grass-addons/tree/master/grass7/temporal/t.upgrade * Windows: fix t.upgrade call * change grass.temporal to lazy import * remove UTF-8 coding line * black: blank line after import * revert CI related changes * module description fixed * Year pedantry * import grass.script as gs * no need for sys.exit() * global variables options and flags are not used Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com> Co-authored-by: Martin Landa <landa.martin@gmail.com>
Aims at addressing #1342