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
Was looking through the contentful async worker code (packages/workers/content/services.py) and noticed that the sync of contentful entries seems to add new entries twice (if I understand this correctly).
The worker will call the sync() method within the ContentfulSync class which calls self.sync_entries().
Describe the bug
Was looking through the contentful async worker code (
packages/workers/content/services.py
) and noticed that the sync of contentful entries seems to add new entries twice (if I understand this correctly).The worker will call the
sync()
method within theContentfulSync
class which callsself.sync_entries()
.This is defined as:
we can see that this is essentially a wrapper to add multiple new entries into the different content models as it calls
self.sync_entry(entry)
But this class method is defined as:
So question here is isn't the
self.session.add_all(instances)
insync_entries()
redundant as these records are already being added insync_entry()
?Steps to reproduce
Go to file
packages/workers/content/services.py
withinContentfulSync
System Info
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: