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: update agent and add log_visibility support #3782

Merged
merged 9 commits into from
Jun 11, 2024

Conversation

sesi200
Copy link
Contributor

@sesi200 sesi200 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.

@sesi200 sesi200 marked this pull request as ready for review June 6, 2024 13:36
@sesi200 sesi200 requested a review from a team as a code owner June 6, 2024 13:36
@@ -337,4 +338,5 @@ teardown() {
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
Member

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
Member

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
Member

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

Co-authored-by: Eric Swanson <64809312+ericswanson-dfinity@users.noreply.github.com>
@sesi200 sesi200 merged commit d2ebd02 into master Jun 11, 2024
285 checks passed
@sesi200 sesi200 deleted the SDK-1543-log-visibility branch June 11, 2024 11:31
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