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

Implement Clear Data Activity #2797

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Implement Clear Data Activity #2797

wants to merge 4 commits into from

Conversation

qiarie
Copy link
Contributor

@qiarie qiarie commented Oct 4, 2023

IMPORTANT: Where possible all PRs must be linked to a Github issue

  • Set android:allowBackup manifest flag to false
  • Set android:hasFragileUserData to true
  • Add DataActivity to control app's data clearing action
  • Add android:manageSpaceActivity manifest setting and activity

Engineer Checklist

  • I have written Unit tests for any new feature(s) and edge cases for bug fixes
  • I have added any strings visible on UI components to the strings.xml file
  • I have updated the CHANGELOG.md file for any notable changes to the codebase
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the project's style guide
  • I have built and run the FHIRCore app to verify my change fixes the issue and/or does not break the app
  • I have checked that this PR does NOT introduce breaking changes that require an update to Content and/or Configs? If it does add a sample here or a link to exactly what changes need to be made to the content.

Code Reviewer Checklist

  • I have verified Unit tests have been written for any new feature(s) and edge cases
  • I have verified any strings visible on UI components are in the strings.xml file
  • I have verifed the CHANGELOG.md file has any notable changes to the codebase
  • I have verified the solution has been implemented in a configurable and generic way for reuseable components
  • I have built and run the FHIRCore app to verify the change fixes the issue and/or does not break the app

- Set android:hasFragileUserData to true
- Add DataActivity to control app's data clearing action
- Add android:manageSpaceActivity setting and activity
@qiarie qiarie added the DNM DO NOT MERGE label Oct 4, 2023
- Add replace allowBackup manifest config
@codecov
Copy link

codecov bot commented Oct 4, 2023

Codecov Report

Merging #2797 (4459db2) into main (ad3a737) will increase coverage by 5.7%.
Report is 103 commits behind head on main.
The diff coverage is 67.8%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main   #2797     +/-   ##
=========================================
+ Coverage     64.5%   70.2%   +5.7%     
+ Complexity    1075     611    -464     
=========================================
  Files          218     114    -104     
  Lines         9635    4195   -5440     
  Branches      1897     803   -1094     
=========================================
- Hits          6218    2948   -3270     
+ Misses        2234     802   -1432     
+ Partials      1183     445    -738     
Flag Coverage Δ
engine 70.5% <68.1%> (-2.2%) ⬇️
geowidget 65.5% <33.3%> (+1.1%) ⬆️
quest ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ngine/configuration/view/CompoundTextProperties.kt 100.0% <ø> (ø)
...gine/configuration/workflow/ApplicationWorkflow.kt 100.0% <100.0%> (ø)
...r/fhircore/engine/domain/model/RoundingStrategy.kt 100.0% <100.0%> (ø)
...gister/fhircore/engine/rulesengine/RulesFactory.kt 71.8% <100.0%> (+0.6%) ⬆️
...martregister/fhircore/engine/sync/AppSyncWorker.kt 100.0% <ø> (ø)
...r/fhircore/engine/task/FhirResourceExpireWorker.kt 100.0% <100.0%> (ø)
...fhircore/engine/task/FhirTaskStatusUpdateWorker.kt 100.0% <100.0%> (ø)
...re/engine/ui/components/register/RegisterFooter.kt 67.3% <100.0%> (+2.1%) ⬆️
...g/smartregister/fhircore/engine/ui/theme/Colors.kt 100.0% <100.0%> (ø)
...rcore/engine/util/extension/FhirEngineExtension.kt 80.0% <100.0%> (+2.8%) ⬆️
... and 28 more

... and 114 files with indirect coverage changes

@ellykits
Copy link
Collaborator

Can you provide the link to the issue?

@qiarie
Copy link
Contributor Author

qiarie commented Nov 27, 2023

@ellykits This is the roadmap issue this is tied to Persist App data after uninstall

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNM DO NOT MERGE
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants