Skip to content

CB-3235-Send-event-about-session-expire#1576

Merged
alexander-skoblikov merged 13 commits intoCB-2773-TE-event-pulling-send-session-status-as-an-eventfrom
CB-3235-Send-event-about-session-expire
Apr 7, 2023
Merged

CB-3235-Send-event-about-session-expire#1576
alexander-skoblikov merged 13 commits intoCB-2773-TE-event-pulling-send-session-status-as-an-eventfrom
CB-3235-Send-event-about-session-expire

Conversation

@EmYar
Copy link
Copy Markdown
Contributor

@EmYar EmYar commented Mar 29, 2023

No description provided.

@EmYar EmYar changed the base branch from devel to CB-2773-TE-event-pulling-send-session-status-as-an-event March 30, 2023 09:32
var sessionExpiredEvent = new WSSessionExpiredEvent();
for (CBWebSessionEventHandler sessionEventHandler : sessionEventHandlers) {
try {
sessionEventHandler.handeWebSessionEvent(sessionExpiredEvent);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why we cant use addSessionEvent here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because it is a system event.
It shouldn't be filtered. We want to send it right before the session is closed, within one lock. It is also not required to write an error to the session log, because it is planned to be closed - if there is a problem, it will be written to the general application log

EmYar and others added 11 commits April 3, 2023 15:58
# Conflicts:
#	server/bundles/io.cloudbeaver.server/schema/service.events.graphqls
Fixes WSSessionExpiredEvent description in comment
Moves WSSocketConnectedEvent to session package
Implements BaseWebSession#sendSystemEvent
Implements a WSSessionStateEvent and a job to send it periodically
Fixes code style issues
* CB-2997 jetty server bundle

* CB-2997 remove jetty dependencies
@alexander-skoblikov alexander-skoblikov merged commit 7b97089 into CB-2773-TE-event-pulling-send-session-status-as-an-event Apr 7, 2023
alexander-skoblikov added a commit that referenced this pull request Apr 19, 2023
* CB-3235-Send-event-about-session-expire (#1576)

* CB-3235 Send event about session expire

* CB-3235 Send event about session expire

Fixes WSSessionExpiredEvent description in comment

* CB-3235 Send event about session expire

Moves WSSocketConnectedEvent to session package

* CB-3235 Send event about session expire

Implements BaseWebSession#sendSystemEvent

* CB-3235 Send event about session expire

Implements a WSSessionStateEvent and a job to send it periodically

* CB-3235 Send event about session expire

Fixes code style issues

* CB-2997 jetty server bundle (#1587)

* CB-2997 jetty server bundle

* CB-2997 remove jetty dependencies

* CB-3235 review fixes

---------

Co-authored-by: Ainur <59531286+yagudin10@users.noreply.github.com>
Co-authored-by: Aleksandr Skoblikov <aleksandr.skoblikov@dbeaver.com>

* CB-2773 handle session expire and session state events

* CB-2773 fix

* CB-2773 subscribe to topic, handle session state event

---------

Co-authored-by: Yaroslav Emelyanov <iaroslav.emelianov@dbeaver.com>
Co-authored-by: Ainur <59531286+yagudin10@users.noreply.github.com>
Co-authored-by: Tatiana Fokina <tatiana.fokina@dbeaver.com>
Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
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.

3 participants