verbb / zen

A Craft CMS plugin to manage content across multiple environments with ease.
Other
3 stars 0 forks source link

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

Open troyxmccall opened 2 months ago

troyxmccall commented 2 months ago

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 commented 2 months ago

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.