Skip to content

chore(nns): Remove neurons fund data migration - #1286

Merged
aterga merged 2 commits into
masterfrom
@anchpop/remove-migration-code
Sep 3, 2024
Merged

aterga merged 2 commits into
masterfrom
@anchpop/remove-migration-code

Conversation

@anchpop

@anchpop anchpop commented Sep 3, 2024 •

Copy link
Copy Markdown
Contributor

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 →

@anchpop
anchpop requested a review from a team as a code owner September 3, 2024 08:01
@anchpop
anchpop marked this pull request as draft September 3, 2024 08:01
@github-actions github-actions Bot added the chore label Sep 3, 2024
@aterga
aterga marked this pull request as ready for review September 3, 2024 08:36
@aterga
aterga enabled auto-merge September 3, 2024 08:37
@aterga
aterga added this pull request to the merge queue Sep 3, 2024
Merged via the queue into master with commit f54741d Sep 3, 2024
@aterga
aterga deleted the @anchpop/remove-migration-code branch September 3, 2024 09:46
github-merge-queue Bot pushed a commit that referenced this pull request Sep 4, 2024
## 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<String>). 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](#1286)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants