Open crowllx opened 1 month ago
As far as I'm aware, the destroy function does not interact with chat_history or bash_history, which as foreign key dependencies to scenarios prevents them from being deleted.
We may want to add a column to scenarios akin to "is_archived", whereby instead of scenarios actually being deleted and data discarded, we simply mark them to not be displayed in the interface. This would possibly have the side effect of causing more confusion though, if an instructor tries to reuse scenario names and doesn't realize they have archived scenarios.
I believe it occurs whenever there is bash history present but I have not confirmed this.
This is the output I see in npm
the 'destroy complete' is from stopping the scenario, the post requests returning 500 are me trying to delete it