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

Importing title will always save the entry even when the title remains the same #1219

Closed
boudewijn-zicht opened this issue Jan 19, 2023 · 5 comments · Fixed by #1218
Closed
Labels

Comments

@boudewijn-zicht
Copy link
Contributor

Description

There is a bug in the code that compares the element's attributes (this includes the title) with the new imported data. Currently this always determines that the element attributes have changed, even when they did not.

This results in an element save event and all the additional overhead that this causes, i.e. database growth because of revisions.

Steps to reproduce

  1. Host a static file somewhere with data that you want to import, i.e. {"data":[{"title":"Imported A"}]}
  2. Configure a feed-me import to create a new Entry with the title, and enable the update flag
  3. Run the import multiple times, you can see that the import created one Entry 'Imported A' but it has one revision for every time you ran the import, even though the title never changed

A fix is already available, see #1218

@boudewijn-zicht
Copy link
Contributor Author

A similar issue occurs when importing dates, i.e. the craft postDate. A fix for this can be found in #1223

@boudewijn-zicht
Copy link
Contributor Author

Since making this issue I have found several more issues, I have patched them locally so I can continue in the hopes of removing the patch once a fix is made in this library by the author. Is this likely to happen? I see very little activity and many open issues and pull requests...

@angrybrad
Copy link
Member

Resolved in #1218 - thanks!

Feel free to keep making PRs/issues @boudewijn-zicht - going to be spending the next few months doing a housecleaning and bug-fixing sprint on Feed Me.

@boudewijn-zicht
Copy link
Contributor Author

going to be spending the next few months doing a housecleaning and bug-fixing sprint on Feed Me.

That is very nice to hear, thanks!

@brandonkelly
Copy link
Member

Feed Me 4.6.0 (Craft 3) and 5.1.0 (Craft 4) have been released with the #1218 changes 🎉

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

Successfully merging a pull request may close this issue.

3 participants