Comments (5)
If you delete commanders in the settings you're telling EDD that you don't want to see it ever again, hence the events linked to it now are linked to nothing and thus only visible in the hidden log. (I was wrong on that, they are still there but aren't shown anywhere, not even in the hidden log.) The events are still in the DB and thus rereading has no effect, if something shows up in the hidden log it's either because you moved it there or a broken journal was imported. No matter how hard I try rereading journals put nothing in the hidden log, no matter if the commander is soft deleted on the settings panel or hard deleted in the DB.
Not a bug.
from eddiscovery.
How to recreate cmdr without delete db? Since this db also contains general UI settings
from eddiscovery.
If I recall correctly, the delete is a soft delete (i.e. setting Deleted=true
). Deleting a commander shouldn't immediately move all history entries from that commander ID to the hidden logs commander ID, and unless and until you perform other actions undeleting them should only require setting Deleted=0 on that commander in the database.
"Reset all history to current commander" will have moved all history to the current commander, regardless of what commander it was linked to beforehand.
Fortunately resetting the commander ID on the journal entries does not reset the commander ID on the travel log units (i.e. references to journal files). This does present a potential lifeline:
- Close EDDiscovery
- Take a backup of the database
- Open the database in e.g. DB Browser for SQLite
- Set the Commander Deleted to false
- Update the CommanderId on the journal entries back to the CommanderId on the travel log units
Or you could take the nuclear approach, and:
- Close EDDiscovery
- Take a backup of the database
- Open the database in e.g. DB Browser for SQLite
- Truncate both the Commanders and TravelLogUnit tables
- Re-open EDDiscovery
- Re-read all of your journals
edit: though looking at your other issues, the fact that you're expecting to be able to fetch logs from EDSM suggests that you don't have those journals, and you have more to clean up than just the journals in the database.
from eddiscovery.
If I recall correctly, the delete is a soft delete (i.e. setting
Deleted=true
). Deleting a commander shouldn't immediately move all history entries from that commander ID to the hidden logs commander ID, and unless and until you perform other actions undeleting them should only require setting Deleted=0 on that commander in the database.
This seems to be a rare case of you misunderstanding the issue.
This user wiped his EDSM data (on the website), wondered why EDD didn't resync every single event (how should EDD know EDSM was wiped?), then deleted the commander in the settings panel (which only "hides" the commander) then got angry that EDD didn't reread his journals (because of course they are still in the DB) finally nuked his DB (because in the version of the wiki at this time "delete commanders & journals" wasn't mentioned - only "delete journals" was - which doesn't seem to be enough to even open the safe mode menu for this user (if he even read that thing)), rebuilt the user DB, saw that in EDD everything was alright but on EDSM it wasn't, got angry again and blamed EDD for either an EDSM error or his impatience to let EDD finish syncing to EDSM. Unfriendly issue spam instead of a civil help request.
There never was an EDD error, nor was there a request for undeleting a deleted commander. But yes: It's just "Deleted = 1" in the Commanders
table, so it's easy to "restore" it by editing that field in the DB.
from eddiscovery.
Not that there isn't an issue involved: EDD gracefully crashes when deleting the currently active commander, but that wasn't even mentioned in any of the issues.
from eddiscovery.
Related Issues (20)
- An unhandled fatal exception has occurred. HOT 1
- fatal exception after update to 17.0.2 HOT 4
- Enhancement: Market Data panel and Demand information. HOT 4
- Remember user data location HOT 5
- crash in search tab HOT 2
- Out of Memory Exception Adding system to Exploration HOT 7
- [Enhancement Request] Custom grouping for saved bookmarks. HOT 1
- Unexpected crash on start HOT 2
- Feature request: Make Voice Synthesis options saveable per voice and not global HOT 4
- Sync with EDSM after clearing all data HOT 2
- Ramdom jumps when loading to EDSM HOT 4
- Gravity doesn't show properly on organic scans menu HOT 2
- System information not updated after FSD Jump, Scan values tab still show the previous system values HOT 12
- An unhandled fatal exception has occured HOT 2
- Documents text file spam HOT 7
- Error "loadlib failed with error 126" HOT 11
- Crash on scan grid order by class HOT 8
- Crashing when opening 3D map (Due to very old Graphics Card not supporting OpenGL 4.6) HOT 13
- History Refresh Error: System.Collections.Generic.KeyNotFoundException HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eddiscovery.