-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Currently, if you cogs add two tables and then cogs push, the Google Sheet will end up with just two sheets, and all other sheets will be deleted. (Note that you can revert changes using Google Sheets history.)
https://github.com/ontodev/cogs/blob/master/cogs/push.py#L215
Now I have a Google Sheet with a bunch of formulas to summarize data on other sheets. COGS doesn't handle formulas, so I can't cogs add this sheet. I don't need a local copy of this sheet at all. But I don't want COGS to delete this sheet when I cogs push. I'd be happy if COGS just ignored it.
It would be simple enough to provide a list to clear_remote_sheets that it would ignore. Then I guess we could use the same list to ignore sheets for cogs fetch and cogs merge (#102). Maybe we need a new cogs ignore/unignore command, or just an --ignore option for cogs add/rm? And I'm worried that I'm missing other problems, or just making the mental model too complicated.