Commit Graph

329 Commits

Author SHA1 Message Date
Shawn 20cf06c917 chore: add changelogs for random sql functions 2023-06-21 16:44:25 +08:00
Shawn 2929e986ef feat: add new sql-funcs random/0 and uuid_v4/0 2023-06-21 16:16:54 +08:00
Shawn c1e47914a6 fix: make rule cache update more reliable 2023-06-16 17:46:45 +08:00
Shawn 4836bc62f6 chore: update emqx_rule_engine.appup.src 2023-06-15 15:07:17 +08:00
Shawn e64587f3da fix: password leaks from rule engine logs 2023-06-15 14:58:03 +08:00
Shawn 154fe441de fix: cannot access columns exported by FOREACH in DO clause 2023-05-06 11:28:47 +08:00
Shawn e5ca44d0b6 chore: update appups and app vsns 2023-04-21 17:03:33 +08:00
Shawn 8db1aae642 feat: improve the syntax of ${} in payload templates 2023-04-21 16:49:39 +08:00
Shawn c0a55344c5 revert: Revert "refactor: use mneisa:subscribe/1 for rule operations"
This reverts commit 64309a193b.

For relup from old versions, the emqx_rule_registry has not subscribes
the mnesia events, so we cannot update caches only when mnesia events
received.

For rolling upgrade the nodes one by one, some of the nodes has not
subscribes the mnesia events, so we cannot move the `load_hooks_for_rule`
into the mnesia events handling.

In a word, it is too complicated to use mnesia events, we use RPC instead.
2023-04-10 23:30:15 +08:00
Shawn df23edb102 fix: logger header for rule-registry 2023-04-03 17:30:23 +08:00
Shawn 64309a193b refactor: use mneisa:subscribe/1 for rule operations 2023-04-03 13:38:16 +08:00
Shawn e33a5bfc89 fix: update rule_cache when get_rules/0 2023-03-31 14:17:06 +08:00
Shawn 7dbbef30c9 fix: remove emqx_rule_registry from the qlc_mod list 2023-03-31 13:51:30 +08:00
Shawn c899a6020d fix: update the appups 2023-03-31 13:14:44 +08:00
Shawn 8511dbfde3 perf: cache the result of emqx_rule_registry:get_rules/0 2023-03-31 13:14:39 +08:00
Shawn 5402ff7fd8 chore: port changes from e4.4 back to v4.4 2023-03-09 20:16:55 +08:00
Shawn 2e8d207558 chore: bump versions for apps 2023-03-09 09:06:41 +08:00
Shawn 753f70bab8 chore: final EMQ X -> EMQX 2023-03-09 01:58:40 +08:00
Shawn c84096c9c8 fix: the _EXP_ON_FAIL_ was not called on throw 2023-02-15 15:55:31 +08:00
Shawn 8c478fd7f3 chore: update emqx_rule_engine.appup.src 2023-02-08 18:46:49 +08:00
Shawn 04cae4ef60 fix: republish MQTT msgs with properties crash 2023-02-08 18:44:46 +08:00
Shawn 73c6275788 chore: update emqx_rule_engine.appup.src 2023-02-04 12:53:29 +08:00
Shawn c22e2a0d18 fix: add retry for rules 2023-02-04 12:48:12 +08:00
Shawn e459180015 fix: restart oracle resources at relup 2023-01-30 14:53:20 +08:00
Zaiming (Stone) Shi ab8521c92c chore: bump app vsn to 4.4.15 for emqx_rule_engine 2023-01-08 10:43:37 +01:00
Zaiming (Stone) Shi 14ba75502f chore: update copyright year 2023-01-02 14:54:38 +01:00
Zaiming (Stone) Shi ad91eca0e5 chore: generate appup 2022-12-30 20:45:55 +01:00
Zaiming (Stone) Shi e88feb5096 chore: bump app vsn for emqx_rule_engine 2022-12-30 20:21:48 +01:00
Thales Macedo Garitezi bc654ddf3a chore: bump release -> v4.4.13 2022-12-30 11:51:32 -03:00
Thales Macedo Garitezi ea209585b5 fix(jwt_sup): delete the worker spec from the supervision tree 2022-12-30 10:24:41 -03:00
Thales Macedo Garitezi 823efbaed3 fix(gcp_pubsub): ensure jwt token is deleted after worker stops and always ensure refresh timer (v4.4)
https://emqx.atlassian.net/browse/EMQX-8652

Since the rule resource testing mechanism creates a new resource to
test the configuration, a new JWT associated with an unique temporary
resource was being created and left in the JWT table, leaking it.

Also, a wrong case clause when setting the new refresh timer for the
JWT worker was preventing it from refreshing from the 2nd refresh
onward.
2022-12-30 10:24:26 -03:00
Shawn f2bb0a364b chore: sometimes the alarm resource down cannot be cleared 2022-12-26 12:13:19 +08:00
Shawn 7c420b39de chore: update emqx_rule_engine.appup.src 2022-12-14 13:52:41 +08:00
Shawn 781c8949b3 fix: tmp probing resources are not removed after testing resources 2022-12-14 13:52:24 +08:00
Zaiming (Stone) Shi 0c3de088cb chore: sync changes from ee to ce 2022-12-09 13:58:07 +01:00
Zaiming (Stone) Shi d244c298dc chore: update app vsn and appup 2022-11-28 12:49:35 +01:00
Shawn 17b6b71ea5 Merge remote-tracking branch 'origin/release-v43' into sync_v43_to_v44 2022-11-17 13:47:10 +08:00
Shawn 252b03abd8 fix: generating alarm name for utf8 resource id failed 2022-11-17 10:23:33 +08:00
Shawn f843938364 fix: don't check resource alive for the temporary resources 2022-11-16 09:43:04 +08:00
Shawn e4a3dd9ee8 fix: enlarge the timeout when check alive of resources 2022-11-15 21:07:01 +08:00
Zaiming (Stone) Shi c1d61a6f30 Merge remote-tracking branch 'origin/release-v43' into release-v44 2022-11-10 16:01:29 +01:00
Shawn 6725a36dbf fix: make init_resource_with_retrier/4 only 'throw' when failed 2022-11-10 10:44:11 +08:00
Shawn 407a197c8a fix: typos in the RAISE macro of rule_engine 2022-11-09 12:06:58 +08:00
Zaiming (Stone) Shi 45eed402d4 Merge remote-tracking branch 'origin/release-v43' into release-v44 2022-11-07 22:16:05 +01:00
Zaiming (Stone) Shi 9b194baf69 fix(emqx_rule_monitor): sleep before retry but not after 2022-11-05 17:42:29 +01:00
Zaiming (Stone) Shi 3346f2a26c Merge remote-tracking branch 'origin/release-v44' into 1104-ci-split-ct-runs 2022-11-04 14:34:24 +01:00
Zaiming (Stone) Shi be10498919 chore: re-generate appup 2022-11-04 13:50:24 +01:00
Thales Macedo Garitezi d3c6ade640 docs: rewrite fn doc 2022-11-04 09:38:40 -03:00
Thales Macedo Garitezi f5c655ec1b refactor: add api to ensure jwt token is created 2022-11-04 09:38:40 -03:00
Thales Macedo Garitezi d714f78590 refactor: use `include` for headers 2022-11-04 09:38:40 -03:00