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

Make state fetching consistent with iOS #4

Merged
merged 3 commits into from Dec 13, 2022

Conversation

prudrabhat
Copy link
Contributor

@prudrabhat prudrabhat commented Dec 13, 2022

Description

Code before 2.0 migration depended on Configuration for fetching reconnection scenario. However with Core 2.0 cofiguration state may not yet be available when Assurance reconnection starts.

  • Change the logic to be consistant with iOS and use the ordId from stored URL during reconnection scenarios.
  • Change shared state query logic to query with barrier = false to be consistent with iOS

How Has This Been Tested?

  • Unit tests
  • Manual test with assurance-testapp

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Code before 2.0 migration depended on Configuration for fetching reconnection
scenario. However with Core 2.0 cofiguration state may not yet be available when
Assurance reconnection starts.
- Change the logic to be consistant with iOS and use the ordId from stored URL
  during reconnection scenarios.
- Change shared state query logic to query with barrier = false to be consistent with iOS
@prudrabhat prudrabhat changed the title Fix reconnection when cofig state(orgId) is not yet set Make state fetching consistent with iOS Dec 13, 2022
String orgId = assuranceStateManager.getOrgId(true);

if (StringUtils.isNullOrEmpty(orgId)) {
// Configuration may not have set the state with org id yet.
Copy link

Choose a reason for hiding this comment

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

Can you reword the comment to some thing like "If configuration does not have org-id, try extracting it from stored connection url"

@prudrabhat prudrabhat merged commit d56081f into adobe:dev Dec 13, 2022
@prudrabhat prudrabhat deleted the reconnection_issue branch December 13, 2022 21:34
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.

None yet

2 participants