Repository navigation
feat(nns): Added prune_some_following. - #2471
Merged
daniel-wong-dfinity-org merged 12 commits intoDec 2, 2024
Merged
Conversation
daniel-wong-dfinity-org
force-pushed
the
prune_some_following-daniel-wong
branch
from
November 7, 2024 08:10
3865b4a to
fda9f6c
Compare
daniel-wong-dfinity-org
marked this pull request as ready for review
November 7, 2024 10:15
max-dfinity
reviewed
Nov 12, 2024
max-dfinity
reviewed
Nov 12, 2024
max-dfinity
reviewed
Nov 12, 2024
max-dfinity
reviewed
Nov 12, 2024
daniel-wong-dfinity-org
force-pushed
the
range-neuron-sections-daniel-wong
branch
from
November 25, 2024 16:14
2f9023c to
ea8ec66
Compare
daniel-wong-dfinity-org
force-pushed
the
prune_some_following-daniel-wong
branch
from
November 26, 2024 11:39
96f7d9e to
3119c00
Compare
daniel-wong-dfinity-org
force-pushed
the
range-neuron-sections-daniel-wong
branch
from
November 26, 2024 16:10
ed3bcf7 to
2d428e1
Compare
daniel-wong-dfinity-org
force-pushed
the
prune_some_following-daniel-wong
branch
from
November 26, 2024 16:15
c0e4bea to
c418d39
Compare
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Nov 26, 2024
…2470) Instead, callers should use either NeruonSections::ALL or NeuronSections::NONE. It is very easy for a caller to think NeuronSections::default() is equivalent to ALL, when **_actually_**, it's equivalent to NONE. Whereas, it is basically impossible to misunderstand what ALL and NONE do. # History of This Pull Request Earlier, this PR tried to add support for sections to neuron range. But Max developed that independently/concurrently, and he was able to merge first. Therefore, the main change that I was originally trying to do has been removed from this PR. What remains is 1. Additional tests 2. `NeuronSections::ALL`, a constant that replaces `NeuronsSections::all` (an `fn`). 3. Added `NeuronSections::NONE`. In terms of interface, the difference between what I did vs. what Max merged is that I figured that there should be one range_neurons method, which should additionally take NeuronSections; whereas, he created range_neurons_sections. His interface also seems reasonable. I think my "1 range_neurons to rule them all" approach has various advantages, the main one being that it minimizes API surface area. # References [👈 Previous PR][prev] | [Next PR 👉][next] [prev]: #2385 [next]: #2471
daniel-wong-dfinity-org
enabled auto-merge
November 26, 2024 17:00
max-dfinity
reviewed
Nov 26, 2024
max-dfinity
reviewed
Nov 26, 2024
max-dfinity
reviewed
Nov 26, 2024
max-dfinity
reviewed
Nov 26, 2024
max-dfinity
self-requested a review
November 27, 2024 15:55
…I do not know how.
…e indexes did not get updated.
daniel-wong-dfinity-org
force-pushed
the
prune_some_following-daniel-wong
branch
from
December 2, 2024 18:04
7ba6744 to
e8bb0ec
Compare
jasonz-dfinity
approved these changes
Dec 2, 2024
daniel-wong-dfinity-org
removed this pull request from the merge queue due to a manual request
Dec 2, 2024
daniel-wong-dfinity-org
enabled auto-merge
December 2, 2024 19:12
max-dfinity
approved these changes
Dec 2, 2024
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Dec 3, 2024
…s. (#2392) This is something that happens in the background, and is low priority. # Background This is part of the "periodic confirmation" feature that was recently approved in proposal [132411][prop]. [prop]: https://dashboard.internetcomputer.org/proposal/132411 # References Closes https://dfinity.atlassian.net/browse/NNS1-3409. [👈 Previous PR][prev] [prev]: #2471
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.
Remove following when a neuron has not refreshed in more than 7 months.
The one exception is ManageNeuron; following on that topic is retained forever.
In a later change (soon), this will be called periodically in the background of the NNS governance canister. For now, this does not result in any externally visible behavior changes to any canisters.
References
👈 Previous PR | Next PR 👉