SDiFI / masdif

Manager for Spoken Dialog Framework
Apache License 2.0
1 stars 0 forks source link

Add admin interface via ActiveAdmin #36

Closed lumpidu closed 1 year ago

lumpidu commented 1 year ago

Provide standard configuration for ActiveAdmin and make available the resources conversations, messages.

So far very basic and raw, but already usable for cleaning up and debugging. Authentication & authorization is done via the Devise gem.

For development, the admin user/password is put as a fixed string into seed.rb, but for production is derived from the environment variables ADMIN_USER, ADMIN_PASSWORD at bin/rails db:seed time.

Moreover change the database type of db model message#reply from string to jsonb and convert existing data of that column to JSON inside the db migration. In the same context, fix generation of the message#reply JSON data inside conversation#create.

grafik