The Div macro wraps content in a div tag with optional class and styles. This allows us to use macros such as the Style macro below.

Feature Design for: Webhooks feature

Project Introduction

Introduce the project, describe the scope, intended audience and any document conventions.

Admins and users want to consume events without much setup, allowing them to call some script/url or something that triggers when some event happens. (somewhat like a webhooks or workflow feature). A larger workflow feature can be time-consuming, but webhooks is basically what we can target for.

The biggest benefits of this feature are (a) no need to configure rabbitmq/kafka, (b) available for all user types.


Functional Description

Describe the product (what does it do?), is it replacing an old system or is it adding to an existing system? State features and/or significant functions that must be performed.

1.  New APIs



2. New Global configurations


Database Changes

1. New tables

ColumnTypeComment
id

bigint

id of the webhook
uuidvarchar(255)uuid of the webhook
namevarchar(255)name of the webhook
descriptionvarchar(4096)description for the webhook
statechar(32)state of the webhook - Enabled or Disabled
domain_idbigintid of the owner domain of the webhook
account_idbigintid of the owner account of the webhook
payload_urlvarchar(255)payload URL for the webhook
secret_keyvarchar(255)secret key for the webhook
ssl_verificationboolean
for https payload url
scopechar(32)
scope for the webhook - Local,Domain,Global
createddatetime
date the webhook was created
removeddatetimedate removed if not null


ColumnTypeComment
id

bigint

id of the webhook dispatch
uuidvarchar(255)uuid of the webhook dispatch
event_idbigintid of the event
webhook_idbigintid of the webhook
mshost_msidbigintmsid of the management server
payloadTEXTpayload for the webhook dispatch
successbooleanwebhook dispatch succeeded or not
responseTEXTresponse of webhook dispatch
start_timedatetimestart timestamp of the webhook dispatch
secret_keydatetimeend timestamp of the webhook dispatch

2. New views



The Style macro allows the use of CSS to style content. CSS describes how HTML elements should be displayed. https://www.adaptavist.com/doco/display/CFP/Style+Sheet

        .home-banner {
        background: #0052cc;
        color: #c2d6d6;
        font-size: 20px;
        padding: 20px;
        }
        .home-banner h2 {
        color: #f2f2f2;
        }