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

refac(console): factor out a Store type #359

Merged
merged 1 commit into from Jul 13, 2022
Merged

refac(console): factor out a Store type #359

merged 1 commit into from Jul 13, 2022

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Jul 6, 2022

Currently, there's a bit of repeated boilerplate code for processing
updates to the stored state for tasks, resources, and async ops, such as
tracking a list of new items since the last update, and handling ID
remapping. This PR builds upon the refactor in #358, and replaces the
state::id module with a new state::store module. This module
contains all of the old code for ID remapping along with a new Store
type that implements a store of objects by ID. The Store type now
implements much of the boilerplate code that was previously repeated in
the state::tasks, state::resources, and state::async_ops modules.

Currently, there's a bit of repeated boilerplate code for processing
updates to the stored state for tasks, resources, and async ops, such as
tracking a list of new items since the last update, and handling ID
remapping. This PR builds upon the refactor in #358, and replaces the
`state::id` module with a new `state::store` module. This module
contains all of the old code for ID remapping along with a new `Store`
type that implements a store of objects by ID. The `Store` type now
implements much of the boilerplate code that was previously repeated in
the `state::tasks`, `state::resources`, and `state::async_ops` modules.
@hawkw hawkw requested a review from a team as a code owner July 6, 2022 17:35
@hawkw hawkw merged commit e4eff4d into main Jul 13, 2022
@hawkw hawkw deleted the eliza/store branch July 13, 2022 21:57
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.

None yet

1 participant