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

Change the SendTestMessage API to be a POST call #506

Merged
merged 3 commits into from
Sep 7, 2022

Conversation

qreshi
Copy link
Contributor

@qreshi qreshi commented Aug 16, 2022

Signed-off-by: Mohammad Qureshi 47198598+qreshi@users.noreply.github.com

Description

The SendTestMessage API (/_plugins/_notifications/feature/test) can potentially invoke POST webhook HTTP calls and from the user's perspective even if it is a test message this can be considered a mutating operation (messages accumulating at some destination that the webhook publishes to). As such, it seems more fitting to change the SendTestMessage API to be a POST call to adhere to HTTP best practices.

The GET API path will still be available until the next major version but will be considered deprecated now. The frontend routes for the Notifications Dashboards plugin will be using the POST method though.

Issues Resolved

[List any issues this PR will resolve]

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.

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
…major version

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
@qreshi qreshi marked this pull request as ready for review August 29, 2022 20:28
Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
@qreshi qreshi merged commit 1017971 into opensearch-project:main Sep 7, 2022
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 7, 2022
* Change the SendTestMessage API to be a POST call

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Include GET send test message path as a depricated option until next major version

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Update documentation comment for SendTestMessage replaced route

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
(cherry picked from commit 1017971)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 7, 2022
* Change the SendTestMessage API to be a POST call

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Include GET send test message path as a depricated option until next major version

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Update documentation comment for SendTestMessage replaced route

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
(cherry picked from commit 1017971)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 7, 2022
* Change the SendTestMessage API to be a POST call

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Include GET send test message path as a depricated option until next major version

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Update documentation comment for SendTestMessage replaced route

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
(cherry picked from commit 1017971)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 7, 2022
* Change the SendTestMessage API to be a POST call

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Include GET send test message path as a depricated option until next major version

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Update documentation comment for SendTestMessage replaced route

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
(cherry picked from commit 1017971)
qreshi added a commit that referenced this pull request Sep 7, 2022
* Change the SendTestMessage API to be a POST call

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Include GET send test message path as a depricated option until next major version

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Update documentation comment for SendTestMessage replaced route

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
(cherry picked from commit 1017971)

Co-authored-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
qreshi added a commit that referenced this pull request Sep 7, 2022
* Change the SendTestMessage API to be a POST call

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Include GET send test message path as a depricated option until next major version

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Update documentation comment for SendTestMessage replaced route

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
(cherry picked from commit 1017971)

Co-authored-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
qreshi added a commit that referenced this pull request Sep 7, 2022
* Change the SendTestMessage API to be a POST call

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Include GET send test message path as a depricated option until next major version

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Update documentation comment for SendTestMessage replaced route

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
(cherry picked from commit 1017971)

Co-authored-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
qreshi added a commit that referenced this pull request Sep 7, 2022
* Change the SendTestMessage API to be a POST call

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Include GET send test message path as a depricated option until next major version

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

* Update documentation comment for SendTestMessage replaced route

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>

Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
(cherry picked from commit 1017971)

Co-authored-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.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.

3 participants