An application to help writers keep track of all aspects of their stories without getting in the way of the creative process and offering deep insights into potential plot holes.
Character list does not update when a character is deleted
🔬 Minimal Reproduction
Create a project
Create a Character
Delete the Character
Expected Result
Character should be removed from the character list
Actual Result
The character is still listed
Relevant log output
com.soyle.stories.usecase.character.CharacterDoesNotExist: Entity was not found 4e373a10-3f64-4b4b-8c55-51b5f00070bb
at com.soyle.stories.usecase.character.CharacterRepository$DefaultImpls.getCharacterOrError(CharacterRepository.kt:14)
at com.soyle.stories.repositories.CharacterRepositoryImpl.getCharacterOrError(CharacterRepositoryImpl.kt:7)
at com.soyle.stories.usecase.character.removeCharacterFromStory.RemoveCharacterFromStoryUseCase.invoke(RemoveCharacterFromStoryUseCase.kt:22)
at com.soyle.stories.character.removeCharacterFromStory.RemoveCharacterFromStoryControllerImpl$confirmRemoveCharacter$1.invokeSuspend(RemoveCharacterFromStoryControllerImpl.kt:24)
at com.soyle.stories.character.removeCharacterFromStory.RemoveCharacterFromStoryControllerImpl$confirmRemoveCharacter$1.invoke(RemoveCharacterFromStoryControllerImpl.kt)
at com.soyle.stories.character.removeCharacterFromStory.RemoveCharacterFromStoryControllerImpl$confirmRemoveCharacter$1.invoke(RemoveCharacterFromStoryControllerImpl.kt)
at com.soyle.stories.common.AsyncThreadTransformer$async$1$1.invokeSuspend(ThreadTransformerImpl.kt:17)
at com.soyle.stories.common.AsyncThreadTransformer$async$1$1.invoke(ThreadTransformerImpl.kt)
at com.soyle.stories.common.AsyncThreadTransformer$async$1$1.invoke(ThreadTransformerImpl.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturnIgnoreTimeout(Undispatched.kt:102)
at kotlinx.coroutines.TimeoutKt.setupTimeout(Timeout.kt:148)
at kotlinx.coroutines.TimeoutKt.withTimeout(Timeout.kt:44)
at com.soyle.stories.common.AsyncThreadTransformer$async$1.invokeSuspend(ThreadTransformerImpl.kt:16)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
Anything else?
If you try to delete the character again, the above error is thrown.
Is there an existing issue for this?
✍️ Description
Character list does not update when a character is deleted
🔬 Minimal Reproduction
Expected Result
Character should be removed from the character list
Actual Result
The character is still listed
Relevant log output
Anything else?
If you try to delete the character again, the above error is thrown.