Skip to content
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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

wischoepke
Copy link

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

  • I have performed a self-review of my own code

(Optional) Visual Changes

No visual changes. Just a small refactoring

This comment has been minimized.

This comment has been minimized.

@wischoepke wischoepke force-pushed the refactor/event-filter-parsing-methods branch from 2d47db8 to 02ba3c2 Compare January 23, 2025 12:28

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.
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.
@wischoepke wischoepke force-pushed the refactor/event-filter-parsing-methods branch from d9c7bbf to e72b9a5 Compare January 31, 2025 11:10

This comment has been minimized.

@wischoepke wischoepke changed the title refactor: replace specific event data parsing methods refactor: refactor event_filter Jan 31, 2025

This comment has been minimized.

* rename methode to make the name more
  specific in compare to library map methods
Copy link

The deployment to the dev cluster was successful. You can find the deployment here: https://4788.development.scrumlr.fra.ics.inovex.io
This deployment is only for testing purposes and will be deleted after 1 week.
To redeploy rerun the workflow.
DO NOT STORE IMPORTANT DATA ON THIS DEPLOYMENT

Deployed Images
  • ghcr.io/inovex/scrumlr.io/scrumlr-frontend:sha-abde6be

  • ghcr.io/inovex/scrumlr.io/scrumlr-server:sha-abde6be

Copy link

octomind-dev bot commented Jan 31, 2025

🐙 Octomind

Test Report: 14/14 successful.

description status details
About Section Visibility Test Passed ✅ click
change avatar Passed ✅ click
check Privacy Policy Passed ✅ click
check terms & conditions Passed ✅ click
close cookie banner - front page Passed ✅ click
close cookie banner - sign-in Passed ✅ click
create and delete board columns Passed ✅ click
create_and_delete_notes_and_actions_v2 Passed ✅ click
create lean coffee board Passed ✅ click
edit_notes_and_actions_v5 Passed ✅ click
get started Passed ✅ click
share_session Passed ✅ click
sign-in Passed ✅ click
test all ways to open the setup flow Passed ✅ click

commit sha: abde6be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant