Skip to content

Conversation

daniel-wong-dfinity-org
Copy link
Contributor

@daniel-wong-dfinity-org daniel-wong-dfinity-org commented Jan 22, 2025

The idea here is very much the same as the previous PR in this thread/series. Therefore, please see the description of the aforementioned PR for an overview, and details.

One difference here is that we only deleted the response type, not the request type. In this case, deleting the request type is not possible, because it is used (indirectly) by Governance (via Proposal). This is an unusual situation; most request types do not have this property.

…le to delete ManageNeuron though, because it is used by ProposalData, which is DEFINITELY stored in stable memory.
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the delete-manage-neuron-from-governance-proto-daniel-wong branch from 66a5042 to 4af389d Compare January 22, 2025 19:02
Copy link
Contributor Author

@daniel-wong-dfinity-org daniel-wong-dfinity-org left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff reading guide.

(Remarks from the previous PR's reading guide also apply here.)

@daniel-wong-dfinity-org daniel-wong-dfinity-org marked this pull request as ready for review January 22, 2025 19:37
@daniel-wong-dfinity-org daniel-wong-dfinity-org requested a review from a team as a code owner January 22, 2025 19:37
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this pull request affects the behavior of any canister owned by
the Governance team, remember to update the corresponding
unreleased_changes.md file(s).

To acknowldge this reminder (and unblock the PR), dismiss this
code review by going to the bottom of the pull request page, and
supply one of the following reasons:

  1. Done.

  2. No canister behavior changes.

@daniel-wong-dfinity-org daniel-wong-dfinity-org dismissed github-actions[bot]’s stale review January 22, 2025 19:38

This is a refactor; hence, no canister behavior changes.

@daniel-wong-dfinity-org daniel-wong-dfinity-org added this pull request to the merge queue Jan 22, 2025
Merged via the queue into master with commit 9220172 Jan 22, 2025
27 checks passed
@daniel-wong-dfinity-org daniel-wong-dfinity-org deleted the delete-manage-neuron-from-governance-proto-daniel-wong branch January 22, 2025 20:21
github-merge-queue bot pushed a commit that referenced this pull request Jan 29, 2025
Recently, we deleted a bunch of request and response types from NNS
governance.proto. Although the types themselves are not necessary, the
comments contained valuable information, which could (and should) have
been copied to governance.did. This PR corrects that oversight.

# References

Types deleted in recent PRs:

* [ListNeurons]
* [ManageNeuronResponse]
* [NeuronInfo]

[ListNeurons]: #3546
[ManageNeuronResponse]: #3573
[NeuronInfo]: #3639
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.

2 participants