vanna-ai / vanna

🤖 Chat with your SQL database 📊. Accurate Text-to-SQL Generation via LLMs using RAG 🔄.
https://vanna.ai/docs/
MIT License
12.06k stars 967 forks source link

fix: prevent user from deleting the last training data #613 #621

Open sinjup opened 3 months ago

sinjup commented 3 months ago

According to this discussion, if all training data is deleted, the option to add new training data doesn't appear in the UI. This creates a problem where users delete all their training data and then can't add new data due to the missing UI interface. This PR addresses the issue by preventing the deletion of the last remaining training data row, ensuring at least one row is always present, which resolves the problem.

sinjup commented 3 months ago

@zainhoda Please review