Skip to content

Conversation

michelle0927
Copy link
Collaborator

@michelle0927 michelle0927 commented Sep 5, 2022

Resolves #4136

The created and modified file dates from pCloud do not represent dates that the file was uploaded or modified within pCloud, but the original creation/modification dates of the file being uploaded.

I updated the component to dedupe on fileid to find newly created files, and hash (64 bit integer representing hash of the contents of the file can be used to determine if two files are the same or to monitor file contents for changes) to find modified files.

@vercel
Copy link

vercel bot commented Sep 5, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
pipedream-docs ✅ Ready (Inspect) Visit Preview Sep 5, 2022 at 3:21PM (UTC)
pipedream-docs-redirect-do-not-edit ✅ Ready (Inspect) Visit Preview Sep 5, 2022 at 3:21PM (UTC)

@dylburger
Copy link
Contributor

Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:

Copy link
Collaborator

@jcortes jcortes left a comment

Choose a reason for hiding this comment

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

HI @michelle0927 LGTM! Ready for QA!

@DilanAthukorala
Copy link

@michelle0927

  1. After I synced the created files, I changed the settings to receive "Modified" files. Then the files which were not modified synced again. (Those file were already received as create events)

  2. And when I change file names in pCloud they were not synced to Pipedream as modified file events.

@michelle0927
Copy link
Collaborator Author

@michelle0927

  1. After I synced the created files, I changed the settings to receive "Modified" files. Then the files which were not modified synced again. (Those file were already received as create events)

This happens because the component is deduping by fileid for new files, but by hash for modified files. Sources/triggers use various ways of determining what is a new event, so changing the configuration of any Pipedream source is likely to produce unexpected results. For sources, you'll want to deploy them with the configuration you want. To try different configurations, it's best to deploy multiple sources.

  1. And when I change file names in pCloud they were not synced to Pipedream as modified file events.

That's correct. Events will be emitted when there is a change to the file contents.

@DilanAthukorala
Copy link

@michelle0927

  1. After I synced the created files, I changed the settings to receive "Modified" files. Then the files which were not modified synced again. (Those file were already received as create events)

This happens because the component is deduping by fileid for new files, but by hash for modified files. Sources/triggers use various ways of determining what is a new event, so changing the configuration of any Pipedream source is likely to produce unexpected results. For sources, you'll want to deploy them with the configuration you want. To try different configurations, it's best to deploy multiple sources.

  1. And when I change file names in pCloud they were not synced to Pipedream as modified file events.

That's correct. Events will be emitted when there is a change to the file contents.

@michelle0927 Ok Noted. Thanks for the explanation.

@DilanAthukorala
Copy link

Verification completed and ready for release.

@michelle0927 michelle0927 merged commit d575d57 into master Sep 6, 2022
@michelle0927 michelle0927 deleted the pcloud-4136 branch September 6, 2022 15:54
alysonturing pushed a commit that referenced this pull request Sep 7, 2022
* master: (57 commits)
  Adding app scaffolding for wakatime
  Adding app scaffolding for wakatime
  Adding app scaffolding for wakatime
  Modifying global config
  3977 wildberries actions (#4111)
  Minor docs update
  Invocation budget docs (#4119)
  Adding app scaffolding for snapdocs
  Adding app scaffolding for snapdocs
  Adding app scaffolding for snapdocs
  Modifying global config
  Adding app scaffolding for sailpoint
  Adding app scaffolding for sailpoint
  Adding app scaffolding for sailpoint
  Modifying global config
  [BUG] pCloud Watch Folder trigger does not pick up events (#4167)
  #3815 - Tookan Actions (#4129)
  SMTP2GO: Adding actions to send single emails with body and template. (#4144)
  [BUG] Jira component only shows first 50 projects (#4162)
  Add dev.to new reading list item event (#4164)
  ...
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.

[BUG] pCloud Watch Folder trigger does not pick up events
4 participants