Giter Club home page Giter Club logo

Comments (2)

cuu508 avatar cuu508 commented on June 4, 2024

Thanks for the suggestion.

I'd like to avoid adding modes to interfaces as much as possible, so I've been thinking about alternatives.

The Management API users can already specify a channels key when creating a new check, so they can set the default value on the client side.

For Ping API, and auto-provisioning, the "should we assign all integrations" flag could perhaps go in the URL:

# If a check with slug "sample-slug" does not exist, create it and assign all channels 
GET /sample-ping-key/sample-slug/?create=1

# If a check with slug "sample-slug" does not exist, create it but do not assign any channels
GET /sample-ping-key/sample-slug/?create=1&channels=

(and perhaps more configuration options could go there in future)

For the web interface, we could add a checkbox in the "Add Check" dialog. Checked by default to match the current default, but the user can uncheck it:

image

from healthchecks.

apollo13 avatar apollo13 commented on June 4, 2024

Ah yes, a checkbox there would do. There is another instance though where such a checkbox would probably be useful, namely when creating an integration/channel it is assigned to all checks as well:
https://github.com/apollo13/healthchecks/blob/e546a1325ba04a2c74ea16accae8ed79b2185505/hc/front/views.py#L1284

Since this affects existing checks I'd like to have a way to prevent that as well (a checkbox would do I guess).

from healthchecks.

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.