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

fix: support serialization of Vaadin scoped beans (#20394) (CP: 24.4) #20430

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

mcollovati
Copy link
Collaborator

Makes sure that VaadinSession and UI thread locals are available during both serialization and deserialization, to allow other libraries to perform inspection and injection of Vaadin scoped beans.

Also refactors VaadinRouteScope to be independent from VaadinService when fetching RouteScopeOwner annotation for the bean, and replaces VaadinSession.unlock() calls with direct access to the lock instance to prevent unwanted push during bean lookup.

Fixes #19967
Part of vaadin/kubernetes-kit#140

Makes sure that VaadinSession and UI thread locals are available during
both serialization and deserialization, to allow other libraries to
perform inspection and injection of Vaadin scoped beans.

Also refactors VaadinRouteScope to be independent from VaadinService
when fetching RouteScopeOwner annotation for the bean, and replaces
VaadinSession.unlock() calls with direct access to the lock instance
to prevent unwanted push during bean lookup.

Fixes #19967
Part of vaadin/kubernetes-kit#140

Co-authored-by: Mikhail Shabarov <[email protected]>
Copy link

github-actions bot commented Nov 7, 2024

Test Results

1 114 files  ±0  1 114 suites  ±0   1h 24m 36s ⏱️ + 5m 28s
7 085 tests +2  7 036 ✅ +2  49 💤 ±0  0 ❌ ±0 
7 430 runs  +3  7 369 ✅ +1  61 💤 +2  0 ❌ ±0 

Results for commit ef2c148. ± Comparison against base commit 781e422.

Copy link

sonarcloud bot commented Nov 7, 2024

@mshabarov mshabarov merged commit 9ae1e5f into 24.4 Nov 12, 2024
26 checks passed
@mshabarov mshabarov deleted the cherry/cherrypick-20394-to-24.4 branch November 12, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants