Skip to content

More tests for events ordering + minor fixes#83

Merged
swarna04 merged 2 commits intoadobe:dev-v4.0.2from
swarna04:dev-v4.0.2
Oct 4, 2023
Merged

More tests for events ordering + minor fixes#83
swarna04 merged 2 commits intoadobe:dev-v4.0.2from
swarna04:dev-v4.0.2

Conversation

@swarna04
Copy link
Copy Markdown
Contributor

@swarna04 swarna04 commented Oct 4, 2023

Description

Related Issue

Motivation and Context

How Has This Been Tested?

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.

@swarna04 swarna04 requested a review from sbenedicadb October 4, 2023 13:16
Copy link
Copy Markdown
Member

@sbenedicadb sbenedicadb left a comment

Choose a reason for hiding this comment

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

looks good pending one request


defer {
// remove completed event's ID from the request event IDs dictionary.
updateRequestEventIdsInProgress.removeValue(forKey: requestCompletedForEventId)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if this method ends up reaching the return on line 248, requestCompletedForEventId will be an empty string and this call doesn't make sense.

let's move this line back to where it was (out of the defer block) so it will only be called when we have an entry to remove.

@swarna04 swarna04 merged commit d089e2f into adobe:dev-v4.0.2 Oct 4, 2023
swarna04 added a commit that referenced this pull request Oct 4, 2023
* Fixed processing order for update/ get events in the extension (#82)

* Fix events processing order in the extension.

* Added/ updated tests

* Incorporated feedback

* More tests for events ordering + minor fixes (#83)

* More tests + minor fixes

* feedback update

* Reset in-progress propositions in unexpected scenarios (#85)

* More tests + minor fixes

* feedback update

* Reset in-progress propositions if request eventId is no longer being tracked.

* more fixes
@swarna04 swarna04 mentioned this pull request Oct 4, 2023
10 tasks
swarna04 added a commit that referenced this pull request Oct 5, 2023
* Fixed processing order for update/ get events in the extension (#82)

* Fix events processing order in the extension.

* Added/ updated tests

* Incorporated feedback

* More tests for events ordering + minor fixes (#83)

* More tests + minor fixes

* feedback update

* Reset in-progress propositions in unexpected scenarios (#85)

* More tests + minor fixes

* feedback update

* Reset in-progress propositions if request eventId is no longer being tracked.

* more fixes
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