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
Tech/move filestates to redux #853
Conversation
…ilestates-to-redux # Conflicts: # visualization/app/codeCharta/state/injector.service.ts # visualization/app/codeCharta/state/state.module.ts # visualization/app/codeCharta/ui/codeMap/codeMap.arrow.service.spec.ts # visualization/app/codeCharta/ui/codeMap/codeMap.arrow.service.ts # visualization/app/codeCharta/ui/codeMap/threeViewer/threeSceneService.ts # visualization/app/codeCharta/ui/fileChooser/fileChooser.component.ts
…ilestates-to-redux
@NearW are you sure to add the files (old: fileStates) to the fileSettings? Because in fact, a CCFile can contain fileSettings, which makes it recursive then. I would rather put them side by side with the fileSettings/dynamicSettings etc. on the top level. |
I know. See the first todo checkbox. :D |
…ilestates-to-redux # Conflicts: # visualization/plopfile.js
…ilestates-to-redux # Conflicts: # visualization/app/codeCharta/codeCharta.service.ts # visualization/app/codeCharta/state/metric.service.spec.ts # visualization/app/codeCharta/state/store.service.spec.ts # visualization/app/codeCharta/state/store.service.ts # visualization/app/codeCharta/state/store/appSettings/mapColors/mapColors.reducer.ts # visualization/app/codeCharta/state/store/dynamicSettings/colorRange/colorRange.reducer.ts # visualization/app/codeCharta/state/store/fileSettings/attributeTypes/attributeTypes.reducer.ts # visualization/app/codeCharta/state/store/fileSettings/attributeTypes/attributeTypes.service.ts # visualization/app/codeCharta/state/store/fileSettings/blacklist/blacklist.service.ts # visualization/app/codeCharta/state/store/fileSettings/edges/edges.service.ts # visualization/app/codeCharta/state/store/fileSettings/markedPackages/markedPackages.reducer.ts # visualization/app/codeCharta/state/store/fileSettings/markedPackages/markedPackages.service.ts # visualization/app/codeCharta/ui/codeMap/codeMap.preRender.service.spec.ts # visualization/app/codeCharta/ui/codeMap/codeMap.preRender.service.ts # visualization/app/codeCharta/ui/codeMap/codeMap.render.service.spec.ts # visualization/app/codeCharta/util/fileDownloader.ts # visualization/app/codeCharta/util/settingsMerger.spec.ts # visualization/app/codeCharta/util/settingsMerger.ts
…prevent autoFitting before map is built
…pec.ts Co-Authored-By: Alexander Schmutz <aschmutz1@web.de>
…ckages/markedPackages.service.ts Co-Authored-By: Alexander Schmutz <aschmutz1@web.de>
…pec.ts Co-Authored-By: Alexander Schmutz <aschmutz1@web.de>
…pec.ts Co-Authored-By: Alexander Schmutz <aschmutz1@web.de>
…pec.ts Co-Authored-By: Alexander Schmutz <aschmutz1@web.de>
…nto tech/move-filestates-to-redux
So I just run the visualisation for this branch, and found these two bugs: undefined mode (fixed with commit)
preselected multiple mode (not reproducable)
|
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.
After implementing the requested changes and fixing the selection of zero files in Multiple mode, I am fine with merging this PR 🎉
I like the fix! Thanks @alschmut |
Move the filestates to the redux store
Description
This PR should prevent the fileStates from being mutated unpredictably by moving it to the redux store and only mutating it with redux actions. This should make the dataflow easier and also make future performance issues (cloning a lot) easier to solve.
model
Files
that handles all reducer functions and provides the functionality of the previous fileStateHelper classNotes to reviewer
Definition of Done
A task/pull request will not be considered to be complete until all these items can be checked off.
master