mjftw / react-bitbucket-pull-request-board

React and Redux based project to show the status and activity of all your Bitbucket pull requests in an info board.
MIT License
1 stars 1 forks source link

Refactor data structure to reduce repetition #20

Open mjftw opened 4 years ago

mjftw commented 4 years ago

Some places in the state tree hold duplicate information. E.g. The list of all workspaces has duplicate data with the selected workspace.

This kind of repetition should be reduced by adding an ID to each item in the "all" lists, and storing only the ID for the selected item.

Further duplication may be possible with the pull request data. E.g. duplicate repo data, duplicate user data etc.