Automatically release lock (urgent!)

Hello everyone :


I am just wondering whether Matrix can automatically release the lock for an asset after i commit some changes. For example, if i change the code in a design file and commit the change, whether the Matrix can automatically release the lock for the design file. The reason why i ask this question is that our team members always forget to manually release the lock, so other members in my team can't acquire the lock. Can anybody help me,thanks in advance. :slight_smile:

Hi,


This could be done via a trigger (trigger manager can be found under your System Management folder)



Event - Asset Updated

Conditions - Set your own :slight_smile:

Action - Release Locks



Please post if you get stuck or have any further questions or contact Squiz Support.

[quote]Hi,


This could be done via a trigger (trigger manager can be found under your System Management folder)



Event - Asset Updated

Conditions - Set your own :slight_smile:

Action - Release Locks



Please post if you get stuck or have any further questions or contact Squiz Support.[/quote]



Hello,



This way works for design file very well, but i don't know why not working for Standard Page. Could you give me any idea for other type of asset?



Cheers

[quote]Hello,


This way works for design file very well, but i don't know why not working for Standard Page. Could you give me any idea for other type of asset?



Cheers[/quote]



This works for standard page, but not the ones which are being edited in simple edit interface. Simple edit interface always holds the lock for the asset. So it works like,

user gets into simple edit interface->holds the lock automatically->user hits "commit" to update the asset->lock releases->simple edit interface holds the lock again



To deal with the lock held by simple edit interface, you need to set "system configuration" ->Intervals ->Lock Length



Robin

[quote]This works for standard page, but not the ones which are being edited in simple edit interface. Simple edit interface always holds the lock for the asset. So it works like,
user gets into simple edit interface->holds the lock automatically->user hits "commit" to update the asset->lock releases->simple edit interface holds the lock again



To deal with the lock held by simple edit interface, you need to set "system configuration" ->Intervals ->Lock Length



Robin[/quote]



Hello Robin



not only standard page but also other assets (like CSS file, Asset listing ) don't work. i thought Lock length before , but it is risky to change. Do yo have any else idea for this issue ? :slight_smile:



Cheers

[quote]Hello Robin


not only standard page but also other assets (like CSS file, Asset listing ) don't work. i thought Lock length before , but it is risky to change. Do yo have any else idea for this issue ? :slight_smile:



Cheers[/quote]

I have tested under 3.20.2 the trigger works fine. I updated the asset in admin interface, the locks were released. Just some ideas,

  1. Did you tick the 'inherit' checkbox? as CSS belongs to design asset.
  2. Did you really update the asset? If you don't input anything you are still be able to commit but no "update" events happen.
  3. Did you include asset listing page asset into the asset type?



    good luck!

    Robin