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#replyJSON data inside conversation#create.
[x] user authentication with Devise
[x] admin credentials via environment variables
[x] augment DB messages model with dialog system metrics
[ ] show conversation content as user/bot dialog
[x] show graph with metrics on dashboard
[x] remove API endpoints that can be easier managed via the admin dashboard
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
atbin/rails db:seed
time.Moreover change the database type of db model
message#reply
fromstring
tojsonb
and convert existing data of that column toJSON
inside the db migration. In the same context, fix generation of themessage#reply
JSON
data insideconversation#create
.