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
[MT Export/Import] Export/import any tour values #493
Comments
@FJBDev I will restructure many |
I actually wondered for a long time if MT is "symmetric". |
No There are many fields which are currently not exported into GPX and also some collections and data series, e.g. pulse times |
Because gpx export/import gets more and more complicated when all MT fields are also integrated, I just decided to create the new export file extension |
What about |
The number 10 😄 Also, now that JSON is getting very popular and more "modern" compared to XML (which is getting old and verbose), you could inspire yourself from those files for the MT format ? See GeoJSON as an example that seems to be widely used these days (CalTopo by default uses GeoJSON) |
After I restarted this features a second time by using a StAX parser, for now I will stay with it.
I learned JSON in 2004 (or earlier) as an easy mechanism to transfer data from the server to the browser and with the JS https://web.archive.org/web/20030205013518/http://crockford.com/JSON/js.html In the first version in 2002 we may also be already using JSON but I cannot remember it. There is a video from the 2002 presentation https://www.youtube.com/watch?v=Qs0K8zaVzZ8 |
After comparing .mt export files from the db with the fatal migration error and with the .mt import/export files from the fixed db, all .mt files had the same content except the entity ID's and modified data. I checked any import/export fields in the code but it could still be possible, that there may be fields which are not exported/imported correctly because I had not tested any possible fields, just the one I'm using in about 10 tour files. When using this feature to export/import .mt files, it should always be used with care and backups are strongly recommended |
To identify the methods, which were added to get/set entity values for the MT export/import, all method comments have the tag "Used for MT import/export". These methods should not be used because of possible side effects, there are other methods to set/get entity fields, this was the reason to tag these methods. |
Workflow to fix the possible migration error.
|
Or what I did (another simple solution that didn't need a new file format) was to restore my backup before the MT22.3 test version and re-import my 10-15 new tours with the original files (.fit). |
This is the other option but you loose all your comments, markers and photos which you've created/assigned. I just updated the info which code should be updated, when the db data structure is modified 63aa346 |
Indeed, but in my case, I had none of those as I had just imported FIT files and not added comments, markers yet
Is the |
Almost, today it occurred to me that I have not yet tested reference tours but tour comments, markers and photos are working |
All discovered issues are now fixed in 089ac34 |
Because of using the test version 22.3 in my production which had a fatal error when migrating tour data to the new db version, I need a workflow to export my tours which I created with 22.3 and import it into a backup before version 22.3.
Version 22.3 is postponed, until this feature is available.
This featue is already started in e1b6064
The text was updated successfully, but these errors were encountered: