Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced cloud files are not being updated #608

Open
nachocab opened this issue Nov 19, 2023 · 2 comments
Open

Replaced cloud files are not being updated #608

nachocab opened this issue Nov 19, 2023 · 2 comments

Comments

@nachocab
Copy link

nachocab commented Nov 19, 2023

Describe the bug
I have a notebook that uses several csv files stored in Google Drive. These files get overwritten with new versions daily, but Observable doesn't detect them because the Google Drive ids of the new files are different (if I update the content of the files without replacing them with new files, the changes are picked up).

I understand this might be a limitation of Google Drive, but manually deleting the cloud file in the notebook and re-uploading it actually works because the other cells in the notebook only care about the name of the file (not the Google Drive id): await FileAttachment("google://whatever.csv").csv().

This is not ideal because I have to delete the files one by one and add them one by one. It would help if there was a way to select multiple files in this screen:

CleanShot 2023-11-19 at 20 37 15@2x

Something else that would help is a "Replace file" option for cloud files like the one in regular files:

CleanShot 2023-11-19 at 20 38 26@2x

To Reproduce
Steps to reproduce the behavior:

  1. Upload a csv file to Google Drive
  2. Import it into an Observable notebook
  3. Create another csv file with the same name but different content
  4. Upload it to the same Google Drive folder and choose "Replace existing file"
  5. Refresh the notebook

Expected behavior
The new content appears

Actual behavior
The old content remains

@mootari
Copy link
Member

mootari commented Nov 19, 2023

if I update the content of the files without replacing them with new files, the changes are picked up

Why is this not an option for you?

@nachocab
Copy link
Author

nachocab commented Nov 19, 2023

Because I would have to copy the new content, open the file, paste the content and save each file manually. I'm currently dumping the new versions in the same folder all at once (I have the Google Drive Finder extension for macOS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants