You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Collections] Should be able to delete a non-existent local collection (#3401)
Steps to reproduce:
1. Add a local collection
2. Delete or rename the local collection file
3. Try deleting the local collection
Result: Error about local file not found
Expected: Non-existent local collection deleted
The `remove` collection subcommand calls `getCollection` API to fetch collection's name for displaying success message later. `getCollection` tries to fetch collection from storage, and if it's not found there, it fetches from the source directly. The error is caused by the source validation logic, which mistakenly is the first thing `getCollection` does but should really only be done when we need to fetch from the source.
0 commit comments