Copied to clipboard

Flag this post as spam?

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


  • Sander Houttekier 114 posts 163 karma points
    Dec 09, 2010 @ 17:39
    Sander Houttekier
    0

    still 9 versions available

    hi,

    i just tried testing your interesting package
    i set up a rule in the config file very basic, just the maxCount nothing else

    <add maxCount="5"/>

    if my judgement is correct, this should trigger on every docType, since no alias and root node were given.

    i then, made some changes over and over again to a certain node, each time republishing
    if i then open up a roll back menu it says the node has 9 versions to go back to...

    i believe that is wrong right?
    is there a way that i can help debug this problem? for example, if i could see that the before/after publish handler actually kicks in?  i'd be glad to help out with more info. let me know if you need anything.

    umbraco version: 4.5.2
    i'm not sure, but i don't think there are any packages that have handlers active that might block your actions...

  • Matt Brailsford 2808 posts 14332 karma points MVP 7x c-trib
    Dec 09, 2010 @ 18:42
    Matt Brailsford
    0

    Hi Sander,

    You are right in your assumptions in that it should apply to all docTypes, and testing it myself localy that is was I have happening. Can you just confirm your config is exactly:

    <?xml version="1.0"?>
    <unVersionConfig>
      <add maxCount="5" />
    </unVersionConfig>

    Many thanks

    Matt

  • Petr Snobelt 923 posts 1532 karma points
    Jan 23, 2011 @ 08:15
    Petr Snobelt
    0

    Hi Matt,

    I have same problem, I want to clear old previous versions, so I install v 1.2.2 of unVersion and change config:

    <?xml version="1.0"?>
    <unVersionConfig>
      <add maxCount="0" />
    </unVersionConfig>

    Then republish entire site. But there are still multiple versions available :-( I also try publish single node using button from UI, but versions are still there.

    I'm using Umbraco 4.6.1 with SQLCE.

    Petr

  • Matt Brailsford 2808 posts 14332 karma points MVP 7x c-trib
    Jan 23, 2011 @ 19:31
    Matt Brailsford
    0

    Hi Petr,

    I've just released a new version which should be comptable with SQLCE. Unfortunatley, due to limitations in SQLCE, UnVersion is a little more chatty than previously (the version before did everything in 1 SQL statement), but it should work. I'll look for way to optimise as soon as I can.

    Many thanks

    Matt

  • Petr Snobelt 923 posts 1532 karma points
    Jan 27, 2011 @ 20:17
    Petr Snobelt
    0

    Hi Matt,

    thank you, but I try new version and old versions is still here :-(

    Maybe I do something wrong. My config looks like in my previous post. And then I press save and publish. Then I use right click on node and select rollback and there are still multiple versions available. Can I try something else, which can help you to identify problem?

     

    Thanks

    Petr  

  • Petr Snobelt 923 posts 1532 karma points
    Jan 30, 2011 @ 08:06
    Petr Snobelt
    0

    Hi Matt, can you put sources of modified version to codeplex, please.

     

    Petr

  • Matt Brailsford 2808 posts 14332 karma points MVP 7x c-trib
    Jan 30, 2011 @ 12:05
    Matt Brailsford
    0

    Hey Petr,

    Only thing I can suggest, is maybe recycle your app pool so that any config changes get reloaded.

    I've pushed the changes through to the codeplex repo, so you can checkout what has changed.

    Cheers

    Matt

  • Petr Snobelt 923 posts 1532 karma points
    Jan 31, 2011 @ 20:22
    Petr Snobelt
    0

    Hi Matt,

    I think app pool is recycled automatically, when you put file in bin directory, but for sure I run iisreset and still no efect.

    I have not time to try look into sources and debug now :-(

    Petr

  • Matt Brailsford 2808 posts 14332 karma points MVP 7x c-trib
    Feb 01, 2011 @ 10:04
    Matt Brailsford
    0

    Hey Petr,

    Is you site externally accessible so that I could look at your setup?

    Cheers

    Matt

  • Petr Snobelt 923 posts 1532 karma points
    Feb 04, 2011 @ 19:03
    Petr Snobelt
    0

    Hi Matt,

    I put your code into app_code and debug it and I debug to this line:

     if(published || newest || readerIndex <= configEntry.MaxCount || (versionDate - DateTime.Now).Days < configEntry.MaxDays)
        versionsToKeep.Add("'"+ versionId.ToString("D") +"'");
    
    And I think there should be (DateTime.Now - versionDate).Days

    When I try it it keep 2 version - first is newest and second is published.

     

    Petr

  • Kyle Skrinak 272 posts 327 karma points
    Feb 25, 2011 @ 20:06
    Kyle Skrinak
    0

    Hmmm... FYI: 1.2.2 isn't working as it should on my 4.6.1 system. I downgraded from 1.3 from advise on codeplex but that made no difference. I tried all of the suggested fixes above; I've set my maxcount to 10 and have many nodes with many more versions.

Please Sign in or register to post replies

Write your reply to:

Draft