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

fix: gdrive watch mulitple #2096

Merged
merged 2 commits into from
Oct 9, 2023
Merged

fix: gdrive watch mulitple #2096

merged 2 commits into from
Oct 9, 2023

Conversation

chrismclarke
Copy link
Member

PR Checklist

  • PR title descriptive (can be used in release notes)

Description

Following #2091, fix for issue where sync --content-watch workflow would break for deployments with multiple sheets_folder_ids specified

Dev Notes

There will be some duplicate logging of 'watching drive changes...' for each folder looped over in watch scripts. While we could just move the console log to the workflow itself, I think probably good to retain as a reminder that in the future we could probably optimise better (find a way to use one watcher across multiple folders)

I have tested to check that even with multiple watchers the file change script is only triggered once (screenshot below)

Review Notes

Should use debug_gdrive_multiple deployment and --content-watch sync flag. Making changes to sheets within folders trigger reload

Folder links:
https://drive.google.com/drive/folders/15pDlhePVpTt0XeVsqBrWYToDCK5j-T9F
https://drive.google.com/drive/folders/1kaOxdi3OSNylOmS3YTzLwFnGgTZX9DrM

Git Issues

Closes #

Screenshots/Videos

Example triggered change from multiple folder watch
image

@chrismclarke chrismclarke temporarily deployed to debug October 6, 2023 16:30 — with GitHub Actions Inactive
Copy link
Collaborator

@jfmcquade jfmcquade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I can confirm that running the sync --content-watch workflow means that changes made to sheets in each of the folders of the debug_gdrive_multiple deployment trigger an update.

We should now be able to remove that deployment from the repo – that could be included in this PR, or otherwise in a follow-up

@chrismclarke chrismclarke merged commit 8ea0fc8 into master Oct 9, 2023
7 checks passed
@chrismclarke chrismclarke deleted the fix/gdrive-watch-multiple branch October 9, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants