Skip to content

refactor(nervous_system): Remove most usages of hotkey_principal - #870

Merged
anchpop merged 2 commits into
masterfrom
@anchpop/NNS1-3251
Sep 4, 2024
Merged

anchpop merged 2 commits into
masterfrom
@anchpop/NNS1-3251

Conversation

@anchpop

@anchpop anchpop commented Aug 9, 2024 •

Copy link
Copy Markdown
Contributor

Problem

We deprecated all fields named hotkey_principal, but still set them (even in cases where the field is optional)

Solution

Remove it when possible. However It is difficult to remove occurrences of hotkey_principal fields with type String (rather than `Option). For these cases, we don’t need to fully remove the field, let’s just set it to String::new() at all sites where it is set, and make sure we don’t use that value anywhere.

← Previous PR

Comment thread rs/nns/governance/tests/governance.rs Resolved
Comment thread rs/sns/audit/src/lib.rs Resolved
Comment thread rs/sns/swap/src/types.rs Resolved
Comment thread rs/sns/swap/src/types.rs Resolved
Comment thread rs/sns/swap/src/types.rs Resolved
@anchpop
anchpop force-pushed the @anchpop/NNS1-3251 branch 8 times, most recently from 2ca212c to 1dea3b8 Compare August 16, 2024 21:46
@max-dfinity
max-dfinity self-requested a review August 19, 2024 16:04
@anchpop
anchpop force-pushed the @anchpop/NNS1-3251 branch from 1dea3b8 to 2994179 Compare August 19, 2024 17:29
@anchpop
anchpop requested a review from a team as a code owner August 19, 2024 17:29
@github-actions github-actions Bot added the @idx label Aug 19, 2024
@anchpop
anchpop force-pushed the @anchpop/NNS1-3251 branch from 2994179 to a254df2 Compare August 19, 2024 18:36
@anchpop
anchpop requested a review from a team as a code owner August 19, 2024 18:36
@anchpop
anchpop force-pushed the @anchpop/NNS1-3251 branch 2 times, most recently from fc1f590 to fe7159a Compare August 22, 2024 03:16
@anchpop
anchpop force-pushed the @anchpop/NNS1-3251 branch 3 times, most recently from 060890e to 2060ba7 Compare August 27, 2024 18:41
github-merge-queue Bot pushed a commit that referenced this pull request Aug 27, 2024
## Problem

We deprecated the `NeuronParameters` struct and the field it was used
in, but still have code in SNS governance for handling that field. It
can safely be removed now that swap is upgraded.

## Solution

Remove support for it in SNS Governance

[Previous PR](#870)
@anchpop
anchpop force-pushed the @anchpop/NNS1-3251 branch 7 times, most recently from aafec1f to 3b9849f Compare September 3, 2024 08:06
@aterga
aterga changed the base branch from master to @anchpop/remove-migration-code September 3, 2024 08:38
Comment thread rs/sns/swap/tests/swap.rs Resolved
Comment thread rs/sns/swap/src/types.rs Resolved
Comment thread rs/sns/swap/src/swap.rs Resolved
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]>
Base automatically changed from @anchpop/remove-migration-code to master September 3, 2024 09:46
@anchpop
anchpop force-pushed the @anchpop/NNS1-3251 branch 7 times, most recently from ffa08c3 to bf142cd Compare September 3, 2024 15:41
@anchpop
anchpop added this pull request to the merge queue Sep 4, 2024
Merged via the queue into master with commit cee5114 Sep 4, 2024
@anchpop
anchpop deleted the @anchpop/NNS1-3251 branch September 4, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants