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(model): optimize the getting model to framework #181

Merged
merged 52 commits into from
Apr 19, 2023

Conversation

Daryl-L
Copy link
Contributor

@Daryl-L Daryl-L commented Mar 9, 2023

This PR is related to issue #160.

This PR is to optimize the getting model to framework. To achieve this, I changed the way to bind Actor. Modify the ActorProvider class decorator to save the router path and add the Param parameter decorator to inject the parameter to Stores. And I added two default decorators to be used to create cell pattern for Stores, the DataCellPattern is to compare the whole data in cells and the DataPrefixCellPattern is to compare the prefix string of data in cells.

@Keith-CY
Copy link
Member

Keith-CY commented Mar 9, 2023

Please add a brief description of what this PR is for, with that we can have a quick glimpse with git log

Besides, a reference to the feature issue could be appended in the top message for tracking

packages/models/src/actor/registry.ts Outdated Show resolved Hide resolved
packages/models/src/resource-binding/middleware.ts Outdated Show resolved Hide resolved
packages/models/src/actor/registry.ts Outdated Show resolved Hide resolved
packages/models/src/store/store.ts Outdated Show resolved Hide resolved
packages/models/src/resource-binding/middleware.ts Outdated Show resolved Hide resolved
@Daryl-L Daryl-L force-pushed the feature/optimize-getting-model branch from 9abcae2 to 530ae65 Compare March 10, 2023 05:28
@Daryl-L Daryl-L marked this pull request as draft March 14, 2023 06:03
auto-merge was automatically disabled March 14, 2023 06:03

Pull request was converted to draft

@Daryl-L Daryl-L force-pushed the feature/optimize-getting-model branch 3 times, most recently from 8475064 to 08098b0 Compare March 14, 2023 15:16
@Daryl-L Daryl-L force-pushed the feature/optimize-getting-model branch 8 times, most recently from a1b984b to 77d9a24 Compare March 22, 2023 03:11
@Daryl-L Daryl-L marked this pull request as ready for review March 22, 2023 04:48
@Daryl-L Daryl-L force-pushed the feature/optimize-getting-model branch from 847b068 to a33b5a7 Compare March 24, 2023 02:40
packages/models/src/actor/actor.ts Outdated Show resolved Hide resolved
packages/models/src/actor/actor.ts Outdated Show resolved Hide resolved
packages/models/__tests__/store/store.ts Outdated Show resolved Hide resolved
packages/models/__tests__/store/store.ts Outdated Show resolved Hide resolved
packages/models/__tests__/store/store.ts Outdated Show resolved Hide resolved
packages/models/__tests__/store/store.ts Outdated Show resolved Hide resolved
packages/models/src/actor/router.ts Show resolved Hide resolved
packages/samples/mvp-dapp/src/actors/omnilock.model.ts Outdated Show resolved Hide resolved
@Daryl-L Daryl-L force-pushed the feature/optimize-getting-model branch from 517039a to e0845d5 Compare March 26, 2023 05:35
@Daryl-L Daryl-L force-pushed the feature/optimize-getting-model branch from 588e0a7 to c6d5ab9 Compare April 17, 2023 06:18
@Keith-CY
Copy link
Member

CI failed

@Daryl-L Daryl-L force-pushed the feature/optimize-getting-model branch from c6d5ab9 to d71f796 Compare April 17, 2023 06:55
@Keith-CY Keith-CY merged commit 1dca8b3 into develop Apr 19, 2023
@Keith-CY Keith-CY deleted the feature/optimize-getting-model branch April 19, 2023 05:38
Daryl-L added a commit that referenced this pull request Apr 24, 2023
Co-authored-by: Chen Yu <keithwhisper@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants