iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
991 stars 552 forks source link

Export (and import) data from "uniques" plugin #898

Open fhennig opened 9 years ago

fhennig commented 9 years ago

I suggest an import / export functionality for the data from the "uniques" plugin, and also possibly other plugins that already use the "sync" plugin.

I accidently deleted my marked uniques when I cleared my browsing data. I saw that there is the sync plugin, and maybe the code from there could be used to implement a manual import / export function for the uniques plugin. I'd love to backup the data occasionally, otherwise It's not worth the effort to mark portals if the data can get lost easily.

flamusdiu commented 9 years ago

The Sync plugin just created a file in GDrive for you. GDrive should save backups of the file changes as well which you should be able to restore.

Not tested though.

fhennig commented 9 years ago

I don't understand, what do I have to do to get it working?

flamusdiu commented 9 years ago

@greenkeeper This might help: https://support.google.com/docs/answer/190843?hl=en

Google Drive already saves a revision history for every file. The files for the sync plugin are located in G Drive under IITC-SYNC-DATA-V2

fhennig commented 9 years ago

@flamusdiu Ok, I installed sync and authorized it. I also see the Folder and a file called uniques[uniques], but I can't download it and I there is no option "Manage revisions ...". I can do both of these things with an image I uploaded for testing purposes. When I change data about unique captures and click the sync link, the data is not updated, the file doesn't change. It appears to be not working correctly.

flamusdiu commented 9 years ago

@greenkeeper meh, I removed mine and now it's not creating. Let me look more at it. This plugin is very odd sometimes. I'll let you know something soon.

3ch01c commented 9 years ago

Is this still an issue? I can't seem to reproduce it. The import/export feature would be nice for people who don't use the sync plugin, though.

fhennig commented 9 years ago

I don't play Ingress at the moment, but it is, theoretically, still an issue. I too think an import / export feature would be nice, the code seems to be there already, I'd implement it myself if I knew JS.

Speeddymon commented 9 years ago

Import/export will not be implemented on a general basis, as per the FAQ. That being said, I DO see the need for an import/export of uniques and anything that can use the sync plugin, like bookmarks. We already have the ability to export Draw Tools, so perhaps Jon can contribute his thoughts?

For the uniques plugin it would only need to have the portion of data that determines if a given portal is unique (guid and the captured/visited data), and for bookmarks, it would only need the portal title and location.

thibaultmol commented 9 years ago

+1 . I would love this feature!

perringaiden commented 9 years ago

Currently my backup proceedure is to copy the key value from the Local Storage into a doc. However, you have to be aware of the large number of GUIDs available in the files, so whether it starts down the export path is a question. Bookmarks generally have a significantly smaller number of data points.

c-schmitz commented 8 years ago

I wrote an exporter/importer plugin for the Unique captures/visits. See https://github.com/c-schmitz/iitc-unique-export/blob/master/IngressUniqueExporter.user.js