Skip to content

fix(accounts): rm event fields from docstrings - #741

Merged
brozorec merged 1 commit into
mainfrom
fix/sa-context-rules-events
Jun 3, 2026
Merged

brozorec merged 1 commit into
mainfrom
fix/sa-context-rules-events

Conversation

@brozorec

@brozorec brozorec commented Jun 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Documentation
    • Updated event documentation for context rule update functions to clarify the data payload structure emitted during updates.

@coderabbitai

coderabbitai Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0dbd5113-8ea5-4cc1-bddf-75aca5c9e5db

📥 Commits

Reviewing files that changed from the base of the PR and between c5632d9 and 53e75a9.

📒 Files selected for processing (2)
  • packages/accounts/src/smart_account/mod.rs
  • packages/accounts/src/smart_account/storage.rs

Walkthrough

Documentation for the context_rule_meta_updated event is updated in both the public API interface and storage implementation to clarify the event data payload. The previously documented context_type: ContextRuleType field is removed from the event data for update_context_rule_name and update_context_rule_valid_until, leaving only name and valid_until fields.

Changes

Event Documentation for Context Rule Metadata Updates

Layer / File(s) Summary
Event documentation for context rule metadata updates
packages/accounts/src/smart_account/mod.rs, packages/accounts/src/smart_account/storage.rs
Documentation for the context_rule_meta_updated event payload in both update_context_rule_name and update_context_rule_valid_until is updated to remove context_type: ContextRuleType, reflecting a narrower data shape containing only name: String and valid_until: Option<u32>.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A doc update hops through the code,
Removing fields that lightened the load,
Context_type takes a bow,
Name and valid_until stand tall now,
Events flow cleaner, simpler, and true.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning No pull request description was provided by the author. The repository template requires context about changes and a PR checklist. Add a description explaining why the event field documentation was updated and complete the PR checklist items as applicable.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: removing event fields from documentation strings in the accounts package.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/sa-context-rules-events

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Jun 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.61%. Comparing base (c5632d9) to head (53e75a9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #741   +/-   ##
=======================================
  Coverage   96.61%   96.61%           
=======================================
  Files          69       69           
  Lines        7351     7351           
=======================================
  Hits         7102     7102           
  Misses        249      249           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@brozorec
brozorec merged commit 76ab671 into main Jun 3, 2026
8 checks passed
@brozorec
brozorec deleted the fix/sa-context-rules-events branch June 3, 2026 14:05
@coderabbitai coderabbitai Bot mentioned this pull request Jun 26, 2026
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