Skip to content

MOB-19932 - Get proposition request event handling #109

Merged
navratan-soni merged 4 commits intoadobe:dev-v5.0.2from
ishwetansh:macy-prop
Aug 28, 2024
Merged

MOB-19932 - Get proposition request event handling #109
navratan-soni merged 4 commits intoadobe:dev-v5.0.2from
ishwetansh:macy-prop

Conversation

@ishwetansh
Copy link
Copy Markdown
Contributor

@ishwetansh ishwetansh commented Aug 21, 2024

Description

Use Case 1: If getPropositions() is called for a decision scope (e.g., scope1) and there's an updatePropositions() in progress for a different scope (e.g., scope2, scope3), return the value for scope1 immediately without waiting.

Use Case 2: If getPropositions() is called for a decision scope that is currently being updated (e.g., scope1), wait for the updatePropositions() to complete before returning the response.

Related Issue

Motivation and Context

How Has This Been Tested?

Through Unit testing and manual scenario based testing.

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.

@ishwetansh ishwetansh marked this pull request as draft August 21, 2024 09:46
@ishwetansh ishwetansh marked this pull request as ready for review August 21, 2024 09:58
@ishwetansh ishwetansh closed this Aug 21, 2024
@ishwetansh ishwetansh reopened this Aug 21, 2024
@spoorthipujariadobe spoorthipujariadobe changed the base branch from main to dev-v5.0.2 August 22, 2024 00:13
@sbenedicadb
Copy link
Copy Markdown
Member

code looks good - a couple small changes that need to be made

@ishwetansh
Copy link
Copy Markdown
Contributor Author

@sbenedicadb, I have updated the code as per your suggestions. Thanks :)

@ishwetansh
Copy link
Copy Markdown
Contributor Author

@spoorthipujariadobe , I have update the code as per your suggestions & also added a test case.
Could you please review it again, Thanks.

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.

Great job on your first PR!

@navratan-soni navratan-soni merged commit 890cd1f into adobe:dev-v5.0.2 Aug 28, 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.

4 participants