Commit Graph

172 Commits

Author SHA1 Message Date
Gabriel Grubba 3052a9cfb2
Revert "FIX: revert chat-integration move to discourse-automation" (#229)
* Revert "FIX: revert chat-integration move to discourse-automation (#219)"

This reverts commit 6e7917bd5e.

* DEV: Update plugin.rb

better error logging

* DEV:  adding`end` in `plugin.rb`
2024-11-06 09:08:25 -03:00
Discourse Translator Bot aaa2da6111
Update translations (#221) 2024-10-02 08:49:55 +02:00
Gabriel Grubba 6e7917bd5e
FIX: revert chat-integration move to discourse-automation (#219)
* Reapply "FIX: revert chat-integration move to discourse-automation (#214)" (#218)

This reverts commit f15c0fddf3.

* DEV: added more logging to the plugin

* DEV: update error logging with `.inspect` for better debugging
2024-09-12 10:44:39 -03:00
Gabriel Grubba f15c0fddf3
Revert "FIX: revert chat-integration move to discourse-automation (#214)" (#218)
This reverts commit a1c8f4ee9d.
2024-09-11 10:43:10 -03:00
Gabriel Grubba 3f8b67d1c1
Feature: add chat integration reference post (#216)
* FEATURE: Add chat integration reference post

This class works similar to a post but it is not a post.

* DEV: change how `excerpt` method works

* feature: Add `send_chat_integration_message` scriptable

add `send_chat_integration_message` scriptable that uses the rules to send a message to the chat provider
add locale strings for the new scriptable
update `ChatIntegrationReferencePost` `excerpt` method
add tests for `ChatIntegrationReferencePost`

* DEV: Add `get_channel_by_name` to every provider

This makes using `trigger_notification` easier with every provider as well.

* DEV: Add `get_channel_name` to all providers

This method gets the name of the channel based on how the provider identifies it.
Updates channel_name in locales yaml
Adds migrate_tag_added_filter_to_all_providers.rb to move all existing rules to use Automation

* DEV: Add removal of old migration data

Update small action locales with strings from core

* DEV: solve review comments

* DEV: update test locale strings

* DEV: remove empty line to trigger lint

* DEV: lint applied

* DEV: Add tests for automation integration

* DEV: add rails logger for when automatio error occurs

* DEV: move migration to be SQL only

Update provider helper to use hashes instead of dot notation

* DEV: update migration with correct table names

* DEV: Update migrate_tag_added_filter_to_all_providers to use smaller SQL queries

Commented out migrate_tag_added_from_filter_to_automation.rb

* DEV: update comments in migration file

* DEV: update indentation in client.en.yml

* DEV: update with review comments

* Update spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* Update spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* Update spec/lib/discourse_chat_integration/chat_integration_reference_post_spec.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* Update spec/integration/automation_spec.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* Update lib/discourse_chat_integration/chat_integration_reference_post.rb

Co-authored-by: Jarek Radosz <jradosz@gmail.com>

* DEV: update specs with review comments

* DEV: update typos in tests

* DEV: inlined functions for getting channel name for provider in migration

---------

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2024-09-11 10:42:52 -03:00
Discourse Translator Bot b36ddedb1a
Update translations (#215) 2024-09-02 18:00:35 +02:00
Gabriel Grubba a1c8f4ee9d
FIX: revert chat-integration move to discourse-automation (#214)
* FIX: revert chat-integration move to discourse-automation

this reverses the changes made in 57b460737c

without deleting the migration.

* Revert "DEV: removing create post for category and tag changes setting (#210)"

This reverts commit 35925c4dac.

* DEV: merge both chat-integration rules and automation rules
2024-08-27 16:24:07 -03:00
Discourse Translator Bot 96ea198972
Update translations (#212) 2024-08-20 17:59:48 +02:00
Benoit 6acdb1e918
FEATURE: Added Power Automate as a new provider (#204) 2024-08-19 16:16:27 +01:00
Discourse Translator Bot 9e222691c3
Update translations (#211) 2024-08-14 08:10:15 +02:00
Gabriel Grubba 57b460737c
FEATURE: add topic tags changed trigger to chat integration (#208)
* FEATURE: add topic tags changed trigger to chat integration

* FEATURE: add placeholder for reply to topic trigger

add description on how to use the placeholder

* DEV: Move slack message creation to provider

Add tests to new method

* FEATURE: add ${URL} to placeholder replacements and added tags link

If triggered when a topic tag is changed, message behavior will follow what user defined in message.

* DEV: Update tests with tags

* DEV: add post to topic for testing

* DEV: update test strings

* DEV: add early return for topic tags changed trigger

* DEV: move early return to use try/catch

* DEV: update `create_slack_message` to not send a tuple of values

* DEV: refactor method to be more readable

* FEATURE: add `${ADDED_AND_REMOVED}` for default texts

* DEV: Update typo in test

* DEV: Add tests to check when if `create_slack_message` raises an error

* DEV: Remove the `tag_added` from chat-integration filter

Added migration to handle the migration of the `tag_added` filter from the chat-integration plugin.

Only removed the logic from the plugin, data removal will happen in a future PR

* DEV: lint migration file

* DEV: update chat-integration to not show "tag_added" rules

* DEV: update added and missing tags logic

* DEV: update context variable name

* DEV: update migration to include `begin/rescue` block and added a list with available filters
2024-08-13 15:14:35 -03:00
Discourse Translator Bot ac44465a60
Update translations (#209) 2024-08-13 16:31:15 +02:00
Discourse Translator Bot e19808d4ad
Update translations (#205) 2024-07-31 00:14:10 +02:00
Discourse Translator Bot d229558f12
Update translations (#202) 2024-06-11 17:20:11 +02:00
Ted Johansson 4a11d27982
FIX: Move chat integration problem check message to correct locale key (#201)
As part of enhancing problem checks and admin notices, we standardized the location of the problem check messages' locale keys. However, we overlooked this one in the plugin, resulting in a missing translation on the dashboard.

This PR puts the locale key in the place expected by the admin notice system.
2024-06-11 17:42:45 +08:00
Discourse Translator Bot a92b4cfc28
Update translations (#199) 2024-05-31 12:27:13 +02:00
Ted Johansson 23d5dd2eab
FIX: Move GroupMe error message to server side translations (#196) 2024-05-24 21:51:51 +08:00
Discourse Translator Bot 2e17b03e9a
Update translations (#186) 2024-02-06 22:35:30 +01:00
Martin Brennan b010208e4f
DEV: Fix admin setting category translation (#185)
Needs to be in admin_js not js
2024-02-05 12:43:04 +10:00
Discourse Translator Bot 4f9ccb58ca
Update translations (#176) 2023-08-29 15:50:36 +02:00
Discourse Translator Bot 6aea2589bb
Update translations (#175) 2023-08-23 09:29:24 +02:00
Mark Doerr 6cb67cda8d
Update Slack regex again (#169)
* DEV: Update Slack regex for workflows

meta: https://meta.discourse.org/t/slack-outgoing-wehhook-format/270208/5

* DEV: Update Slack regex to account for typo
2023-07-10 18:48:52 -07:00
Mark Doerr 9b8c38963c
DEV: Update Slack regex for workflows (#168)
meta: https://meta.discourse.org/t/slack-outgoing-wehhook-format/270208/5
2023-07-07 08:28:09 -07:00
Discourse Translator Bot 9f0303da58
Update translations (#163) 2023-04-11 15:44:57 +02:00
Mark VanLandingham a92108b69b
FEATURE: New rule filter to send message when topic tags change (#162) 2023-04-06 06:55:47 -05:00
Discourse Translator Bot 75cf4136e9
Update translations (#161) 2023-02-21 17:11:53 +01:00
Discourse Translator Bot 955347d089
Update translations (#160) 2023-02-15 10:50:48 +01:00
Discourse Translator Bot 91d2cfb952
Update translations (#158) 2023-01-18 11:42:15 +01:00
Discourse Translator Bot af258dd163
Update translations (#156) 2023-01-10 20:54:26 +01:00
Keegan George 7b2bb33032
DEV: Remove unused locale (#154) 2023-01-05 10:15:14 -08:00
Discourse Translator Bot 67896334b5
Update translations (#153) 2023-01-03 14:46:14 +01:00
Joffrey JAFFEUX ca18dba8f7
FIX: s/incomming/incoming (#152) 2022-12-30 17:48:08 +01:00
Discourse Translator Bot 3a513d6ca4
Update translations (#148) 2022-11-29 15:36:31 +01:00
Discourse Translator Bot ba40ede510
Update translations (#145) 2022-11-16 11:37:10 +01:00
Discourse Translator Bot 01a3766911
Update translations (#143) 2022-11-02 15:13:39 +01:00
Discourse Translator Bot 7bf7368520
Update translations (#140) 2022-09-27 19:07:51 +02:00
Discourse Translator Bot 0849e5b4fc
Update translations (#137) 2022-09-13 16:04:13 +02:00
Discourse Translator Bot 5ac334a729
Update translations (#136) 2022-08-30 20:15:54 +02:00
Martin Lim 4e73da8856
FEATURE: Introduce Guilded as a provider (#135)
Support for integration with https://www.guilded.gg/
2022-08-30 18:10:17 +01:00
Discourse Translator Bot 778bb3aad6
Update translations (#133) 2022-06-21 15:26:55 +02:00
Discourse Translator Bot 8a45bb42a9
Update translations (#126) 2022-04-19 15:45:00 +02:00
Discourse Translator Bot 7c96d62ddb
Update translations (#121) 2022-04-05 15:21:24 +02:00
David Taylor cd6e4a8b62
FEATURE: Allow `[quote]` to be disabled for slack transcripts (#120)
https://meta.discourse.org/t/222145
2022-04-01 13:49:34 +01:00
Discourse Translator Bot d63e11cf33
Update translations (#118) 2022-03-30 14:52:54 +02:00
Discourse Translator Bot 5db7e159d9
Update translations (#109) 2022-03-01 22:56:25 +01:00
Blake Erickson 0eebd9f3ed
DEV: Adds post_to_slack scriptable for automation (#108)
This allows for the discourse automation plugin to have a "Send Slack
Message" script.

The script fields are a message, url, and slack channel. This will allow
for a custom slack message to be posted but can link back to an
arbitrary url (hopefully a discourse url) like a list of unanswered
topics instead of strictly only allowing a slack message that links back
to a Discourse Post object.
2022-02-25 12:17:20 -07:00
Discourse Translator Bot 64aedd3f8d
Update translations (#104) 2022-01-18 14:41:24 +01:00
Discourse Translator Bot 45a16e2c40
Update translations (#103) 2022-01-11 14:21:26 +01:00
Discourse Translator Bot e9522c5f7d
Update translations (#102) 2022-01-04 17:39:24 +01:00
Dax74 4ac3f26135
UX: Correct typo in Microsoft Teams channel config (#101) 2021-12-31 13:03:05 +00:00