superscriptjs / superscript

A dialogue engine for creating chat bots
http://superscriptjs.com
MIT License
1.65k stars 209 forks source link

Parse drops mongo database by default #373

Open Lewwwk opened 7 years ago

Lewwwk commented 7 years ago

Currently, parse defaults to {clean:true} when it triggers sfacts.load. Currently this leads to sfacts dropping the entire db.

Expected Behavior

It should simply parse the files using existing facts by default.

Current Behavior

It parses and cleans by default. Bug in sfacts means it drops the entire db instead of the mongodown collection (this is being fixed separately)

Possible Solution

Changing default to {clean:false} and enabling an option to trigger clean if desired.

Steps to Reproduce (for bugs)

Run parse on an existing db.

Context

Sad panda production data erasure.

Your Environment

Current.