Skip to content

Save & restore OrchestratorViewModel's data in case of Activity kill & restore#709

Merged
BurningAXE merged 3 commits into
release/2024.1.0from
MS-437-Gavi-Ghana-Well-Labeled-Data-Set-GG-WLDS-Collection-Investigation
May 8, 2024
Merged

Save & restore OrchestratorViewModel's data in case of Activity kill & restore#709
BurningAXE merged 3 commits into
release/2024.1.0from
MS-437-Gavi-Ghana-Well-Labeled-Data-Set-GG-WLDS-Collection-Investigation

Conversation

@BurningAXE
Copy link
Copy Markdown
Contributor

The initial problem was this crash that was caused by the Path class not being Serializable.
However, after fixing that I found out that when OrchestratorActivity is killed, the VM is killed, too. In the VM's onCleared() we save the steps but we never load them when Activity/Fragment is restored.
Fixing the above uncovered that we also need to restore the modalities, too.
Fixing the above uncovered that ActionRequest is not properly deserialized because it lacks subtype info.

IMO, we can improve the VM saving & restoration by unifying the current 3 separate calls. However, I did not want to do too much refactoring at this point in the release. I'll create a ticket to consider and fix this in the next release.

@BurningAXE BurningAXE requested review from a team, TristramN, alex-vt, alexandr-simprints, luhmirin-s, meladRaouf and ybourgery and removed request for a team May 8, 2024 11:35
@cla-bot cla-bot Bot added the ... label May 8, 2024
@BurningAXE BurningAXE force-pushed the MS-437-Gavi-Ghana-Well-Labeled-Data-Set-GG-WLDS-Collection-Investigation branch from d0aad66 to c0d196d Compare May 8, 2024 12:53
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2024

@BurningAXE BurningAXE merged commit 961dd39 into release/2024.1.0 May 8, 2024
@luhmirin-s luhmirin-s deleted the MS-437-Gavi-Ghana-Well-Labeled-Data-Set-GG-WLDS-Collection-Investigation branch May 9, 2024 07:28
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.

2 participants