MS-1224 closing session on update#1436
Conversation
26e397d to
f1c82f2
Compare
| timeHelper.ensureTrustworthiness() | ||
| if (Intent.ACTION_BOOT_COMPLETED == intent.action) { | ||
| if (Intent.ACTION_BOOT_COMPLETED == intent.action || Intent.ACTION_MY_PACKAGE_REPLACED == intent.action) { | ||
| closeSessionUseCase() |
There was a problem hiding this comment.
I think we should directly tie closing the session with resetting caches. Current approach is very cumbersome and prone to breaking. That's probably a rather big change for a hotfix, though.
There was a problem hiding this comment.
Yeah, I have moved this logic into a dedicated receiver in the orchestration module.
There was a problem hiding this comment.
Shall we create a ticket to refactor this in main? I imagine the more robust version like:
- Have one receiver that listens for package update and closes the session
- On session close broadcast "Session closed"
- Have another receiver for "Session closed" that clears the cache
This will tie things in a way that does not depend on workflows and VMs and would make it kind of more explicit.
There was a problem hiding this comment.
Made a ticket for future, this seems a bit more than a hotfix: https://simprints.atlassian.net/browse/MS-1232
There was a problem hiding this comment.
For sure not in a hotfix!
f1c82f2 to
e071976
Compare
e071976 to
bd0ffaf
Compare
|
@BurningAXE I have moved the fix to 2025.3.0 release branch |
|



JIRA ticket
Will be released in: 2025.3.0
Root cause analysis (for bugfixes only)
First known affected version: 2025.3.0
Notable changes
Testing guidance
Additional work checklist