stargate / data-api

JSON document API for Apache Cassandra (formerly known as JSON API)
https://stargate.io
Apache License 2.0
14 stars 16 forks source link

Enable error objects returned in V2 format by default #1666

Closed amorton closed 1 week ago

amorton commented 2 weeks ago

Discussed with the client team, the error object v2 format is backwards compatible so we are ok to use them by default.

The formatting for all errors is done, however the content is not. That is a work in progress.

This ticket is to change the OperationsConfig.extendError default to true and remove any startup params or env vars that set it using something like -Dstargate.jsonapi.operations.extend-error=false

OR we can just change the deployment, but i think changing the default us the safest and it is not a big lift.

When this ticket is implemented we should spin up another ticket to remove that operations config setting, but that will be a bigger lift to remove all the places we check it and refactor code that split into two code paths.

We want this for the table preview.