-
Notifications
You must be signed in to change notification settings - Fork 377
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
refactor: Move indexer to client and add file persistence layer #2348
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks the scenario of initiating the create dialog flow from the from in a BeginDialog action.
Hi, @a-b-r-o-w-n I have reverted some code about create dialog, and it works now. |
@a-b-r-o-w-n @boydc2014 @cwhitten the coverage has increased now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
Offline talked with Leilei, to clarify that ideally we don't want actions and reducers to care about or even know about the persistence layer exists. We want to make it totally transparent, so that upper layer will perform on a stable, fast local store. Since we managed the middle-ware chaining, so the perfect place to do this, is have a middle ware injected after the reducer computed the store update and notify persistence layer. |
@a-b-r-o-w-n @cwhitten @boydc2014 I have changed the notification mechanism for persistence layer. I wrapped the reducer, so the layer can get the action, stale state and the new state. I can get the processed file content from state and use action type and action.payload.id to find which file is updated. The reducer itself doesn't known if the persistence layer exists. |
…osoft#2348) * add file persistence layer * fix some confilct * support lu publish * add locale for create * update the undo/redo * fix unit test * handle error * update the resover * add args * remove some notes * fix create dialog from form * fix find wrong root dialog * add error handler * add locale when search the common lg file * move file persistence from action to reducer * fix some conflicts * remove file persisten midleware * update the navigate * fix some conflicts * change type->kind * fix conflict * add unit test for persistence layer * add some unit test * add unit tests for lu publish status * add unit test for file reloatedreducer * error handling * wrap the reducer * refine the persistence * fix lint * fix some spelling mistakes Co-authored-by: Andy Brown <asbrown002@gmail.com> Co-authored-by: zeye <2295905420@qq.com> Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Description
move indexer from server to client
add file persistence layer to do data synchronizing between client and server
![image](https://user-images.githubusercontent.com/39758135/78043264-b879a780-73a5-11ea-9a07-11cec6a4c762.png)
Task Item
refs #2103
refs #2247
Screenshots