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

convert empty httpEntity to {} to avoid DeliveryStatus initialization exception #648

Merged
merged 2 commits into from
Apr 4, 2023

Conversation

Hailong-am
Copy link
Collaborator

Description

convert empty HTTPEntity to a not empty string {} to fix DeliveryStatus initialization exception

Issues Resolved

#611

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

… exception

Signed-off-by: Hailong Cui <ihailong@amazon.com>
@Hailong-am Hailong-am requested review from a team and qreshi March 30, 2023 08:06
xluo-aws
xluo-aws previously approved these changes Mar 30, 2023
Signed-off-by: Hailong Cui <ihailong@amazon.com>
@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2023

Codecov Report

Merging #648 (939ad5f) into main (464fdb2) will increase coverage by 0.13%.
The diff coverage is 50.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##               main     #648      +/-   ##
============================================
+ Coverage     61.70%   61.84%   +0.13%     
- Complexity      112      114       +2     
============================================
  Files            73       73              
  Lines          2494     2495       +1     
  Branches        265      266       +1     
============================================
+ Hits           1539     1543       +4     
+ Misses          778      775       -3     
  Partials        177      177              
Flag Coverage Δ
opensearch-notifications 61.84% <50.00%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...notifications/core/client/DestinationHttpClient.kt 85.50% <50.00%> (-1.26%) ⬇️

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@gaobinlong gaobinlong left a comment

Choose a reason for hiding this comment

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

LGTM

@Hailong-am Hailong-am requested a review from xluo-aws April 3, 2023 09:31
@Hailong-am Hailong-am merged commit 94c225d into opensearch-project:main Apr 4, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 4, 2023
… exception (#648)

* convert empty httpEntity to {} to avoid DeliveryStatus initialization exception

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* add integTest case for webhook empty response

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 94c225d)
Hailong-am added a commit that referenced this pull request Apr 4, 2023
… initialization exception (#651)

* convert empty httpEntity to {} to avoid DeliveryStatus initialization exception (#648)

* convert empty httpEntity to {} to avoid DeliveryStatus initialization exception

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* add integTest case for webhook empty response

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 94c225d)

* update github actions

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* fix test build failure

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
Co-authored-by: Hailong Cui <ihailong@amazon.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 24, 2023
… exception (#648)

* convert empty httpEntity to {} to avoid DeliveryStatus initialization exception

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* add integTest case for webhook empty response

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 94c225d)
@Hailong-am
Copy link
Collaborator Author

@AWSHurneyt would you mind build and publish common-utils 2.5.1-snapshot to maven? The build depends on it.
https://github.com/opensearch-project/common-utils/actions/workflows/maven-publish.yml

opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 27, 2023
… exception (#648)

* convert empty httpEntity to {} to avoid DeliveryStatus initialization exception

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* add integTest case for webhook empty response

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 94c225d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Hailong-am added a commit that referenced this pull request Jul 28, 2023
… initialization exception (#730)

* convert empty httpEntity to {} to avoid DeliveryStatus initialization exception (#648)

* convert empty httpEntity to {} to avoid DeliveryStatus initialization exception

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* add integTest case for webhook empty response

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 94c225d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add missing import

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hailong Cui <ihailong@amazon.com>
Hailong-am added a commit that referenced this pull request Jul 28, 2023
… initialization exception (#660)

* convert empty httpEntity to {} to avoid DeliveryStatus initialization exception (#648)

* convert empty httpEntity to {} to avoid DeliveryStatus initialization exception

Signed-off-by: Hailong Cui <ihailong@amazon.com>

* add integTest case for webhook empty response

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
(cherry picked from commit 94c225d)

* Add missing import

Signed-off-by: Hailong Cui <ihailong@amazon.com>

---------

Signed-off-by: Hailong Cui <ihailong@amazon.com>
Co-authored-by: Hailong Cui <ihailong@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants