Skip to content

Mob 20807 - Providing error details received by Edge in updateProposition api callback#111

Merged
akhiljain1907 merged 8 commits intoadobe:dev-v5.0.2from
akhiljain1907:MOB-20807
Sep 26, 2024
Merged

Mob 20807 - Providing error details received by Edge in updateProposition api callback#111
akhiljain1907 merged 8 commits intoadobe:dev-v5.0.2from
akhiljain1907:MOB-20807

Conversation

@akhiljain1907
Copy link
Copy Markdown
Contributor

@akhiljain1907 akhiljain1907 commented Sep 12, 2024

Description

This PR supports handling of error response received (if any) from Experience Edge and sending them back to update Proposition api's completion handler. Currently we are suppressing recoverable errors at our end as those are already being retried on Edge SDK.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Simulator Screenshot - iPhone 15 Pro - 2024-09-18 at 14 39 57
Simulator Screenshot - iPhone 15 Pro - 2024-09-18 at 17 12 36

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.

@akhiljain1907 akhiljain1907 changed the base branch from main to dev-v5.0.2 September 12, 2024 14:06
@akhiljain1907 akhiljain1907 marked this pull request as draft September 12, 2024 14:08
…ios into MOB-20807

# Conflicts:
#	Sources/AEPOptimize/OptimizeConstants.swift
…rom different request

-added alert UI for error handling in update proposition for test app
@akhiljain1907 akhiljain1907 marked this pull request as ready for review September 18, 2024 11:27
@akhiljain1907 akhiljain1907 changed the base branch from dev-v5.0.2 to main September 19, 2024 10:20
@akhiljain1907 akhiljain1907 changed the base branch from main to dev-v5.0.2 September 19, 2024 10:20
…ional information received from Edge error response
@spoorthipujariadobe spoorthipujariadobe removed the request for review from praveek September 24, 2024 01:48

/// a dictionary containing the update event IDs and corresponding errors as received from Edge SDK
private var _errorUpdateRequestEventIds: [String: AEPOptimizeError] = [:]
private var errorUpdateRequestEventIds: [String: AEPOptimizeError] {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: is it ok if we call this _updateRequestEventIdsError instead to be symmetrical with _updateRequestEventIdsInProgress?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Contributor

@spoorthipujariadobe spoorthipujariadobe left a comment

Choose a reason for hiding this comment

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

Changes look good, please add tests

…AEPOptimizeError received in update proposition callback

fixed build errors for AEPOptimize objective-C test app
…dge response instead of modifying existing test
@akhiljain1907
Copy link
Copy Markdown
Contributor Author

Hi @spoorthipujariadobe, i have added an integration test for updateProposition_invalidEdgeResponse. Please check and review once more.

@akhiljain1907 akhiljain1907 merged commit 156786a into adobe:dev-v5.0.2 Sep 26, 2024
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.

2 participants