Git Product home page Git Product logo

Comments (5)

elasticsearchmachine avatar elasticsearchmachine commented on June 29, 2024

Pinging @elastic/es-core-infra (Team:Core/Infra)

from elasticsearch.

geekpete avatar geekpete commented on June 29, 2024

First concern would be a breaking change for automated or established API usage, but introducing an optional safety setting users could turn on to require confirmation/parameter might be something immediately useful, if it was at either cluster level or index level then it might be flexible, but also having it set at user level would be really handy to then avoid it for automation/service accounts and enable it for less skilled or higher risk users/groups,etc.

from elasticsearch.

kunisen avatar kunisen commented on June 29, 2024

Yeah it's gonna be a breaking change, so we could do it step by step, by having such a framework first and then decide when to use it :)

from elasticsearch.

DaveCTurner avatar DaveCTurner commented on June 29, 2024

I think we should not make this change in the ES API itself. Leaving aside the enormous breaking effect it'd have on clients, it's not just these two endpoints: really a lot of the API surface has an irreversibly destructive effect. If we started down this path we'd end up wanting to add the same functionality almost everywhere. But then folks would quickly start wanting to add this option automatically in whatever tooling they're using to call ES for the sake of convenience, and then we're back to the original situation again. I saw this in a previous role: someone even proposed a second ?really_acknowledge=true option because the first acknowledgement was being skipped so much.

Instead, if we think some actions need extra acknowledgement when run directly by a user, let's build that acknowledgement step into the interface that the user is using without disturbing the underlying API. For instance, the Kibana dev tools could require a confirmation on all DELETE actions.

from elasticsearch.

kunisen avatar kunisen commented on June 29, 2024

Thanks! Fair enough. Let's keep this in kibana side then: elastic/kibana#182934

from elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.