discourse/plugins/discourse-ai/lib/embeddings
Sam f8666b60b0
DEV: Tidy plugin API key scope resource names (#38640)
Rename plugin API key scope resources to use shorter,
cleaner names:

- automations_trigger → automation (action: post → trigger_automation)
- discourse_ai → ai
- discourse_data_explorer → data_explorer

Includes reversible migrations to update existing
api_key_scopes records in the database and updated locale
keys to match the new resource names.

Also adds safety improvements:
- ApiKeyScope#permits? returns false when mapping is nil,
  gracefully handling renamed or removed scopes
- ApiKeyScopeSerializer uses safe navigation to avoid
  errors for missing scope mappings
- Scope resources are now sorted alphabetically in both
  the API response and the admin UI
2026-03-17 13:03:42 +11:00
..
strategies FEATURE: Make HyDE optional in AI search (#34074) 2025-08-05 11:50:16 -03:00
entry_point.rb DEV: Tidy plugin API key scope resource names (#38640) 2026-03-17 13:03:42 +11:00
schema.rb FIX: correct semantic related age penalty (#36327) 2025-11-29 17:13:42 +11:00
semantic_related.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
semantic_search.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
semantic_topic_query.rb
vector.rb FEATURE: Make HyDE optional in AI search (#34074) 2025-08-05 11:50:16 -03:00