Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: add topic tags changed trigger to chat integration #208

Merged
merged 20 commits into from
Aug 13, 2024

Conversation

Grubba27
Copy link
Contributor

@Grubba27 Grubba27 commented Aug 5, 2024

No description provided.

})
channel.rules
.filter((rule) => {
return rule.filter !== "tag_added";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it'd be better to only allow from a list rather than blocking this one type specifically?

# frozen_string_literal: true
class MigrateTagAddedFromFilterToAutomation < ActiveRecord::Migration[7.1]
def up
if defined?(DiscourseAutomation) &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this entire logic should be wrapped in a begin/rescue b/c we don't really want this migration to FAIL if in the future, some of these classes change or something... It's risky to write migrations with logic referencing specific classes like this. Yeah I think rescueing errors would be good.

@Grubba27 Grubba27 merged commit 57b4607 into main Aug 13, 2024
5 checks passed
@Grubba27 Grubba27 deleted the feature/add-topic-tags-changed-trigger branch August 13, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants