Commit Graph

19 Commits

Author SHA1 Message Date
Ted Johansson cbdac03a84
FIX: Add missing dummy translations for tests (#195)
This change copies the translations from the Slack provider to the dummy provider in the test so we're testing real values.
2024-05-24 20:14:03 +08:00
David Taylor 49956bf829
DEV: Introduce syntax_tree for ruby formatting (#149) 2022-12-29 13:31:05 +01:00
David Taylor 5047583d95
DEV: Bump rubocop-discourse (#141)
* DEV: Bump rubocop-discourse

* Fix rubocop violations
2022-10-03 21:36:52 +02:00
David Taylor 157f3e910d
FIX: Respect core settings when rendering user names/usernames (#129)
This commit centralizes 'display name' generation into a helper, and updates it to respect core preferences for `enable_names` and `prioritize_username_in_ux`.
2022-05-30 17:13:55 +01:00
Mark VanLandingham a73f5da114
Rename DiscourseChat to DiscourseChatIntegration (#82) 2021-07-13 14:36:16 -05:00
Michael K Johnson da9106127a
FEATURE: Enable optional support for threading slack posts (#38)
When creating a new Discourse post from slack with the `post` feature, record the
slack `ts` thread ID for the resulting topic post using an HTML comment to pass
the `ts` through.

When notifying slack of new Discourse posts, record the slack `ts` thread ID in
the post's topic if it has not yet been recorded. (Normally, this will be done
for the topic post, except where notifications are being posted for old topics
before this feature was created.)

Add a new rule filter `thread` which posts threaded responses to slack if there
is a `ts` recorded for the post topic.

Modify the `trigger_notifications` interface to enable other integrations to
implement similar functionality.

Present the `thread` rule in the help text and admin UI only for the slack
providers.

https://meta.discourse.org/t/optionally-threading-posts-to-parent-topic-in-slack-integration/150759
2020-06-15 16:45:25 +01:00
Jarek Radosz 6b3eba27fa
DEV: Remove a duplicated `let` definition 2020-03-27 17:42:15 +01:00
Joffrey JAFFEUX 6540d8b957 DEV: uses Discourse.redis instead of $redis 2019-12-03 10:45:32 +01:00
Guo Xiang Tan ac288b9300 Add frozen string literal comment to files. 2019-05-13 10:37:49 +08:00
Sam 5beaa359b7 when the test suite was written tags were default disabled 2018-10-17 15:57:38 +11:00
David Taylor 4f9ad4efef Correct rubocop offenses 2017-08-01 20:53:39 +01:00
David Taylor 01d7fb47ef Display group rules correctly in slash commands 2017-08-01 19:16:47 +01:00
David Taylor 4add044f86 Fix intermittently failing spec 2017-07-26 21:14:29 +01:00
David Taylor 681f37bc2b Workaround for intermittently failing redis spec 2017-07-24 17:48:06 +01:00
David Taylor 8ca4797797 Add transcript posting support to slack 2017-07-24 16:43:37 +01:00
David Taylor 2d7f25d7e6 Add support for chat transcripts
(still needs to be implemented by providers)
2017-07-24 16:13:53 +01:00
David Taylor 4422f14c6d Move slash command specs into helper_spec 2017-07-19 18:22:50 +01:00
David Taylor e850fb194b Update helper to deal with the new channel structure 2017-07-13 22:13:03 +01:00
David Taylor b04b5c22dd Refactor specs to match new directory structure 2017-07-13 14:01:30 +01:00