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 refresh policy to CRUD APIs #381

Closed
qreshi opened this issue Mar 16, 2022 · 1 comment
Closed

Add refresh policy to CRUD APIs #381

qreshi opened this issue Mar 16, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@qreshi
Copy link
Contributor

qreshi commented Mar 16, 2022

Is your feature request related to a problem? Please describe.
Notification integration tests are flaky as sometimes operations are done to create/delete and then retrieve Notification configs which don't alway reflect the changed state.

Describe the solution you'd like
The CRUD API for Notification at times may be used to change state of the underlying documents and then be retrieved with a short turnaround time to retrieve the changed state. Allowing to pass in ?refresh=true to ensure refreshes on the Notification config index after such operations could be useful for this.

Describe alternatives you've considered
For the flaky tests in particular we could add a longer Thread.sleep (which are already present) but this is hacky and should be avoided when an internal mechanism exists.

Additional context
Add any other context or screenshots about the feature request here.

@Hailong-am
Copy link
Collaborator

duplicate with #790, will track by #790

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants