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

Export does not include the entry status if the entry status was the only change #12

Open
troyxmccall opened this issue Jun 27, 2024 · 1 comment

Comments

@troyxmccall
Copy link

Describe the bug

hi! i first wanted to thank you for this amazing plugin, it's saved me so much time ( i was originally going to write my own element api export and import script)

I found a small bug: if an entry's status is changed, ie: from enabled => disabled, and that is the only change for the entry, zen does not export that change

Steps to reproduce

  1. export your entries to a new site using zen
  2. on the old site edit an entry for today in craft admin, but ONLY change the status
  3. pick the dropdown export for today -> tomorrow on the old site
  4. note that the entry does not show up in the zen element export list
  5. export anyway
  6. import again on your new site, note the status has not changed for the entry on step 2

Craft CMS version

4.10.2

Plugin version

1.0.4

Multi-site?

No

Additional context

No response

@engram-design
Copy link
Member

That's interesting! So we export based on the dateUpdated value for all elements changing, under the assumption that whenever something is changed about an element this value is updated. However, I can see some scenarios where this might not be feasible.

It'd really not like to go a full-compare against old and new elements, as that's both slow and not foolproof.

I'll think of some options.

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

No branches or pull requests

2 participants