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

Add redux thunk fns; add cat indices API #37

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

ohltyler
Copy link
Member

Description

This PR adds support for e2e processing of fetching visible indices. It does this by:

  1. Adding a server-side cat.indices route, a client-side fn in the RouteService, and a redux thunk fn in a new opensearchSlice reducer. This follows the modern pattern of async / server-side data handling with redux. For more details, see https://redux.js.org/tutorials/fundamentals/part-8-modern-redux#writing-thunks

Issues Resolved

Makes progress on #6, #10

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.

Copy link
Member

@owaiskazi19 owaiskazi19 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 overall with small comments/questions

@ohltyler ohltyler merged commit 8a171f7 into opensearch-project:main Sep 22, 2023
8 checks passed
@ohltyler ohltyler deleted the redux-server branch September 22, 2023 23:26
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 22, 2023
* Add redux thunk fns; add cat indices API

Signed-off-by: Tyler Ohlsen <[email protected]>

* Remove unnecessary setIndices()

Signed-off-by: Tyler Ohlsen <[email protected]>

---------

Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 8a171f7)
ohltyler added a commit that referenced this pull request Sep 22, 2023
* Add redux thunk fns; add cat indices API

Signed-off-by: Tyler Ohlsen <[email protected]>

* Remove unnecessary setIndices()

Signed-off-by: Tyler Ohlsen <[email protected]>

---------

Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 8a171f7)

Co-authored-by: Tyler Ohlsen <[email protected]>
@ohltyler ohltyler mentioned this pull request Oct 9, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants