Skip to content

chore(backend): remove get_proposal_payload canister endpoint#7752

Merged
yhabib merged 2 commits intomainfrom
nns1-4334/clean-up
Feb 27, 2026
Merged

chore(backend): remove get_proposal_payload canister endpoint#7752
yhabib merged 2 commits intomainfrom
nns1-4334/clean-up

Conversation

@yhabib
Copy link
Copy Markdown
Contributor

@yhabib yhabib commented Feb 27, 2026

Motivation

The frontend no longer calls get_proposal_payload after switching to selfDescribingAction in #7742. This is the first step toward removing the proposals crate entirely.

Changes

  • Removed the get_proposal_payload update endpoint from the backend canister.
  • Removed the proposals crate dependency from the backend Cargo.toml.
  • Removed GetProposalPayloadResponse type and get_proposal_payload method from the Candid interface (backend and frontend copies).
  • Removed the get_proposal_payload entry from canister export lists (production and test).
  • Removed the test-proposal-payload script and its CI step in the build workflow.

@yhabib yhabib force-pushed the nns1-4334/clean-up branch from d6729ed to 830d7e6 Compare February 27, 2026 13:54
@yhabib yhabib marked this pull request as ready for review February 27, 2026 14:28
@yhabib yhabib requested a review from a team as a code owner February 27, 2026 14:28
@yhabib yhabib added this pull request to the merge queue Feb 27, 2026
Merged via the queue into main with commit 7f7ce27 Feb 27, 2026
34 checks passed
@yhabib yhabib deleted the nns1-4334/clean-up branch February 27, 2026 15:15
github-merge-queue Bot pushed a commit that referenced this pull request Apr 7, 2026
…7753)

# Motivation

Follow-up to #7752. The `get_proposal_payload` backend endpoint is gone,
so the `proposals` crate is now unused. Cleaning up the crate and all
the surrounding infrastructure (CI workflows, scripts, declarations).

# Changes

- Removed the `rs/proposals/` crate and its workspace entry.
- Removed workspace dependencies only used by proposals (`dfn_core`,
`ic-nervous-system-root`, `ic-protobuf`, `registry-canister`).
- Removed `scripts/proposals/` (codegen scripts) and
`declarations/used_by_proposals/` (fetched candid files).
- Removed `.github/workflows/update-proposals.yml` and the proposals
codegen step from `checks.yml`.
- Removed `scripts/dfx-nns-proposal-args` and its test (CI job was
already disabled).
- Removed `IC_COMMIT_FOR_PROPOSALS` from `config.json` and proposals
references from `Dockerfile`, `scripts/update_ic_commit`, and
`BOT_APPROVED_FILES`.
- Moved `nns_governance.did` to `declarations/nns_governance/` and
updated `dfx.json` (still needed for local dev scripts).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants