-
Notifications
You must be signed in to change notification settings - Fork 234
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
Chore: Node manager refactoring #1974
Chore: Node manager refactoring #1974
Conversation
✅ Deploy Preview for specter-desktop-docs canceled.
|
@relativisticelectron could you review? |
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.
One question for the internal dictionary representation but LGTM as far as i can see.
When switching from my working configuration (on PR #1901 ) to this PR, the node details ( |
@relativisticelectron could please check against master, #1901 is a whole different beast. |
@relativisticelectron could you elaborate a bit more on "the node details (default.json) are not found and new node json are created" What is your setup exactly? How many node jsons do you have etc. Which node jsons are created? I'd need to replicate your issue basically :-) |
I think the reason is by doing this you skip the migration and that it is why you don't have @k9ert just double checking can I assume in this PR that the node-migration has happened? Or do we have to handle the case that it hasn't? |
I can't imagine how the migration gets prevented?! Persistence changing releases are some kind of special beast. At least it makes it easier, to put it into code. migration_0002.py is already in master but we haven't had a release until then. So assume:
So short: answer: You need to assume that the migration happens after this PR and we shouldn't handle any other case. But i'm not yet sure which issue arises here as you haven't touched the migration-code and it shouldn't matter as much:
|
@moneymanolis please have a look at my last three commits, here. Replacing the name with alias in the migration-script solved the ever growing node-list for me. |
…specter-desktop into node-refactoring-and-fixes
Ok, thanks. Cleaning up the migration_data.json solved it. It seems I had migrations ( 2 and 3) from previous experiments (not master though) in migration_data.json and that prevented the essential migration from happening here. |
node_manager.nodes
dictionary to the node aliases instead of the node names to avoid bugs like we had in Bug: Node details are lost #1968. This PR fixes Bug: Node details are lost #1968