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

App install Refactor #2704

Merged
merged 5 commits into from
Sep 20, 2023
Merged

App install Refactor #2704

merged 5 commits into from
Sep 20, 2023

Conversation

shubham1g5
Copy link
Contributor

Summary

Move app install handling to utils class for easy accessibility to Connect Classes.

Best reviewed by commit

Safety Assurance

  • If the PR is high risk, "High Risk" label is set
  • I have confidence that this PR will not introduce a regression for the reasons below
  • Do we need to enhance manual QA test coverage ? If yes, "QA Note" label is set correctly

Automated test coverage

All our tests test for App installs

Safety story

minor refactor that seemingly is no-op with a good test coverage around refactored code.

@shubham1g5 shubham1g5 marked this pull request as draft September 15, 2023 13:02
@shubham1g5
Copy link
Contributor Author

@damagatchi retest this please

@shubham1g5 shubham1g5 marked this pull request as ready for review September 16, 2023 00:38
@avazirna
Copy link
Contributor

@damagatchi retest this please

avazirna
avazirna previously approved these changes Sep 18, 2023
Copy link
Contributor

@avazirna avazirna left a comment

Choose a reason for hiding this comment

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

@shubham1g5 this looks good to me, I just left a minor comment


public static CommCareApp startAppInstallAsync(boolean shouldSleep, int taskId, CommCareTaskConnector connector,
String installRef) {
CommCareApp ccApp = getNewCommCareApp();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Can we consider renaming this to something more descriptive, something like createNewCommCareApp, I see that it was renamed from getCommCareApp but I see the use of get as misleading as it seems that we are retrieving an existing element.

OrangeAndGreen
OrangeAndGreen previously approved these changes Sep 18, 2023
@shubham1g5
Copy link
Contributor Author

@damagatchi retest this please

@shubham1g5 shubham1g5 merged commit be547a2 into master Sep 20, 2023
1 check failed
@shubham1g5 shubham1g5 deleted the appInstallRefactor branch September 20, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants