Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Fix certificate deletion app crash (EXPOSUREAPP-12875) #5103

Merged
merged 19 commits into from
Apr 28, 2022

Conversation

SamuraiKek
Copy link
Contributor

Sometimes when removing all the certificates of a person, the app would crash upon deleting the last remaining certificate. This fix skips over the PersonDetailsFragment entirely and goes straing to PersonOverviewFragment when deleting the last certificate of a person.

To test, scan one or more certificate for the same person and then delete them one by one.

@SamuraiKek SamuraiKek added bug Something isn't working maintainers Tag pull requests created by maintainers labels Apr 21, 2022
@SamuraiKek SamuraiKek added this to the 2.22.0 milestone Apr 21, 2022
@SamuraiKek SamuraiKek requested a review from a team April 21, 2022 11:31
@chiljamgossow chiljamgossow self-assigned this Apr 21, 2022
@BMItr BMItr self-assigned this Apr 26, 2022
@@ -116,7 +116,8 @@ class PersonDetailsViewModel @AssistedInject constructor(

return UiState(
Copy link
Contributor

Choose a reason for hiding this comment

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

Handle the logic in the viewmodel and send an gobackEvent if the corresponding numberofCertificates is reached

@sonarcloud
Copy link

sonarcloud bot commented Apr 28, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

8.7% 8.7% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@chiljamgossow chiljamgossow left a comment

Choose a reason for hiding this comment

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

Tested, worked well

@SamuraiKek SamuraiKek merged commit 66bcbb4 into release/2.22.x Apr 28, 2022
@SamuraiKek SamuraiKek deleted the fix/12875-certificate-deletion-app-crash branch April 28, 2022 10:34
jurajkusnier added a commit that referenced this pull request Apr 29, 2022
jurajkusnier added a commit that referenced this pull request May 2, 2022
…6) (#5139)

* Revert "Fix certificate deletion app crash (EXPOSUREAPP-12875) (#5103)"

This reverts commit 66bcbb4

* update badge card layout

* update BoosterCard implementation

* remove unused resources

* update arrow margin

Co-authored-by: Alex Paulescu <alex.paulescu@gmail.com>
schauersbergern pushed a commit that referenced this pull request May 4, 2022
* Prevent app from crashing when deleting last certificate in the list.

* Fix lint.

* Fix app crashing when trying to display the badge on the booster card.

Co-authored-by: Juraj Kusnier <jurajkusnier@users.noreply.github.com>
Co-authored-by: Marc Auberer <marc.auberer@chillibits.com>
Co-authored-by: BMItr <Berndus@gmx.de>
Co-authored-by: Chilja Gossow <49635654+chiljamgossow@users.noreply.github.com>
schauersbergern pushed a commit that referenced this pull request May 4, 2022
…6) (#5139)

* Revert "Fix certificate deletion app crash (EXPOSUREAPP-12875) (#5103)"

This reverts commit 66bcbb4

* update badge card layout

* update BoosterCard implementation

* remove unused resources

* update arrow margin

Co-authored-by: Alex Paulescu <alex.paulescu@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working maintainers Tag pull requests created by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants