Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ic-admin): Show the proposal URL for --dry-run #3596

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

sasa-tomic
Copy link
Member

@sasa-tomic sasa-tomic commented Jan 24, 2025

  • Extend print_proposal to include URL information in its output.
  • Adjust related code to align with signature change.

- Modified function signature of `parse_proposal_url` to accept a reference to `Option<Url>` instead of owning it, enhancing efficiency.
- Updated all call sites of `parse_proposal_url` within `impl_proposal_metadata`, `propose_to_create_service_nervous_system`, `propose_to_add_or_remove_node_provider` to pass references.
- Extended `print_proposal` function to include URL output, both in JSON serialization and direct printing.
@sasa-tomic sasa-tomic self-assigned this Jan 24, 2025
@sasa-tomic sasa-tomic requested a review from a team as a code owner January 24, 2025 11:25
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.

@sasa-tomic sasa-tomic changed the title refactor: modify URL parsing to use references feat(ic-admin): Show the proposal URL for --dry-run Jan 24, 2025
@github-actions github-actions bot added feat and removed refactor labels Jan 24, 2025
@sasa-tomic sasa-tomic dismissed github-actions[bot]’s stale review January 24, 2025 11:26

No canister behavior changes.

@sasa-tomic sasa-tomic added this pull request to the merge queue Jan 29, 2025
Merged via the queue into master with commit b68e6a2 Jan 29, 2025
30 checks passed
@sasa-tomic sasa-tomic deleted the refactor/parse-proposal-url-usage branch January 29, 2025 12:18
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.

3 participants