Skip to content

feat(nns): Added setting neuron visibility.#517

Merged
daniel-wong-dfinity-org merged 3 commits into
masterfrom
set-neuron-visibility-daniel-wong
Jul 23, 2024
Merged

feat(nns): Added setting neuron visibility.#517
daniel-wong-dfinity-org merged 3 commits into
masterfrom
set-neuron-visibility-daniel-wong

Conversation

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

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

Setting the visibility of known neurons is not allowed, per the plan.

As described here.

Entrained change: Added implementations of Command::from(struct) and Operation::from(struct). If desired, this could be split off pretty easily into another PR, because these changes are in their own commit (thanks to git rebase -i).

Closes NNS1-3073.
Closes NNS1-3082.

<< Previous PR | Next PR >>

@github-actions github-actions Bot added the feat label Jul 22, 2024
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the set-neuron-visibility-daniel-wong branch from 849d347 to b5c7702 Compare July 22, 2024 13:12
Base automatically changed from known-neurons-are-always-public-daniel-wong to master July 22, 2024 13:21
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the set-neuron-visibility-daniel-wong branch from b5c7702 to 80c7c7e Compare July 22, 2024 15:53
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the set-neuron-visibility-daniel-wong branch from 647ba7c to fe1b4de Compare July 23, 2024 15:11
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the set-neuron-visibility-daniel-wong branch from fe1b4de to 10e0f73 Compare July 23, 2024 15:13
@daniel-wong-dfinity-org daniel-wong-dfinity-org marked this pull request as ready for review July 23, 2024 15:27
@daniel-wong-dfinity-org daniel-wong-dfinity-org requested a review from a team as a code owner July 23, 2024 15:27
@daniel-wong-dfinity-org daniel-wong-dfinity-org added this pull request to the merge queue Jul 23, 2024
Merged via the queue into master with commit 871efb5 Jul 23, 2024
@daniel-wong-dfinity-org daniel-wong-dfinity-org deleted the set-neuron-visibility-daniel-wong branch July 23, 2024 17:11
github-merge-queue Bot pushed a commit that referenced this pull request Jul 26, 2024
…s. (#589)

[Per the
plan](https://forum.dfinity.org/t/request-for-comments-api-changes-for-public-private-neurons/33360).

The upshot is that people can now read public neurons.

# Entrained Changes(s)

Fixed a bug from a [recent change of
mine](#488) 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](https://dfinity.atlassian.net/browse/NNS1-3077)

[<< Previous PR](#517)

[NNS1-3077]:
https://dfinity.atlassian.net/browse/NNS1-3077?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
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