This repository was archived by the owner on Mar 5, 2026. It is now read-only.
refactor: update API to use 'scope' instead of 'group_id' for state management#14
Merged
andersonleal merged 1 commit intomainfrom Feb 16, 2026
Merged
refactor: update API to use 'scope' instead of 'group_id' for state management#14andersonleal merged 1 commit intomainfrom
andersonleal merged 1 commit intomainfrom
Conversation
…anagement Changed the API request body and related function parameters to replace 'group_id' with 'scope' for consistency. Updated relevant functions in Rust to reflect this change, ensuring proper handling of state group items and configurations.
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThis pull request systematically renames state management parameters from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
Merged
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Aligns the iii-console state API with the iii engine's state module by replacing
group_id/item_idwithscope/keyacross the frontend and Rust bridge.Type of Change
Changes
Frontend (
packages/console-frontend/src/api/state/state.ts):fetchStateItems: Request body now sendsscopeinstead ofgroup_idRust bridge (
packages/console-rust/src/bridge/functions.rs):handle_state_group_items: Extracts and forwardsscopeinstead ofgroup_idhandle_state_item_set: State input usesscope/keyinstead ofgroup_id/item_idhandle_state_item_delete: Same parameter renamehandle_flow_config_get: Flow config state calls usescope/keyhandle_flow_config_save: Same parameter renameCargo.lock: Version bump (0.1.5 → 0.1.7)
Checklist
state::list,state::set,state::delete,state::get)Additional Context
The iii engine's state module expects
scopeandkeyparameters. The console was previously using the legacygroup_idanditem_idnames, causing state operations to fail. This refactor ensures compatibility with the current engine API.Summary by CodeRabbit