-
Notifications
You must be signed in to change notification settings - Fork 17
Implement index:stats #613
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
Conversation
Codecov Report
@@ Coverage Diff @@
## 7-dev #613 +/- ##
==========================================
- Coverage 86.75% 86.73% -0.02%
==========================================
Files 33 33
Lines 1502 1508 +6
Branches 262 262
==========================================
+ Hits 1303 1308 +5
- Misses 146 147 +1
Partials 53 53
Continue to review full report at Codecov.
|
Co-authored-by: Adrien Maret <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To fix unit tests, you need to add this line at the top of src/controllers/Index.ts
:
import { JSONObject } from '../types';
# [7.6.0](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.6.0) (2021-04-06) #### Bug fixes - [ [#622](#622) ] Pick first route when multiple non-GET routes of the same size are available ([scottinet](https://github.com/scottinet)) #### New features - [ [#621](#621) ] Secure WebSocket connection with cookie authentication ([Shiranuit](https://github.com/Shiranuit)) - [ [#613](#613) ] Implement index:stats ([Leodau](https://github.com/Leodau)) - [ [#612](#612) ] Implement security:getUserStrategies ([Leodau](https://github.com/Leodau)) #### Enhancements - [ [#620](#620) ] Add kuzzleStack property to KuzzleError ([Aschen](https://github.com/Aschen)) - [ [#617](#617) ] Add suggest to search result ([Aschen](https://github.com/Aschen)) - [ [#614](#614) ] Print deprecation warning from Kuzzle ([MathieuVeber](https://github.com/MathieuVeber)) - [ [#606](#606) ] Add _source property to user objects ([Aschen](https://github.com/Aschen)) ---
What does this PR do?
This PR implements the recently added index:stats (@ Kuzzle Backend v2.10.0)
So it can be used directly, instead of having to use query to access it.
Todo:
How should this be manually tested?
sdk.index.stats()
Closes #608