All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.static.topic.management.cancelReAssignments.js Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
$(document).ready(function () {
    $("#cancel-reassignments-btn").click(cancelReAssignments);
});

function cancelReAssignments() {
    let button = $(this);
    let topicName = button.attr("data-topic-name");
    let clusterIdentifier = button.attr("data-cluster-identifier");
    showOpProgress("Canceling re-assignments...");
    $
        .ajax("api/management/cancel-topic-partitions-reassignment" +
            "?topicName=" + encodeURI(topicName) +
            "&clusterIdentifier=" + encodeURI(clusterIdentifier), {
            method: "DELETE"
        })
        .done(function () {
            showOpSuccess("Canceled re-assignment successfully");
        })
        .fail(function(error){
            let errorMsg = extractErrMsg(error);
            showOpError("Failed to cancel re-assignment:", errorMsg);
        });
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy