Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sebastian Dammark 581 posts 1385 karma points
    May 18, 2015 @ 11:59
    Sebastian Dammark
    0

    Changes if I try to import right after export ?

    Hi Kenn

    I'm using your excellent 1-2-3 magic package and it works fine, but I have one small question.

    I've been working on a site for quite a while now, and now I've created a live site so I installed Umport on both development and production.

    When I do an export on development, and right after clicking on "Analyze" also on development, I get a few changes like renaming a few properties and moving them to other tabs.

    But, shouldn't the "Analyze" give me 0 modifications when both Export and Analyze are executed on the same solution within seconds ?

  • Kenn Jacobsen 133 posts 791 karma points MVP 4x c-trib
    May 19, 2015 @ 10:05
    Kenn Jacobsen
    0

    Hi!

    Yes and no... The "Property XXX sort order will be updated" is to be expected. The reason behind this is, that Umbraco does not necessarily enforce its own sort order on properties, but often simply rely on the creation date (or property ID to be exact) of each property to calculate the sort order. Obviously this won't work when synchronizing between different databases, so Umport enforces a strict sort order in the export XML, and thus you'll see these updates when you analyze changes on the source environment.

    The other changes on the other hand should not show. I suspect some recently introduced caching is causing this. I've been working on a new release of Umport that should counter this (and add some nice new features), but time is not my friend these days. I'll get around to it eventually.

    Out of curiosity, do you get these unexpected changes if you touch the web.config before exporting and again before analyzing?

    -Kenn

  • Sebastian Dammark 581 posts 1385 karma points
    May 19, 2015 @ 13:41
    Sebastian Dammark
    0

    It doesn't really change anything.
    I still see a line like this:

    Property Header [slideHeader] alias will be updated to header 

  • Kenn Jacobsen 133 posts 791 karma points MVP 4x c-trib
    May 21, 2015 @ 09:44
    Kenn Jacobsen
    0

    Hi again.

    I've just released the next version of Umport for Umbraco 7.2+ (Umport version 1.720.1.2). If you're using 7.2, try installing this new release and see if that changes anything.

    -Kenn

  • Sebastian Dammark 581 posts 1385 karma points
    May 21, 2015 @ 11:54
    Sebastian Dammark
    0

    Nice update :)
    But it still shows some modified properties. 

  • Dan Okkels Brendstrup 101 posts 197 karma points
    Jan 04, 2016 @ 09:04
    Dan Okkels Brendstrup
    0

    Venturing a guess here:

    We've had similar issues due to the fact that properties (AFAIK) don't have a GUID or similar that works across environments, so Umport performs som heuristic mapping of properties based on name and alias.

    Which means that it can get tripped up when properties on a doctype have the same name, even though their aliases are different. Which is the case for e.g. Header [slideHeader] and Header [reviewsHeader] in the screenshot above. If you rename them to Slide header [slideHeader] and Reviews header [reviewsHeader] I'm pretty sure the problem will be solved.

    But Kenn, can the heuristics be improved to handle this case better? Perhaps taking into account which property a tab is on, since duplicate property names are usually spread across different tabs (e.g. for a multi-lingual solution)?

Please Sign in or register to post replies

Write your reply to:

Draft