Skip to content
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

[Draft] Download der eigenen Drafts. #645

Closed
Ruko2010 opened this issue May 7, 2018 · 13 comments
Closed

[Draft] Download der eigenen Drafts. #645

Ruko2010 opened this issue May 7, 2018 · 13 comments
Assignees
Labels
enhancement prio: very low risk: low Low risk of breaking other functions. Normally features that are new, unrelated to other funcitons status: completed enhancement, improvement implemented
Milestone

Comments

@Ruko2010
Copy link
Collaborator

Ruko2010 commented May 7, 2018

Is your feature request related to a problem? Please describe.
Es wäre gut eine Möglichkeit zum Download der eigenen Drafst zu haben (kml, gpx oder ähnliches)

Describe the solution you'd like
Download Button in der alten Draft-Übersicht, so dass man sich alle Drafts als Backup laden kann.

Additional context
Featurewunsch von de_locke

@Ruko2010 Ruko2010 added this to the v0.9.6 milestone May 7, 2018
@Ruko2010 Ruko2010 self-assigned this May 7, 2018
@Ruko2010
Copy link
Collaborator Author

Ruko2010 commented May 9, 2018

Also, Intension war die Drafts nach GSAK zu exportieren.
GSAK braucht dafür
GCCode, Datum, Fundtyp, LogText.

Leider ist weder GCCode noch Logtext auf der Seite vorhanden, sondern nur die GUID des Caches.
@2Abendsegler weist du ob man von der GUID irgendwie auf den GCCode kommt (ohne das ganze per Seitenaufruf der Cachepage (was ja über die GUID gehen würde) nachzuladen)?

Wenn nicht würde ich das hier mal zu machen und für de_locke privat ein kleines Script bauen, dass die Informationen in kleinen Portionen abruft (er hat nämlich knapp 5700 Drafts 😉und ich hab ein wenig die Befürchtung, wenn man da zu viele auf einmal abruft, dass das GC die IP sperrt.)

@2Abendsegler
Copy link
Owner

2Abendsegler commented May 9, 2018 via email

@CachingFoX
Copy link
Collaborator

Alternativ auf der neuen Drafts Seite das Template so ändern, das alles per Text dargestellt wird. Dann kann man es per Copy&Paste rauskopieren. Evtl. muss man das Nachladen der Drafts automatisieren, sodass alle Drafts auf einmal geladen werden. Wäre dann auch ein Feature für GClh.

@Ruko2010
Copy link
Collaborator Author

hmm, dass wäre eine Idee. Mal schauen ob ich das mit dem nachladen Automatisieren hin bekomme.

@Ruko2010
Copy link
Collaborator Author

@CachingFoX deine Idee war super! Ich hab mal ein Proof of Concept gebaut und bei meinen aktuell 58 Drafts klappt es ohne Probleme. Ich werde es mal bei de_locke testen, ob es mit knapp 6000 Drafts auch noch geht, oder ob der GC Server da überfordert wird 😃.

Meine Frage wäre jetzt, ob wir die Funktion allgemein zur Verfügung stellen wollen?

Hier der Code: https://github.com/Ruko2010/GClh/tree/feature/download_drafts
und hier ein Screencast:
kapture 2018-05-11 at 12 44 38

@Ruko2010 Ruko2010 modified the milestones: v0.9.6, v0.9.7 May 14, 2018
@Ruko2010
Copy link
Collaborator Author

Test mit 5800 Drafts: der Durchlauf stocke zwischenzeitlich kurz, ging dann aber weiter und dauerte knapp 15 Minuten 😁.

@2Abendsegler soll ich die Funktion so erweitern, dass man sie Produktiv nutzen kann? Oder kann das wieder weg? Ich persönlich sehe nicht so viel Mehrwert da drin. Zumindest nicht für den 0815 User.

@2Abendsegler
Copy link
Owner

2Abendsegler commented May 16, 2018 via email

@Ruko2010
Copy link
Collaborator Author

Klar, dass kann ich machen. Das schöne ist ja, da es in einer eigenen Branch ist (😉), kannst du es einfach über diesen Link installieren. Ich hab den aktuellen Master mit rein gemacht, dass heißt es sollte der aktuelle Stand (0.9.6) + das Feature sein:
https://github.com/Ruko2010/GClh/raw/feature/download_drafts/gc_little_helper_II.user.js

Wenn du es wieder los werden willst, einfach den aktuellen master wieder installieren 😉

@Ruko2010
Copy link
Collaborator Author

Wenn wir das feature Live stellen wollen, muss ich aber noch paar Änderungen dran machen (Buttons schöner, Fehlerhandling, test mit allen Logtypen, usw.).
Aber ich wollte erstmal wissen, ob sich der Aufwand lohnt 😉

@2Abendsegler
Copy link
Owner

Habs mir mal angesehen. Das ist schon irgendwie nett. Ich kann aber nicht wirklich beurteilen ob das noch andere gebrauchen können. Vielleicht ist auch der noch notwendige Aufwand hier zu groß um es halt live zu stellen. Aus meiner Sicht könnten wir die Fkt auch weglassen.

Es gibt ja aber noch echte Herausforderungen #663 ;) zumindest sieht das auf den ersten Blick so aus.

@Ruko2010 Ruko2010 removed this from the v0.9.7 milestone May 17, 2018
@Ruko2010
Copy link
Collaborator Author

Ich lass es mal drin, und mach es wenn mal Zeit ist. Ist ja nicht dringend 😃.

@Ruko2010
Copy link
Collaborator Author

Ruko2010 commented Sep 7, 2018

Todo:

  • Logtyp bei Archivierten Caches
  • Uhrzeit ist nicht korrekt (aktuell 2 Stunden in der Zukunft)
  • Umlaute im Logtext (Kodierung)
  • Interface verbessern (Buttons statt Links)

@Ruko2010 Ruko2010 added the risk: low Low risk of breaking other functions. Normally features that are new, unrelated to other funcitons label Oct 10, 2018
2Abendsegler added a commit that referenced this issue Oct 8, 2022
Reparatur wegen den Konflikten mit #2219
Issue #645
2Abendsegler added a commit that referenced this issue Oct 8, 2022
Reparatur wegen den Konflikten mit #2219
Issue #645
2Abendsegler added a commit that referenced this issue Oct 8, 2022
@2Abendsegler 2Abendsegler added the status: completed enhancement, improvement implemented label Oct 8, 2022
@2Abendsegler 2Abendsegler added this to the V0.11.21 milestone Oct 8, 2022
@2Abendsegler
Copy link
Owner

Das Feature ist bereits im collector, weil es Konflikte gab und ich etwas experimentieren musste. 🙄

Wer testen oder rumspielen möchte kann das aber trotzdem tun. Das Issue lasse ich noch etwas offen.

Screen05

Settings -> Draft:
Screen06

  • With the first parameter you can activate the draft download feature. A download button will then appear next to the upload button on the draft page.
  • With the second parameter you can choose whether the log dates in the drafts is reduced by one second. This is necessary if you might want to upload the drafts in the download file later, after deleting the drafts on the drafts page, as uploading with the same log date is not possible.

Merged with #2219, #2220 und #2221.

@2Abendsegler 2Abendsegler self-assigned this Oct 8, 2022
@2Abendsegler 2Abendsegler added status: completed enhancement, improvement implemented and removed status: on hold labels Oct 8, 2022
@2Abendsegler 2Abendsegler changed the title Download der eigenen Drafts [Draft] Download der eigenen Drafts. Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement prio: very low risk: low Low risk of breaking other functions. Normally features that are new, unrelated to other funcitons status: completed enhancement, improvement implemented
Projects
None yet
Development

No branches or pull requests

3 participants