Skip to content

Conversation

@viviveevee
Copy link
Contributor

@viviveevee viviveevee commented Jun 5, 2024

Description

Updates ic-agent and related crates to 0.36.0 and adds support for the canister setting log_visibility.

Fixes SDK-1543

How Has This Been Tested?

Added e2e

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@viviveevee viviveevee marked this pull request as ready for review June 6, 2024 13:36
@viviveevee viviveevee requested a review from a team as a code owner June 6, 2024 13:36
assert_contains 'Reserved cycles limit: 1_000_000_000_000'
assert_contains 'Wasm memory limit: 1_073_741_824'
assert_contains 'Freezing threshold: 604_800'
assert_contains 'Log visibility: public'
Copy link

Choose a reason for hiding this comment

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

Can we update an existing test to show that dfx by default creates canister with controllers log visibility?

Comment on lines 63 to 64
#[error("Failed to get log visibility for canister '{0}': {1}")]
GetLogVisibilityFailed(String, GetCanisterConfigError),
Copy link

Choose a reason for hiding this comment

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

Suggested change
#[error("Failed to get log visibility for canister '{0}': {1}")]
GetLogVisibilityFailed(String, GetCanisterConfigError),
#[error("Failed to get log visibility for canister '{0}'")]
GetLogVisibilityFailed(String, #[source] GetCanisterConfigError),

Copy link

Choose a reason for hiding this comment

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

I see GetWasmMemoryLimitError has the same problem, but the others follow this pattern

@viviveevee viviveevee merged commit d2ebd02 into master Jun 11, 2024
@viviveevee viviveevee deleted the SDK-1543-log-visibility branch June 11, 2024 11:31
rikonor pushed a commit that referenced this pull request Feb 3, 2025
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.

1 participant