-
Notifications
You must be signed in to change notification settings - Fork 60
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: refactor event_filter #4788
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2d47db8
to
02ba3c2
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
with a smaller generic solution to decrease event filter complexity * remove unused parameter.
unmarshaller
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.
d9c7bbf
to
e72b9a5
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
* rename methode to make the name more specific in compare to library map methods
The deployment to the dev cluster was successful. You can find the deployment here: https://4788.development.scrumlr.fra.ics.inovex.io Deployed Images
|
🐙 OctomindTest Report: 14/14 successful.
commit sha: abde6be |
Description
Event filter parsing methods refactored into a more generic solution. A small step to reduce the complexity of the event filter and improve testability.
Checklist
(Optional) Visual Changes
No visual changes. Just a small refactoring