Skip to content

Conversation

@pm-dimagi
Copy link
Contributor

@pm-dimagi pm-dimagi commented Apr 18, 2025

Product Description

This Pr contains the phase 2 Connectid Code merged with master

Technical Summary

#2949
https://dimagi.atlassian.net/browse/CCCT-956

cross-request: dimagi/commcare-core#1455

Feature Flag

Connect id COde

Safety Assurance

Safety story

Automated test coverage

QA Plan

Labels and Review

  • Do we need to enhance the manual QA test coverage ? If yes, the "QA Note" label is set correctly
  • Does the PR introduce any major changes worth communicating ? If yes, the "Release Note" label is set and a "Release Note" is specified in PR description.
  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

pm-dimagi and others added 30 commits February 3, 2025 20:33
…ommcare-android into pm_connectid_merge

# Conflicts:
#	app/src/org/commcare/connect/database/ConnectDatabaseHelper.java
#	app/src/org/commcare/connect/database/ConnectDatabaseUtils.java
#	app/src/org/commcare/google/services/analytics/AnalyticsParamValue.java
#	app/src/org/commcare/google/services/analytics/FirebaseAnalyticsUtil.java
…nto pm_connectid_merge

# Conflicts:
#	app/res/values/strings.xml
@pm-dimagi
Copy link
Contributor Author

@damagatchi retest this please

Comment on lines 11 to 15
public static final int CONNECTID_REQUEST_CODE = 1034;
public static final int LOGIN_CONNECT_LAUNCH_REQUEST_CODE = 1050;
public static final int COMMCARE_SETUP_CONNECT_LAUNCH_REQUEST_CODE = 1051;
public static final int STANDARD_HOME_CONNECT_LAUNCH_REQUEST_CODE = 1051;
public static final int NETWORK_ACTIVITY_ID = 7000;
Copy link
Contributor

@OrangeAndGreen OrangeAndGreen Apr 21, 2025

Choose a reason for hiding this comment

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

CodeRabbit makes a good point here! Should these be different?

135feaf

@pm-dimagi
Copy link
Contributor Author

@damagatchi retest this please

Comment on lines 232 to 242
public void forgetUser(String reason) {

if (ConnectDatabaseHelper.dbExists(parentActivity)) {
FirebaseAnalyticsUtil.reportCccDeconfigure(reason);
}

ConnectUserDatabaseUtil.forgetUser(parentActivity);
ConnectIdActivity connectIdActivity = new ConnectIdActivity();
connectIdActivity.reset();
connectStatus = ConnectIdStatus.NotIntroduced;
}
Copy link
Contributor

@OrangeAndGreen OrangeAndGreen Apr 21, 2025

Choose a reason for hiding this comment

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

Agreed with coderabbit, this doesn't seem right. Since none of those fields are static I don't think there's any need to reset them here, since they'll be cleaned up when the activity gets popped

743863c

…nto pm_missing_code

# Conflicts:
#	app/src/org/commcare/activities/StandardHomeActivity.java
pm-dimagi and others added 5 commits April 23, 2025 11:01
…nto pm_connectid_merge

# Conflicts:
#	app/src/org/commcare/activities/StandardHomeActivity.java
-update the missing code, and change the request code value
…re-android into master_connectid_merge

# Conflicts:
#	app/src/org/commcare/activities/StandardHomeActivity.java
@pm-dimagi
Copy link
Contributor Author

@damagatchi retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cross requested High Risk If the PR introduce high risk changes that has high probability of introducing breaking changes skip-integration-tests Skip android tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants