Skip to content

fjsikora/discourse-ai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

977 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discourse AI Plugin

Plugin Summary

For more information, please see: https://meta.discourse.org/t/discourse-ai/259214?u=falco

Changes made in this fork

Solution for tag group support in the LLM triage automation:

  1. New Tag Group Support Module (lib/discourse_ai/automation/tag_group_support.rb):
  • available_tags: Fetches all tags including those in tag groups, respecting permissions
  • validate_and_filter_tags: Validates and filters tags based on tag group permissions
  1. Updated LLM Triage Handler (lib/automation/llm_triage.rb):
  • Added tag validation with tag group support
  • Ensures tags are properly validated before being applied
  • Uses the system user's guardian for permission checks
  1. Modified Scriptable Definition (discourse_automation/llm_triage.rb):
  • Updated the tags field to use our new TagGroupSupport module
  • Added proper tag loading with permissions through a lambda function

These changes will:

  1. Show all available tags in the UI, including those in tag groups
  2. Properly handle tag group permissions when applying tags
  3. Maintain security by validating tags before application

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 79.8%
  • JavaScript 16.5%
  • SCSS 2.0%
  • Other 1.7%