[Infra Monitoring UI] update metrics-explorer-view interfaces to have strict types for validation #157520
Labels
Feature:Metrics UI
Metrics UI feature
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
v8.10.0
📓 Summary
As part of the road to versioned HTTP APIs:
3. HTTP APIs have strict input validation
the API should not accept any data that could cause application code to throw exceptions or otherwise fail. E.g. given an input field
value
. If your application code divides byvalue
you need to addvalue != 0
validation or explicitly handle that case.The
metrics-explorer-view
so-attribs interface does not type all the necessary fields that are required for the app to function properly nor does the HTTP API interface.Eg: posting to API with a number instead of a string in
options.metrics.field
Response status: 201 created
App after navigating to new saved view:
✔️ Acceptance criteria
/api/infra/metrics-explorer-view
route should have strict input validation💡 Notes
The text was updated successfully, but these errors were encountered: