Skip to content

feat(nns): Added include_public_neurons_in_full_neurons to ListNeurons.#589

Merged
daniel-wong-dfinity-org merged 7 commits into
masterfrom
include_public_neurons_in_full_neurons-daniel-wong
Jul 26, 2024
Merged

feat(nns): Added include_public_neurons_in_full_neurons to ListNeurons.#589
daniel-wong-dfinity-org merged 7 commits into
masterfrom
include_public_neurons_in_full_neurons-daniel-wong

Conversation

@daniel-wong-dfinity-org
Copy link
Copy Markdown
Contributor

@daniel-wong-dfinity-org daniel-wong-dfinity-org commented Jul 24, 2024

Per the plan.

The upshot is that people can now read public neurons.

Entrained Changes(s)

Fixed a bug from a recent change of mine where neuron normalization was not applied 😬

Renamed list_neurons_by_principal to list_neurons in order to exactly match the Candid method name. Also, changed its &PrincipalId parameter to be of type PrincipalId, since that type is Copy.

Overhauled the implementation of (what is now called) Governance::list_neurons. This is the main thing I was touching anyway, but the change could have been smaller.

Added NeuronStore::can_principal_vote_on_proposals_that_target_neuron.

Refactored NeuronStore::get_full_neuron to use can_principal_vote_on_proposals_that_target_neuron.

References

Closes NNS1-3077

<< Previous PR

@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the include_public_neurons_in_full_neurons-daniel-wong branch 2 times, most recently from d58d7ac to a8b976f Compare July 24, 2024 16:55
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the include_public_neurons_in_full_neurons-daniel-wong branch from d7d40cf to 8507608 Compare July 24, 2024 17:44
@daniel-wong-dfinity-org daniel-wong-dfinity-org changed the title Added include_public_neurons_in_full_neurons to ListNeurons. feat(nns): Added include_public_neurons_in_full_neurons to ListNeurons. Jul 25, 2024
@github-actions github-actions Bot added the feat label Jul 25, 2024
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the include_public_neurons_in_full_neurons-daniel-wong branch 2 times, most recently from 14eb4ee to 5ac301e Compare July 25, 2024 12:11
@daniel-wong-dfinity-org daniel-wong-dfinity-org marked this pull request as ready for review July 25, 2024 14:02
@daniel-wong-dfinity-org daniel-wong-dfinity-org requested review from a team as code owners July 25, 2024 14:02
Comment thread rs/nns/governance/src/neuron_store.rs
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the include_public_neurons_in_full_neurons-daniel-wong branch from 0ef28dc to cefcf75 Compare July 26, 2024 15:41
@daniel-wong-dfinity-org daniel-wong-dfinity-org added this pull request to the merge queue Jul 26, 2024
Merged via the queue into master with commit 448c85c Jul 26, 2024
@daniel-wong-dfinity-org daniel-wong-dfinity-org deleted the include_public_neurons_in_full_neurons-daniel-wong branch July 26, 2024 17:26
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.

6 participants