Skip to content

Webhook that only allows Mute/Unmute events should not allow other events to be selected #221

@matt-richardson

Description

@matt-richardson

(originally raised over here)

Expected Behavior

A webhook that only allows Mute/Unmute events, eg:
image

should not allow other events to be selected.

Current Behavior

The webhook is showing all the boxes as ticked, but disabled:
image

Errors show as

[2023-07-18 02:16:17,787] ERROR [@7438424f'; Normal executor 28] - jetbrains.buildServer.SERVER - AbstractWebHookExecutor :: trackingId: dadfab32-86b1-4bab-8c1a-afd38e6870e4 :: projectId: OctopusDeploy_OctopusServer_CorePlatform :: webhookId: id_905369674 :: templateId: buildmonitormutes, errorCode: 902, errorMessage: Template 'buildmonitormutes' does not support build state 'beforeBuildFinish'

Steps to Reproduce (for bugs)

It appears that this happens when you select a template that allows build events (which auto-ticks them), and then change to one that only allows mute events - the fields get disabled but are still ticked.

Workaround

Selecting a different template (that supports build events), de-selecting the build events, then changing back to the mute/unmute template works.

Your Environment

  • tcWebHooks Version: 1.2.3
  • TeamCity Version: 2023.05.1
  • TeamCity server Operating System: Linux (ubuntu)
  • Are you using a WebHook Template?: Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions