mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Webhook trigger update by column (#832)
Add functionality to filter webhooks based on a column or columns.
This commit is contained in:
@@ -1307,3 +1307,13 @@ def migration41(tdset):
|
||||
]
|
||||
|
||||
return tdset.apply_doc_actions(doc_actions)
|
||||
|
||||
@migration(schema_version=42)
|
||||
def migration42(tdset):
|
||||
"""
|
||||
Adds column to register which table columns are triggered in webhooks.
|
||||
"""
|
||||
return tdset.apply_doc_actions([
|
||||
add_column('_grist_Triggers', 'watchedColRefList', 'RefList:_grist_Tables_column'),
|
||||
add_column('_grist_Triggers', 'options', 'Text'),
|
||||
])
|
||||
|
||||
@@ -15,7 +15,7 @@ import six
|
||||
|
||||
import actions
|
||||
|
||||
SCHEMA_VERSION = 41
|
||||
SCHEMA_VERSION = 42
|
||||
|
||||
def make_column(col_id, col_type, formula='', isFormula=False):
|
||||
return {
|
||||
@@ -261,6 +261,8 @@ def schema_create_actions():
|
||||
make_column("label", "Text"),
|
||||
make_column("memo", "Text"),
|
||||
make_column("enabled", "Bool"),
|
||||
make_column("watchedColRefList", "RefList:_grist_Tables_column"),
|
||||
make_column("options", "Text"),
|
||||
]),
|
||||
|
||||
# All of the ACL rules.
|
||||
|
||||
Reference in New Issue
Block a user