Commit graph

4 commits

Author SHA1 Message Date
Abdon Pijpelink
5e816686c5
Fix typo (#91894) 2022-11-24 14:40:43 +01:00
William Brafford
fc7c06d8a1
Make feature reset API response more informative (#71240)
Previously, the ResetFeatureStateStatus object captured its status in a
String, which meant that if we wanted to know if something succeeded or
failed, we'd have to parse information out of the string. This isn't a
good way of doing things.

I've introduced a SUCCESS/FAILURE enum for status constants, and added a
check for failures in the transport action. We return a 207 if some but not all
reset actions fail, and for every failure, we also return information about the
exception or error that caused it.

Co-authored-by: Jay Modi <jaymode@users.noreply.github.com>
2021-04-27 13:47:10 -04:00
William Brafford
d1bcd2a88b
Add docs for feature reset API (#71759)
* Add docs for feature reset API
* Prose and style much improved by Deb Adair.

Co-authored-by: debadair <debadair@elastic.co>
2021-04-21 17:40:10 -04:00
Gordon Brown
ce8a0c0cea
Change Get Snapshottable Features endpoint to _features (#69755)
The endpoint `_snapshottable_features` is long and implies incorrect
things about this API - it is used not just for snapshots, but also for
the upcoming reset API. Following discussions on the team, this commit
changes the endpoint to `_features` and removes the connection between
this API and snapshots, as snapshots are not the only use for the output
of this API.
2021-03-02 11:30:02 -07:00