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

MS-42 Session Event repository #558

Merged
merged 8 commits into from
Feb 13, 2024
Merged

MS-42 Session Event repository #558

merged 8 commits into from
Feb 13, 2024

Conversation

luhmirin-s
Copy link
Contributor

This is a preparation refactoring to clear the event's data structure and DB APIs before introducing a new set of events. Main changes:

  • Introduces event scope types. All events and scopes currently fall under the "SESSION" type, but that will change soon.
  • sessionId in events is replaced with a more explicit scopeId. This is because there will be events outside of a session. "Session ID" is now a subset of the more generic "Scope ID".
  • Since the session scope type will remain the most important, business logic related to storing/updating "current session" has been moved to a separate SessionEventRepository.
  • At the same time, more generic operations in EventRepository have been pruned a bit.
  • Also there are some minor fixes in DB setup - fixed validator package declarations, removed unused DAO methods, removed interfaces for classes that are always internal, etc.

This may look like a lot of changes, but it is mostly due to moving some files, new database schema and tests.

@luhmirin-s luhmirin-s requested review from a team, BurningAXE, alex-vt, meladRaouf, TristramN, ybourgery and alexandr-simprints and removed request for a team February 12, 2024 15:18
@cla-bot cla-bot bot added the ... label Feb 12, 2024
Copy link
Contributor

@alexandr-simprints alexandr-simprints left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. Please address a couple of minor notes. Feel free to resolve if not relevant

Copy link

sonarcloud bot commented Feb 13, 2024

@luhmirin-s luhmirin-s merged commit 9389a67 into main Feb 13, 2024
11 checks passed
@luhmirin-s luhmirin-s deleted the feature/MS-42-session-repo branch February 13, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants