Skip to content

feat: update agent and add log_visibility support - #3782

Merged
viviveevee merged 9 commits into
masterfrom
SDK-1543-log-visibility
Jun 11, 2024
Merged

feat: update agent and add log_visibility support#3782
viviveevee merged 9 commits into
masterfrom
SDK-1543-log-visibility

Conversation

@viviveevee

@viviveevee viviveevee commented Jun 5, 2024

Copy link
Copy Markdown
Contributor

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
Comment thread e2e/tests-dfx/create.bash
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
Copy Markdown

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 thread src/dfx-core/src/error/dfx_config.rs Outdated
Comment on lines +63 to +64
#[error("Failed to get log visibility for canister '{0}': {1}")]
GetLogVisibilityFailed(String, GetCanisterConfigError),

Copy link
Copy Markdown

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
Copy Markdown

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

Comment thread src/dfx-core/src/error/dfx_config.rs Outdated
Co-authored-by: Eric Swanson <64809312+ericswanson-dfinity@users.noreply.github.com>
@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
Co-authored-by: Eric Swanson <64809312+ericswanson-dfinity@users.noreply.github.com>
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