Explorar o código

Add BIGEVENTS_PATTERN to Source/Snap/Docker.

Thanks to xet7 !
Lauri Ojansivu %!s(int64=5) %!d(string=hai) anos
pai
achega
d7c09df7d2
Modificáronse 7 ficheiros con 74 adicións e 0 borrados
  1. 1 0
      Dockerfile
  2. 16 0
      docker-compose.yml
  3. 16 0
      releases/virtualbox/start-wekan.sh
  4. 0 0
      snap-src/bin/config
  5. 9 0
      snap-src/bin/wekan-help
  6. 16 0
      start-wekan.bat
  7. 16 0
      start-wekan.sh

+ 1 - 0
Dockerfile

@@ -21,6 +21,7 @@ ENV BUILD_DEPS="apt-utils bsdtar gnupg gosu wget curl bzip2 g++ build-essential
     ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE=3 \
     ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60 \
     ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15 \
+    BIGEVENTS_PATTERN="" \
     NOTIFY_DUE_DAYS_BEFORE_AND_AFTER="" \
     NOTIFY_DUE_AT_HOUR_OF_DAY="" \
     EMAIL_NOTIFICATION_TIMEOUT=30000 \

+ 16 - 0
docker-compose.yml

@@ -232,6 +232,22 @@ services:
       #- ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
       #- ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
       #---------------------------------------------------------------
+      # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
+      # https://github.com/wekan/wekan/pull/2541
+      # Introduced a system env var BIGEVENTS_PATTERN default as "due",
+      # so any activityType matches the pattern, system will send out
+      # notifications to all board members no matter they are watching
+      # or tracking the board or not. Owner of the wekan server can
+      # disable the feature by setting this variable to "NONE" or
+      # change the pattern to any valid regex. i.e. '|' delimited
+      # activityType names.
+      # a) Default
+      #- BIGEVENTS_PATTERN=due
+      # b) All
+      #- BIGEVENTS_PATTERN=received|start|due|end
+      # c) Disabled
+      #- BIGEVENTS_PATTERN=NONE
+      #---------------------------------------------------------------
       # ==== EMAIL DUE DATE NOTIFICATION =====
       # https://github.com/wekan/wekan/pull/2536
       # System timelines will be showing any user modification for

+ 16 - 0
releases/virtualbox/start-wekan.sh

@@ -36,6 +36,22 @@
         #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
         #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
         #---------------------------------------------------------------
+        # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
+        # https://github.com/wekan/wekan/pull/2541
+        # Introduced a system env var BIGEVENTS_PATTERN default as "due",
+        # so any activityType matches the pattern, system will send out
+        # notifications to all board members no matter they are watching
+        # or tracking the board or not. Owner of the wekan server can
+        # disable the feature by setting this variable to "NONE" or
+        # change the pattern to any valid regex. i.e. '|' delimited
+        # activityType names.
+        # a) Default
+        #export BIGEVENTS_PATTERN=due
+        # b) All
+        #export BIGEVENTS_PATTERN=received|start|due|end
+        # c) Disabled
+        #export BIGEVENTS_PATTERN=NONE
+        #---------------------------------------------------------------
         # ==== EMAIL DUE DATE NOTIFICATION =====
         # https://github.com/wekan/wekan/pull/2536
         # System timelines will be showing any user modification for

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
snap-src/bin/config


+ 9 - 0
snap-src/bin/wekan-help

@@ -58,6 +58,15 @@ echo -e "\n"
 echo -e "Accounts lockout unknown users failure window, in seconds. Default: 15"
 echo -e "\t$ snap set $SNAP_NAME accounts-lockout-unknown-users-failure-window='15'"
 echo -e "\n"
+echo -e "BIGEVENTS DUE ETC NOTIFICATIONS https://github.com/wekan/wekan/pull/2541"
+echo -e "Big events pattern: Notify always due etc regardless of notification settings. Default: due, All: received|start|due|end, Disabled: NONE"
+echo -e "Default:"
+echo -e "\t$ snap set $SNAP_NAME bigevents-pattern='due'"
+echo -e "All:"
+echo -e "\t$ snap set $SNAP_NAME bigevents-pattern='received|start|due|end'"
+echo -e "Disabled:"
+echo -e "\t$ snap set $SNAP_NAME bigevents-pattern='NONE'"
+echo -e "\n"
 echo -e "EMAIL DUE DATE NOTIFICATION https://github.com/wekan/wekan/pull/2536"
 echo -e "System timelines will be showing any user modification for dueat startat endat receivedat, also notification to the watchers and if any card is due, about due or past due."
 echo -e "Notify due days, default 2 days before and after. 0 = due notifications disabled. Default: 2"

+ 16 - 0
start-wekan.bat

@@ -31,6 +31,22 @@ REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE=3
 REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
 REM SET ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
 
+REM # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
+REM # https://github.com/wekan/wekan/pull/2541
+REM # Introduced a system env var BIGEVENTS_PATTERN default as "due",
+REM # so any activityType matches the pattern, system will send out
+REM # notifications to all board members no matter they are watching
+REM # or tracking the board or not. Owner of the wekan server can
+REM # disable the feature by setting this variable to "NONE" or
+REM # change the pattern to any valid regex. i.e. '|' delimited
+REM # activityType names.
+REM # a) Default
+REM SET BIGEVENTS_PATTERN=due
+REM # b) All
+REM SET BIGEVENTS_PATTERN=received|start|due|end
+REM # c) Disabled
+REM SET BIGEVENTS_PATTERN=NONE
+
 REM # ==== EMAIL DUE DATE NOTIFICATION =====
 REM # https://github.com/wekan/wekan/pull/2536
 REM # System timelines will be showing any user modification for

+ 16 - 0
start-wekan.sh

@@ -37,6 +37,22 @@
       #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD=60
       #export ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW=15
       #---------------------------------------------------------------
+      # ==== BIGEVENTS DUE ETC NOTIFICATIONS =====
+      # https://github.com/wekan/wekan/pull/2541
+      # Introduced a system env var BIGEVENTS_PATTERN default as "due",
+      # so any activityType matches the pattern, system will send out
+      # notifications to all board members no matter they are watching
+      # or tracking the board or not. Owner of the wekan server can
+      # disable the feature by setting this variable to "NONE" or
+      # change the pattern to any valid regex. i.e. '|' delimited
+      # activityType names.
+      # a) Default
+      #export BIGEVENTS_PATTERN=due
+      # b) All
+      #export BIGEVENTS_PATTERN=received|start|due|end
+      # c) Disabled
+      #export BIGEVENTS_PATTERN=NONE
+      #---------------------------------------------------------------
       # ==== EMAIL DUE DATE NOTIFICATION =====
       # https://github.com/wekan/wekan/pull/2536
       # System timelines will be showing any user modification for

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio