Repository navigation
chore(nns): NeuronsFundAuditInfo migration - #1208
Merged
Merged
Conversation
anchpop
force-pushed
the
@anchpop/NeuronsFundAuditInfo-migration
branch
3 times, most recently
from
August 28, 2024 23:43
86cc19d to
b678639
Compare
anchpop
force-pushed
the
@anchpop/NeuronsFundAuditInfo-migration
branch
2 times, most recently
from
August 29, 2024 09:15
8fc91ae to
7652a5d
Compare
aterga
reviewed
Aug 29, 2024
aterga
reviewed
Aug 29, 2024
aterga
reviewed
Aug 29, 2024
aterga
reviewed
Aug 29, 2024
aterga
reviewed
Aug 29, 2024
aterga
reviewed
Aug 29, 2024
aterga
reviewed
Aug 29, 2024
aterga
approved these changes
Aug 29, 2024
aterga
left a comment
Contributor
There was a problem hiding this comment.
LGTM, with the following requests:
- Add PR description
- Test that the migration fits into one ingress
- Check that the migration is called from the right place in post_upgrade
anchpop
force-pushed
the
@anchpop/NeuronsFundAuditInfo-migration
branch
2 times, most recently
from
August 29, 2024 13:31
3744acb to
d95ccbe
Compare
Contributor
Author
|
Contributor
Thanks! Just to be sure the right code was executed, may I suggest adding a panic in the post_upgrade before you call the migration, and running the test once more? Nit: You don't need to also upgrade Root, so |
max-dfinity
reviewed
Aug 29, 2024
anchpop
force-pushed
the
@anchpop/NeuronsFundAuditInfo-migration
branch
from
August 29, 2024 17:04
d95ccbe to
729d15e
Compare
Contributor
Author
Doing this causes the test to fail as expected! |
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Aug 29, 2024
#1171) This PR adds an integration test that will be needed for an upcoming NNS Governance migration. | [Next PR](#1208) > --------- Co-authored-by: Andre Popovitch <[email protected]>
anchpop
force-pushed
the
@anchpop/NeuronsFundAuditInfo-migration
branch
from
August 30, 2024 06:24
729d15e to
23ee2b5
Compare
aterga
marked this pull request as ready for review
August 30, 2024 10:10
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Sep 3, 2024
In #1208, we added a migration to improve the naming of fields in NeuronsFundNeuronPortion, and in #1171 we added a test of that migration. They are no longer necessary, so this PR removes them [Next PR →](#870) Co-authored-by: Arshavir Ter-Gabrielyan <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
We have switched from the
hotkey_principalfield to a field namednns_neuron_controllerin the typeNeuronsFundNeuronPortion. This is because the typenns_neuron_controllermore clearly explains the semantics of the type thanhotkey_principal. However, already-existingProposalDatas indirectly containNeuronsFundNeuronPortions which haveNonefor the new field.Solution
I've implemented a migration for the
NeuronsFundNeuronPortions that are transitively stored inProposalDatato use this new field. The migration lives inpre_upgradeand iterates over the storedProposalDatas, and sets theirneurons_fund_datafield to a value that contains the migrated state.< Previous PR |