-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: event_filter and do some refactorings
and additional implementations * try to simplify event_filter methods (some methods are redundant and can be removed for example filter or better updating votes per note), * move some business (board, vote etc) specific structs and methods to new folder structure (vote specific stuff to vote), * introduce technical helpers (should be only small methods) for unmarshal event data, * reduce complexity of event_filter. use a switch case structure with small blocks to call the specific methods. every method returns a status in the form of true/false if the event is successful proceeded or not, * every method have nearly the same structure now ( easier to read and more maintainable now) * encapsulate logic in business specific services (board, notes, votes etc), * try to add some new unit tests, * implement some helper methods like map and filter and add tests for them.
- Loading branch information
1 parent
015ffba
commit e72b9a5
Showing
29 changed files
with
798 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.