Skip to main content

Support Tickets

Catalyst::SupportTicket lets users raise support tickets from the admin panel. Tickets and their comments sync with a project in Bridge.

Quick example​

rails g catalyst:add_ct_support_ticket
rails db:migrate
config/initializers/catalyst.rb
config.included_models = [..., Catalyst::SupportTicket]

Setup​

Your app (e.g. DRE, port 3000) syncs tickets to a Bridge app (port 3001) running alongside it.

1. Prepare the Bridge app​

  • Create a project for your app in Bridge, where tickets can be created.
  • Create a Catalyst installation and associate it with the project.
  • Copy the project key β€” you need it for the credentials step below.

2. Run the generator​

rails g catalyst:add_ct_support_ticket

Creates three migrations: ct_support_tickets, ct_support_ticket_employees (for assignees), and created_by_name/email columns on ct_comments.

3. Register the model​

config/initializers/catalyst.rb
Catalyst.configure do |config|
config.included_models = [
# ... other models,
Catalyst::SupportTicket
]
config.sidebar = [
# ... other items,
{ path: :ct_index_ct_support_ticket_path }
]
end

4. Set the project key​

In development, put the Bridge project key in credentials:

catalyst:
project_access_key: your_project_key_here

Credentials set up before the Catalyst rename, under cm_admin:, keep working.

In staging and production, set the same key in the BUNDLE_GEMS__BETTERPLATFORMS__DEV environment variable β€” that is where Catalyst reads the project key outside development. Generate the key in Bridge and keep the staging key updated in the staging Bridge environment.

Notes​

  • Run Sidekiq on only one of the two apps. Running it on both lets jobs execute on the wrong app.